![]() Sketch > Include Library > Manage Libraries. Before having the code, make sure to install two libraries in your Arduino. Yellow Pin needs to be connected to a digital pin on Arduino. Red Pin needs to be connected to VCC (5V or 3.3V) ![]() This is totally enough for sensing water temperature inside rivers or water bodies in normal geographic locations.įor more information, you can check the DS18B20 datasheet at this link: Circuitįirst, we need to look at the pinout of DS18B20.Īs you can there are three pins: Black, Red, and Yellow. DS18B20 can measure temperatures from -55☌ to +125☌, it has a ☐.5☌ accuracy from -10☌ to +85☌. Notice, DS18B20 also has a non-waterproof version of it!ĭS18B20 can be powered by an external power supply or it can derive power from the data line, which eliminates the need for an external power supply. And you should not use a non-waterproof temperature sensor for sensing the water temperature. This means that it just requires one data line and GND to communicate with the Arduino. The DS18B20 temperature sensor is a one-wire digital temperature sensor. Our key element for this tutorial is our temperature sensor. There are lots of water temperature sensors you could use with Arduino, but I am using Gikfun DS18B20 Waterproof Temperature Sensor for this tutorial, you can find and buy it at this link or other websites: Parts List Arudino IDE DS18B20 Waterproof Temperature Sensor Jumper Wires Breadboard DS18B20 Waterproof Temperature Sensor ![]() In this tutorial, I will introduce and explain how to use a water temperature sensor to sense the water temperature inside a river or other water features. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |