|
CONTENTS Home Projects Electronics Graphics Java Java Mobile Android Other Stuff Resume Music Pictures Contact |
Analog/Digital ThermometersMore electronics projects on mikekohn.net here. July 1, 2010 Introduction This is a dual project for reading the temperature from a DS18S20 1-Wire digital temperature sensor and an analog LM34 temperature sensor. Since the Atmel ATtiny2313 doesn't have A/D converters, I used this chip to read the DS18S20. For the analog I used the dsPIC30F3012. This is my first time using a dsPIC chip and my first time writing code for a microcontroller in C. I'm an assembly guy when it comes to hardware :). Update: August 25, 2011 - I've been working on a new circuits using a DS18B20 temperature sensor /w MSP430's. I have a bluetooth thermometer and a talking clock thermomter along with some small sample programs on my naken430asm page. Pictures Explanation The LM34 seems to be a pretty common chip. It outputs an analog voltage which represents the temperature in fahrenheit. I was originally going to convert it to celcius, but that would cause more precision loss on a 16 bit mpu, so I decided to leave it with the evil fahrenheit measurement. Source code
Copyright 1997-2012 - Michael Kohn
This page was designed to work with all standard HTML compatible web browsers including Firefox, IE, Safari, and Links. |