Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Sensor value (data) display on TFT LCD using Arduino – Part III

By Ashutosh Bhatt June 19, 2024

Contactless body temperature measurement using MLX90614 sensor

In the previous two articles of this tutorial series, I demonstrated how to display analog sensor data (like POT, LM35, soil moisture sensor, etc.) or smart digital sensor (DHT11) data on TFT LCD.

In this third article, I will explain how to display body temperature on TFT LCD. It uses a contactless temperature measurement sensor MLX90614. It is a complete contactless body temperature measurement system built using an MLX sensor, TFT LCD, push button (to take reading measurements), LED, a buzzer (for indication), etc. The complete system is built around the Arduino NANO development board.

The circuit diagram is followed by its connection, working, and operation.

Circuit diagram
The figure shows that the circuit is built using an MLX90614 sensor, buzzer, push button, Arduino NANO board, and TFT LCD.

Circuit connections
The MLX sensor has four interfacing pins (1) SDA, (2) SCL, (3) Vcc (4) Gnd. SDA and SCL pins are for IIC communication. The sensor works on IIC protocol, so these pins are connected with IIC pins A4 (SDA) and A5 (SCL) of the Arduino board. The Vcc pin is connected to the 5 V pin of Arduino, and the Gnd pin is connected to the circuit ground.

The TFT LCD has a total of eight pins. It works on the SPI protocol. So, its pins are connected to the SPI pins of the Arduino board.

One LED is connected to pin A2 of the Arduino board for indication. As shown in the figure, one push button is connected to digital pin D2, and the buzzer is connected to pin D3 for audio indication.

Arduino board gives 5V output to MLX sensor and TFT LCD. A 9V battery powers the circuit. This 9 V is given to the Arduino board Vin pin.

Circuit operation
The circuit operation is very simple. We should point the MLX sensor to any person’s forehead (5 cm distance) and press the button. The sensor will measure the person’s body temperature. Arduino reads this body temperature and calibrates it. Finely it displays this body temperature value on TFT LCD in centigrade (oC) and Fahrenheit (oF). The LED blinks whenever a new value is read and displayed, and the buzzer gives a beep sound.

How the MLX sensor measures body temperature and how Arduino reads this temperature from the MLX sensor is explained in my article here:

https://www.engineersgarage.com/smart-contactless-temperature-measurement-gun

This temperature value is converted into a string, and it is converted into a character array. Finally, Arduino displays this body temperature as characters on TFT LCD. The Arduino has the TFT library “TFT.h” that is used here along with two other libraries, “SPI.h” and “wire.h”

Arduino TFT library has direct functions to display TEXT, graphics, images, etc., in various colors on TFT LCD. The TFT LCD works on SPI. So, to communicate with TFT LCD, we need an SPI library and wire library

Here is the software program in Arduino IDE for displaying body temperature on TFT LCD

Here is the snap of the circuit arrangement and its working.

Youtube video link for this article

https://youtu.be/bRvaGxSwG1Y

In the next article of this tutorial series, I will explain and demonstrate a distance measurement system using TFT LCD and UDM sensor HC SR04.

 

 

You may also like:


  • What are EMS/EMC immunity lab tests?

  • What are the top development boards for AI and ML?

  • Sensor value display on TFT LCD using Arduino: Part I

  • Arduino compatible coding 01: Arduino MCU family

  • How to display sensor values on a TFT LCD using…

  • How to design a smart, contactless temperature-measurement gun

Filed Under: Arduino Projects, Electronic Projects, Featured Contributions

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe