Using
a dual 7-segment display, a DS18B20 temperature sensor and a couple of
shift registers I figured that I could build a digital thermometer.
Step 1: Temperature Sensor
The
sensor I'm using is the DS18B20, it's a 3pin sensor that just requires a
single input pin from the arduino. Multiple sensors can be hooked
together, however I'm just using one for this project. As with a lot of
different sensors there's a handy library that makes it particularly
easy to get the temperature in centigrade or fahrenheit, it's the
Dallas_Temperature library available here and a spec sheet for the
sensor available from maxim.
To connect it to the arduino connect the ground pin on the sensor to a ground pin on the arduino, put a 4.7k resistor between pin 2 and pin 3 on the sensor, connect pin 3 to 3.3v from the arduino and then connect pin 2 to digital input on the arduino. Once this is done, we're ready to read the temperature!
To connect it to the arduino connect the ground pin on the sensor to a ground pin on the arduino, put a 4.7k resistor between pin 2 and pin 3 on the sensor, connect pin 3 to 3.3v from the arduino and then connect pin 2 to digital input on the arduino. Once this is done, we're ready to read the temperature!
Sands Casino Online | SEGA - SEGA - Singapore
ReplyDeleteDiscover and enjoy SEGA's most popular Slots and Arcade Games and Online casino games here at Singapore Casino. Enjoy 바카라 over 100 SEGA products deccasino to septcasino play,