Go Down

Topic: TMP36 Reading Issues (Read 592 times) previous topic - next topic


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!


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

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

Code: [Select]

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 - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131