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.
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.
Coding
Open Arduino IDE. Go to Sketch and then open the Library Manager. Search the following libraries and install them.
- U8g2
- Adafurit_Mlx90614
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.
Connection
After writing the code, upload it to Arduino and then connect all the components as shown in the circuit diagram.
Testing
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.
It’s very useful project for in this situation and very nice
Less components use in this project. This is main advance of their project
Thanks a lot
Actually but misleading title .. It just checks temperature .. and having temperature is one of the sign of covid, but could mean something else..
Nice project .. but Need title to be updated.
what is the max distance sensor can sense temperature accurately
Thank you lot
You are most welcome.
how to power the device?