Pages: [1]   Go Down
Author Topic: TMP36 Reading Issues  (Read 446 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I'm new to arduino trying to work my way through a handful of examples. I'm currently working through a basic temperature reading example: http://oomlout.com/a/products/ardx/circ-10

For some odd reason, I keep getting consistent readings of -50.00. Any thoughts? I'd really appreciate any help you can provide!
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 216
Posts: 13663
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Please post YOUR code as there might be some diff..

Looking at the examplecode and reasoning backwards temperature == 0 (-0.5 *100 == -50)

Code:
float temperature = getVoltage(temperaturePin); 
temperature = (temperature – .5) * 100;     


That implies that the analog read allways read 0  so it is connected to ground  so
- or the TMP 36 is broken
- or your wiring is wrong (loose)

Try the code without a sensor (that should make the analor line float and give different reading.


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: