Due to the break out of COVID-19, we need to check our body temperature wherever we go – from hospitals to airports – to detect any symptoms of the disease. Since the virus spreads through physical contact, we need to come up with a solution that enables us to measure the body temperature without contact.
[defineweblang title=”Change Video Language” language=”English,Hindi”]
[getvideolang url= “https://www.youtube.com/embed/F5X6aSKUP14″ language=”English”][/getvideolang]
[getvideolang url= “https://www.youtube.com/embed/lS72zTxzrp8″ language=”Hindi”][/getvideolang]
So today we will design an IR-based contactless thermometer using the MLX90614 sensor. This contactless device can also be used for other purposes like measuring the environment temperature or for measuring the temperature of water, flame and other objects.
Bill of Material
Let’s start our project by collecting the following components.
Open Arduino IDE. Go to Sketch and then open the Library Manager. Search the following libraries and install them.
To begin coding, add the libraries in the code and then create a setup function where the serial port baud rate is set to 9600. After that, initialise the sensor and the OLED communication.
Next, create a loop function where we will update the sensor readings and display that on the OLED display.
We will also make a small thermometer icon on the OLED display, which will show the rise and fall levels according to the readings of the temperature sensor. To do so, we have to map the sensor readings with the height of the OLED display and then draw a frame to show the rise and fall of temperature using the following code.
After writing the code, upload it to Arduino and then connect all the components as shown in the circuit diagram.
Congrats!! Now our device is ready. Power the device with 5V and then point the sensor towards your body. It will show your body temperature. By pointing the device towards flame, food or any other materials, their temperature can be detected as well.