3
\$\begingroup\$

I have a TMP36 temp sensor. I already did the programmation of it, tried different settings, different code found on the internet.

The sensor keeps giving me a temperature approximatly 10°C above real temp. Can it be broken or something ?

Weirdly it reacts when I put it outside the temp is reduced, and changes back when I put it inside.

What am I doing wrong ?

asked Mar 6, 2015 at 11:55
\$\endgroup\$
3
  • \$\begingroup\$ Are you using the by-pass capacitor on the +Vs lead as recommended in the data sheet? \$\endgroup\$ Commented Mar 6, 2015 at 12:24
  • \$\begingroup\$ This may be of interest: forum.arduino.cc/index.php?topic=124368.0 \$\endgroup\$ Commented Mar 6, 2015 at 12:27
  • \$\begingroup\$ If you're using the T-3 package see the paragraph "Mounting Considerations" in the data sheet. Seems the leads can act as heat pipes and cause errors. \$\endgroup\$ Commented Mar 6, 2015 at 12:39

1 Answer 1

3
\$\begingroup\$

I had a similar problem to this with the LM35, which was caused by the LM35 oscillating due to a long cable length between the sensor and Arduino. I fixed this by adding a 100Ohm Resistor to the signal line.

Changing to the TMP36 also fixed this problem for me because it is more robust when driving capacitive loads. But even so, the datasheet recommends a resistor for large capacitive loads.

Also don't forget the bypass cap across the supply.

enter image description here

answered Mar 6, 2015 at 12:34
\$\endgroup\$
1
  • \$\begingroup\$ Does it make a difference if the capacitor and the resistor are both at the base of the cable or are they required to stay as close as possible to the TMP3x? \$\endgroup\$ Commented Nov 22, 2017 at 7:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.