TMP36 Temperature Sensor

by Spaceman Spiff in Circuits > Arduino

4666 Views, 52 Favorites, 0 Comments

TMP36 Temperature Sensor

18403986_10213024883121930_2494028229389838112_o.jpg

There are many options to measure temperature for your projects. One of the easiest method is the use of the TMP36 Chip. It is highly accurate with a temperature range between -40°F to 302°F (-40°C to 150°C), easy to come by, and is very cheap.

Parts

18318989_10213024880761871_3201724972896682226_o.jpg

Here's what you'll need to get started:

Connections

tmp36_temperature_sensor.png
18358880_10213024880801872_9113550284288920582_o.jpg
18359221_10213024880841873_6547699574720565691_o.jpg

The TMP36 has three pins. Looking at the flat side of the sensor the leftmost pin is Voltage in (between 2.7V to 5.5V DC). The center pin is Voltage out. This puts out a variable voltage between 0.1V (-40°C) to 2.0V (150°C), and will connect to any of the Analog input pins on the Arduino. The right most pin is Ground.

In this example I have connected the follwoing TMP36 pins to the Arduino respectively, Vin to 5V, Vout to A0, and Gnd to Gnd.

The Sketch

serial monitor.jpg

Use the attached sketch (TMP36.ino) and upload it to your arduino. After loading the sketch use the serial monitor (Tools > Serial Monitor) to see how the TMP36 responds to its environment.

Downloads