Site icon SURTR TECHNOLOGY

Arduino Contactless Thermometer with MLX90614 + OLED / LCD

Contactless temperature sensor MLX90614 + Arduino + LCD/OLED



Hello, and welcome to this tutorial, here I’ll use a MLX90614 (GY906) Infrared non contact temperature sensor, I’ll use it with a LCD i²c screen and OLED display, and I’ll measure temperature in both °C and °F.

So, each object emits infrared waves depending on its heat, and these waves are detected using a thermopile which get hotter and hotter, in the same time converting the excess heat to electricity, you can learn more if you want read this Article from  AZO sensors.

Here are some information about the MLX 90614 sensor:

  • Range for ambient temperature: -40 to 125 ˚C (-40 to 257 °F)
  • Range for object temperature (non contact): -70 to 380 ˚C (-94 to 716 °F)
  • Resolution: 0.02 °C
  • Accuracy: 0.5°C for (0-50 °C) both ambient and object

You can use this sensor for medical and healthcare applications, home automation, or measure surfaces using a non invasive  method.

If you need to check other temperature modules here are some tutorials:

Hardware and parts

Here are the parts I’ll use, I used both LCD and OLED so you can chose whatever suits your project, alongside I used a breadboard and some jump wires:

 




Wirings

Wiring 1: Basic wiring for testing

MLX90614 with Arduino

 

Wiring 2 : With LCD i2c

MLX90614 with LCD i2c

Wiring 3: With OLED i2c, two different sizes

MLX90614 with OLED i2c 128*64

 

MLX90614 with Arduino and OLED 128*32

 

Libraries



Codes

You can download them here or you can check below. The code results are also below.

Code 1: Library example – mlxtest

Just have the simple wiring and upload the code, open the serial monitor to test.

Code 2: Using LCD

Code 3: Using OLED 128*32



Test

First we test with serial monitor only, I placed my hand over the sensor, you can see the difference

Test with Serial monitor

 

Test with LCD screen, and measure in Celsius

Test with LCD

 

Test with OLED screen, and measure in Fahrenheit

Test with OLED

 

This is pretty much all.

Exit mobile version