Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Measure Temperature with the Dallas Maxim DS1820 sensor?

Measure Temperature with the Dallas Maxim DS1820 sensor?

Sometimes we have a need to measure the temperature of a room, of an object or just maybe a terrarium;

Today you have a great number of temperature sensors, analog and digital ones. If you want to use an ADC (Analog to Digital Converter) then you can use a thermistor for this project, however I prefer digital sensors. In this project I used the Dallas Maxim DS1820 (click for the datasheet) digital temperature sensor with the 1wire technology from Dallas Maxim.

It is not manufactured anymore but it is equivalent to its successor DS18S20. You can order a sample from Maxim, of course free of charge. This time the source code was not a problem, I found the source for this project in CodeVision?s C example folder (there are a lot of examples also for GNU AVR GCC), I just modified it a bit, I removed some of the code that we won?t need because I used only one DS1820 sensor however you can attach up to 8 sensors on one wire, cool isn?t it?!?! I had not a 4.7k resistor to connect between DQ (the middle pin from the sensor which is used to communicate with it the microcontroller and to read the temperatures) and Vdd, instead I used a 6.8k resistor; it will work fine, don?t worry. DQ is connected to I/O line 6 of PORT A. The microcontroller I used was the ATMega16 and a crystal of 4 MHz frequency; it should work with any other microcontroller as well. I won?t explain how I connected the LCD because I did it in one of my previous projects. It is connected to the PORT C, just to display the results (the current temperature).

Article by Sebastian Schmieg at http://www.e-dsp.com

Visit Here for more.







 

More Articles to Read

Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits
Big F’n 3D printer build
Big F’n 3D printer build
Temperature alarm for boiling milk
Temperature alarm for boiling milk
QuadBot is a 3D-printable walking robot for everyone
QuadBot is a 3D-printable walking robot for everyone
MicroConverter I2C Compatible Interface
MicroConverter I2C Compatible Interface

Top


Shares