IR thermometer MLX90614 with TinkerPie
Measures temperature from a distance, like a forehead thermometer.
| Type | Smart sensors (I2C) |
|---|---|
| Connect to | SENSOR port · 0x5A |
| Gives | °C without touching |
| Simulator | Yes: a control appears under the simulated board |
How it works
Every warm object gives off infrared light. The MLX90614 measures that infrared light from a distance and works out the temperature of the surface it is pointed at, without touching it.
How to wire it
Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.irTemperature()
sensors.irAmbientTemperature()
// Arduino C++
sensors::irTemperature()
sensors::irAmbientTemperature() Good to know
- Object range about -70 to 380 °C; about ±0.5 °C near room and body temperature.
- It measures the average of a wide area (about 90°), so hold it close to small objects.
- Uses I2C (address 0x5A).
Projects with the IR thermometer MLX90614
Similar modules
- Light meter BH1750
- Temperature + humidity AHT20
- Temperature + humidity SHT31
- Motion sensor MPU6050
- Colour sensor TCS34725
- Real-time clock DS3231
- 4-channel ADC ADS1115
- Current + voltage sensor INA219
Questions
Can I try the IR thermometer MLX90614 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Can I use it as a fever thermometer?
It is great for learning how forehead thermometers work, but it is not a medical device. Always use a proper thermometer and ask an adult if someone is unwell.