Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

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

Single-Sided USB Charger
Single-Sided USB Charger
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
ESP8266 LED lighting: QuinLED v2.6 PCB
ESP8266 LED lighting: QuinLED v2.6 PCB
Switching LVDS Graphics in a Laptop Computer
Switching LVDS Graphics in a Laptop Computer
Teleknitting: TV-based string art
Teleknitting: TV-based string art
DIY Bubble Machine
DIY Bubble Machine
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Teardown of a Peaktech 6225A
Teardown of a Peaktech 6225A

Top




Shares