Pages: [1]   Go Down
Author Topic: LM335Z - Temp Sensor  (Read 1871 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I've picked up a couple of Temp Sensors(LM335Z) thinking, i'll make a simple thermometer with it. I started reading the datasheet(http://www.national.com/ds/LM/LM135.pdf) and now have no idea how to hook this up. I trawled the web for a while but think i've just confused myself even more.

so...
Question 1
How do these sensors work?
Question 2
How do i hook it upto the Arduino?

thx in advance smiley
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

1, they output a voltage that is proportional to the temperature.

2, you wire the output to an analogue pin on the arduino (as well as ground and 5 V) and determine the temperature from the reading from the analogue pin.  

If your 5V isn't exactly 5V it may be some way out........
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the speedy reply pluggy.

So would i connect both 5v(from Arduino) and the Analog pin to the same point on the chip, being the center pin after looking at the datasheet?
Logged

Central Indiana, USA
Offline Offline
Full Member
***
Karma: 0
Posts: 203
So many projects, so little time...and money!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What he was saying is that you can use the Arduino power supply (+5V) to connect to the power pin on your temp sensor.  Ground on the temp sensor goes to ground on the Arduino.  Analog pin on the temp sensor goes to the analog pin on the Arduino.  Does this help clear it up?
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This should help:
http://www.duinoaday.co.uk/products.html#T

Lots of examples there smiley

Mowcius
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks flyboy and mowcius, but I'm still confused as to which pin is the analog pin on the chip. Looking at the datasheet, the LM335Z has the following pin configuration.

left pin - ADJ
Center pin - V+
right pin - Gnd

from what i understand, the adj pin is for calibrating only. :-/

« Last Edit: May 10, 2010, 05:26:11 pm by Roderz » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 103
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the other posters are thinking of the LM35 which uses three terminals.  The datasheet for the LM335 says it works like a temperature-dependent "2-terminal zener diode".  So, ignore the ADJ terminal.  Connect the Gnd terminal to Arduino ground.  Connect a resistor (Say about 1K) from Arduino 5V to the LM335 V+ terminal, and then connect that point to an Arduino analog input.  Then you should be able to read the analog input and scale the value into real temperature.
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, sorry, I did not read correctly, dilbert appears to be right.

On another note, dilbert is the name of my hard drive smiley-razz

Mowcius
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Correct you are dilbert, connected as per your instructions and whollar worked 1st time. Thanks a million. smiley

Now onto converting my output into something more readable.

Logged

Pages: [1]   Go Up
Jump to: