Différences entre versions de « ENG-CANSAT-TMP36 »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 30 : Ligne 30 :
 
* [http://www.analog.com/en/mems-sensors/digital-temperature-sensors/tmp36/products/product.html TMP36 datasheet] (''analog.com'', html)
 
* [http://www.analog.com/en/mems-sensors/digital-temperature-sensors/tmp36/products/product.html TMP36 datasheet] (''analog.com'', html)
  
=== how to measure the temperature ===
+
=== How to measure the temperature ===
 
{{traduction}}
 
{{traduction}}
Comment calculer la température Il faut donc convertir la tension analogique en degré. Comme le TMP36 permet de mesurer des température négatives, le 0 degré Celsius est placé à une offset de 500 milliVolts. Ainsi, toute mesure inférieur à 500 mv correspondra à une température négative.
+
It will be necessary to convert the analogue voltage intro degree. As the TMP36 can also measure negative temperature, the 0 degree Celcius is placed at 500 mV offset. So, any voltage under 0.5 Volt is a negative temperature.
  
 
[[Fichier:TMP36-Graph.png]]
 
[[Fichier:TMP36-Graph.png]]
  
La formule est la suivante pour le TMP36:
+
Here is the formula to use with a TMP36 powered at 3.3v:
  
Temp en °C = ( Tension_de_sortie_en_milliVolts - 500) / 10
+
Temp in °C = ( output_voltage_in_mV - 500) / 10
  
Donc, si la tension de sortie est de 1 Volts, la température correspondante est de
+
So, if we do have an output voltage of exactly 1 Volt (1000 mV) then the temperature would be
(1000 - 500)/10
 
  
Soit 50 degrés Celcius.
+
temp = (1000 - 500)/10
  
si vous utilisez un LM35 ou similaire, la température se calcule comme suit (utiliser la ligne 'a' sur le graphique):
+
So 50 Celcius degreess.
 
 
Temp en °C = ( Tension_de_sortie_en_millivolts) / 10
 
  
 
== Wiring ==
 
== Wiring ==

Version du 3 octobre 2018 à 15:31

About the TMP36 Sensor

The TMP36 is the reference analogue temperature sensor in the Arduino world. It is affordable, small et power efficient. For sure there are better temperature sensors but this one will do the job for almost nothing :-)

This sensor is very common and easy to use. It is also one of the components of the ARDX development kit.


With the TMP36, it is possible to measure a temperature from -50°C to 125°C, the output voltage is proportional to the temperature.

Don't be fooled, the TMP36 looks like a transistor (eg: P2N2222AG) but it isn't a transistor. It is a complex sensor within a package identical to a transistor.

There are 3 pins on the TMP36.

  • the ground (on the left),
  • the output signal (center position),
  • the +5 volts (on the right)

TMP36-pinout.jpg

The sensor output signal does output 10 millivolts per degree (with 500mV offset for temperature under 0°C).

Eg:

  • 25° C --> output = 750 mV
  • 0° C --> output = 500mV

Technical detail

  • Analog output (see graphics)
  • Temperature range: from -50°C to 125°C
  • Power supply range: 2.7 to 5.5v
  • TMP36 datasheet (analog.com, html)

How to measure the temperature

It will be necessary to convert the analogue voltage intro degree. As the TMP36 can also measure negative temperature, the 0 degree Celcius is placed at 500 mV offset. So, any voltage under 0.5 Volt is a negative temperature.

TMP36-Graph.png

Here is the formula to use with a TMP36 powered at 3.3v:

Temp in °C = ( output_voltage_in_mV - 500) / 10

So, if we do have an output voltage of exactly 1 Volt (1000 mV) then the temperature would be

temp = (1000 - 500)/10

So 50 Celcius degreess.

Wiring

Pour l'utiliser, connectez simplement la broche 1 (gauche) à une source d'alimentation (entre 2.7 et 5.5V), la broche 3 (droite) à la masse (gnd) et finalement la broche 2 (au milieu) sur une entrée analogique de votre microcontroleur.

La tension de sortie est de 0V à -50°C et 1.75V à 125°C. Il est facile de convertir la tension de sortie (en millivolts) en température à l'aide de la formule:

Temp °C = 100*(lecture en V) - 50

La fiche technique du TMP36 est accessible ici.



Written by Meurisse D. from MC Hobby - License: CC-SA-BY.