A temperature sensor will be programmed with Ardunio. The temperature sensor we are going to be using is already waterproofed making it very easy to adapt to. The sensor measures in Celsius and uses the steel tip to get the temperature. It is not to be used in salt water environments. Sample code below (turbidity) Wde will be using a turbidity and temperature sensor. To make these sensors function, we will be programming them using a Arduino. To program these sensors we must first understand how it works. From information gotten from DFRobot on YouTube, a turbidity sensor works by seeing the amount of lights that can go through the water. Turbidity is measured in NTU’s. The cloudier the water, the higher the NTU of the water is. The turbidity sensor however, will send the reading in voltages. It is good to note however, that as the turbidity or NTU increases, then the voltage should actually decrease in the output. Therefore we will have to translate the voltages into NTU’s. The turbidity sensor goes through a micro converter. This means that before the turbidity sensor sends information to the arduino, it will rise send it to the micro converter in order to “translate”. The output mode is then able to switch between analog mode and digital mode. In digital mode, the turbidity sensor will connect to a digital pin and sends out a 5V signal when the turbidity of something reaches a certain threshold value. This value can be set using the potentiometer on the micro controller. Programming one of these sensors does not take a separate imported library. However,since the number may range into the decimal area, it is pretty likely that we are going to use floats and doubles rather than ints. A float adn double are both types of variables that store or represent floating point number or put simply, decimals. The difference between the two is that a double is a variable that can store a number more accurately having up to 15 decimal places. A float however normally only stores about 6 to 8. Although a double now sounds more enticing, we must realize that another difference between the two is the amount of storage each takes. A double normally takes around 8 bytes while a float takes only about half of that being 4 bytes. Therefore, in this project it may be better for me to use a float rather than a double for the purpose of saving more storage. Now to wire a Turbidity sensor, we can follow the diagram below.
0 Comments
The problem my partner and I are trying to solve is how to build a temperature sensor and a turbidity sensor.
The Ala wai is infested with flesh eating bacteria Vibrio Vulnificus . A man by the name of Oliver Johnson died from falling into this polluted Ala Wai due to these flesh eating bacteria on April 6, 2006. Sadly this is all due to the temperature being perfect for the bacteria to thrive.
There is also the problem of how global warming is affecting the water level of the Ala Wai. This presents a extreme danger for people since if he water from the Ala Wai were to rise above the level of the canal, the polluted water wold then may be able to flood into the areas around it, and allowing the danger of the flesh eating bacteria to attach to humans. The temperature of course is a big problem with the canal. Since the bottom of the canal is made of concrete, more heat is absorbed and therefore the temperature of the water can be extremely warm. Due to this it provides a danger to the people and animals of the Ala Wai And of course there's the big problem of the turbidity of the water. Sine two other rivers flow into the alawai and, where the rivers meet, a lot of dirt and sediment is clumpde together there and therefore the turbidity is huge. Many people also throw their trash into the alawai and sewage is said to be in there too. The Ala Wai has become a danger to Hawaii and needs to be monitored. As a part of my robotics class, I am going to help in making a sensor to monitor the sediment and temperature of the water in certain locations of the canal. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2018
Categories |
Photo used under Creative Commons from daryl_mitchell