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 ?

\$\endgroup\$
  • \$\begingroup\$ Are you using the by-pass capacitor on the +Vs lead as recommended in the data sheet? \$\endgroup\$ – Nedd Mar 6 '15 at 12:24
  • \$\begingroup\$ This may be of interest: forum.arduino.cc/index.php?topic=124368.0 \$\endgroup\$ – akellyirl Mar 6 '15 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\$ – Nedd Mar 6 '15 at 12:39
2
\$\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

\$\endgroup\$
  • \$\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\$ – coelhudo Nov 22 '17 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.