TMP36 (TMP36GT9Z) [S071]
*GitHub : https://github.com/rdiot/rdiot-s071.git
* Specs
Temperature range: -40°C to 150°C / -40°F to 302°F
Output range: 0.1V (-40°C) to 2.0V (150°C) but accuracy decreases after 125°C
Power supply: 2.7V to 5.5V only, 0.05 mA current draw
* Contents
Temp in °C = [(Vout in mV) - 500] / 10
So for example, if the voltage out is 1V that means that the temperature is ((1000 mV - 500) / 10) = 50 °C
- Connect
L - 5V
M - A0
R - GND
- Key Code
int sensorValue = analogRead(TMP36_PIN);
float mVoltage = sensorValue * 5000.0/1024.0;
float temperatureC = (mVoltage - 500) / 10.0;
'2) Sensor > Temperature' 카테고리의 다른 글
Analog Temperature Sensor (KY-013) [S020] (0) | 2016.09.02 |
---|---|
Terminal sensor adapter (DFR0055) [S093] (0) | 2016.09.02 |
DS18b20 Waterproof Temperature Sensor (DS18B20) [S023] (0) | 2016.09.02 |
DS18B20 (KY-001) [S019] (0) | 2016.09.02 |
LM35 (LM35DZ) [S007] (0) | 2016.09.01 |