Pages: [1]   Go Down
Author Topic: TMP36 Reading Issues  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
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:

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

Global Moderator
Offline Offline
Shannon Member
Karma: 224
Posts: 13915
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)

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.


Rob Tillaart

Nederlandse sectie -,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: