Home > Projects > Sensor – Transducer – Detector Projects > How to Build a TMP36 Temperature Sensor Circuit

How to Build a TMP36 Temperature Sensor Circuit

Summary of How to Build a TMP36 Temperature Sensor Circuit


This article guides users in building a temperature sensor circuit using an Arduino and the TMP36 IC. The setup measures ambient temperature, converting analog voltage to Celsius and Fahrenheit values displayed via the Arduino Serial Monitor. The project requires specific hardware connections between the sensor's three pins and the Arduino's power, ground, and analog input, along with a USB cable for computer communication and code uploading.

Parts used in the TMP36 Temperature Sensor Circuit:

  • Arduino Board
  • TMP36 Temperature Sensor IC
  • Computer
  • USB cable with Type A and B connectors

In this project, we will demonstrate how to build temperature sensor circuit using a TMP36 sensor.
As a temperature sensor, the circuit will read the temperature of the surrounding environment and relay the temperature to us back in degrees fahrenheit.
How to Build a TMP36 Temperature Sensor

The IC we will use to measure the temperature is the TMP36 IC. We will integrate this with the arduino to measure the temperature. The arduino will then read this measured value from the TMP36 and translate into degrees fahrenheit and celsius, which we will be able to read from the computer from the arduino serial monitor.

Components Needed to Build the TMP36 Temperature Sensor Circuit

  • Arduino Board
  • TMP36 Temperature Sensor IC
  • Computer
  • USB with type A and B connectors

We can use any type of arduino board.

The TMP36 is a low voltage IC which uses between 2.7V and 5.5V of power. This is ideal because the arduino’s power pin gives out 5V of power. The IC has just 3 pins, 2 for the power supply and one for the analog output. The output pin provides a voltage output that is linearly proportional to the celsius (centigrade) temperature. In order to get the temperature in fahrenheit, we have to write code to the arduino to convert this celsius temperature into fahrenheit. The code is shown below.

Below is the pinout of the TMP36 IC:

Pin 1 receives positive DC voltage in order for the IC to work. This, again, is voltage between 2.7-5.5V. Pin 3 is the ground, so it receives the ground or negative terminal of the DC power supply. And Pin 2 is the output of the IC, outputting an analog voltage in porportion to the temperature it measures.

This is the datasheet of the TMP36 IC: TMP36 Temperature Sensor IC Datasheet.

The arduino, with suitable code, can then interpret this measured analog voltage and output to us the temperature in degrees fahrenheit.

Also to do this project we need a USB cable with a Type A connector on one end and a Type B connector on the other end. This is so that we can hook our arduino to a computer and send it code that it can run to dispaly to us the temperature.

Temperature Sensor Circuit Schematic

The temperature sensor circuit we will build is shown below:

How to Build a TMP36 Temperature Sensor Circuit

 

So you circuit connections are:

Pin 1 of the TMP36 goes into +5V of the arduino
Pin 2 of the TMP36 goes into analog pin A0 of the arduino
Pin 3 of the TMP36 goes into ground (GND) of the arduino

Now that we have this circuit setup, we now connect the USB cable from the arduino to the computer. The type B side of the connector goes into the arduino and the type A side into the USB port of the computer. Now the computer is connected to the arduino. We can now write code in the processing software to give instructions to the arduino.

 

For more detail: How to Build a TMP36 Temperature Sensor Circuit

Quick Solutions to Questions related to TMP36 Temperature Sensor Circuit:

  • What components are needed to build this circuit?
    An Arduino board, TMP36 Temperature Sensor IC, a computer, and a USB cable with Type A and B connectors.
  • How does the TMP36 IC receive power?
    The IC uses 2.7V to 5.5V of power, which is supplied by the Arduino's 5V power pin.
  • What function does Pin 2 of the TMP36 serve?
    Pin 2 outputs an analog voltage that is linearly proportional to the measured Celsius temperature.
  • How can I get the temperature reading in Fahrenheit?
    You must write code to the Arduino to convert the Celsius temperature into degrees Fahrenheit.
  • Where should Pin 1 of the TMP36 be connected?
    Pin 1 connects to the +5V terminal of the Arduino.
  • Which Arduino pin receives the output from the TMP36?
    Pin 2 of the TMP36 connects to analog pin A0 on the Arduino.
  • How do you connect the Arduino to the computer?
    Connect the Type B end of the USB cable to the Arduino and the Type A end to the computer's USB port.
  • Can any type of Arduino board be used for this project?
    Yes, you can use any type of Arduino board for this project.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top