The TMP36 is a low voltage, precision centigrade temperature sensor manufactured by Analog Devices. It provides a voltage output that is linearly proportional to the Celsius temperature. The TMP36 is easy to use and requires no external calibration or trimming to provide typical accuracies of ±1°C at +25°C and ±2°C over the −40°C to +125°C temperature range.
Parameter | Value |
---|---|
Supply Voltage (Vcc) | 2.7V to 5.5V |
Supply Current | 50 µA (typical) |
Output Voltage Range | 0.1V to 2.0V |
Temperature Range | -40°C to +125°C |
Accuracy | ±1°C at +25°C, ±2°C over range |
Output Impedance | 0.1 Ω |
Response Time | 1 second (typical) |
Pin Number | Pin Name | Description |
---|---|---|
1 | Vcc | Supply Voltage (2.7V to 5.5V) |
2 | Vout | Output Voltage (proportional to temp) |
3 | GND | Ground |
TMP36 Pin 1 (Vcc) -> Arduino 5V
TMP36 Pin 2 (Vout) -> Arduino A0
TMP36 Pin 3 (GND) -> Arduino GND
// TMP36 Temperature Sensor Example Code
// Reads temperature from TMP36 and prints to Serial Monitor
const int sensorPin = A0; // TMP36 connected to analog pin A0
int sensorValue = 0; // Variable to store the sensor value
float voltage = 0.0; // Variable to store the voltage
float temperatureC = 0.0; // Variable to store the temperature in Celsius
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bps
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the analog value from sensor
voltage = sensorValue * (5.0 / 1023.0); // Convert the analog value to voltage
temperatureC = (voltage - 0.5) * 100.0; // Convert voltage to temperature
// Print the temperature to the Serial Monitor
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println(" °C");
delay(1000); // Wait for 1 second before next reading
}
Inaccurate Readings:
No Output Voltage:
Fluctuating Readings:
Q1: Can the TMP36 be used to measure negative temperatures?
Q2: What is the accuracy of the TMP36?
Q3: Can I use the TMP36 with a 3.3V power supply?
Q4: How do I convert the output voltage to temperature?
Temperature (°C) = (Vout - 0.5) * 100
.By following this documentation, users can effectively integrate the TMP36 temperature sensor into their projects, ensuring accurate and reliable temperature measurements.