Visit the -Chandley Technologies Forum-, your one stop for science project ideas/discussions.
 

SEARCH

 

HELP PAY FOR NEW SCIENCE

Programming Tutorial
 
Temperature Sensor
 
LM34 Temperature Sensor
 

Navigation:

-- Tutorial Write-Up

-- Chandley Tech Projects Incorporating a LM34 Sensor

-- Resources + References

A LM34 is a simple analog temperature sensor in a TO-92 package. It operates from 5 to 30 volts, and will output a linear 10.0 millivolts per degree Fahrenheit.
They are a relatively cheap and easy sensor to incorporate into a project requiring ±0.5°F accuracy.
 
The Tutorial:

Of course, there's many different types and forms of temperature sensors out there, but National Semiconductor's LM34 temperature sensor is surely one of the most common. The LM34DZ has a temperature range of 32°F to ~212°F (0°C to ~100°C). There is another variant of the LM34, the LM34CZ, which has a range of -40°F to ~230°F (-40°C to ~110°C), albeit at usually twice the cost of the LM34DZ.

In this tutorial, we will be using the cheaper variant, the LM34DZ, as we do not usually work below freezing temperatures. I usually get them from DigiKey (link goes to part)

Now, the LM34 is an analog sensor, which means that it outputs a voltage that is proportional to the temperature it is reading. From the datasheet, it is stated that the LM34 is designed to output a linear 10.0 millivolts per degree Fahrenheit with little or no calibration required.

In order to read the data from the LM34 with a Propeller you will need an analog-to-digital converter (ADC) (see the ADC tutorial).

[Code Table]

Time for some sleep.

 
Chandley Tech Projects Incorporating This Item:
  • Project A
    • What it do?
    • How it used?
    • Available in Store?
  • Project B
    • What it do?
    • How it used?
    • Available in Store?
References and Resources:
 
Datasheet: LM34 Datasheet

Resource: Explanation of Use

 
HONESTe Online Member Seal
Click to verify - Before you buy!
© 2010 Chandley Technologies

This website is strictly for entertainment purposes only; actions nor pursuits portrayed on this site are not encouraged. If you attempt anything within the information detailed on this page, any subsequently linked pages, or on this site as a whole, you do so at your own risk, and more importantly: the risk of everyone around you. Chandley Technologies does not promote or condone any illicit, illegal, dangerous, or exploitative acts of any kind. Chandley Technologies nor the writers of this site shall not be held liable for your actions.
Any reference to "Chandley Technologies" or "Chandley Tech" constitutes and includes any information or data found in this domain.
Please carefully review statements set forth under 'Safety' for further information.