Introduction: IOT ThermoGun - Smart IR Body Temp Thermometer - Ameba Arduino

With COVID-19 still wreaking havoc globally, causing thousands of deaths, millions hospitalized, any useful medical device is on high demand, especially household medical device like IR non-contact thermometer 🌡🔫. Handheld thermometer usually is on high price point and is harder to come by these days, but the components needed to make thermometer are not that expensive, that give us the perfect reason to DIY one during this lockdown period.

This ThermoGun project use Ameba Dev. board RTL8710AF from Realtek, which connects to an OLED display to show temperature data obtained from the MLX90615 IR sensor. Pushing the push button not only perform data acquisition and visualization, but also publish the data via MQTT to all subscribers. Note: The MQTT service used in this project is a FREE MQTT broker hosted at, which need to register at . Details of registration is at the link below,


  • Ameba1 RTL8710 x1
  • 128x64 monochrome OLED display (SPI version) x1
  • MLX90615 IR temperature sensor x1
  • Push button x1
  • Jumpers
  • 3.7V LiPo battery x1
  • 1K Ohm pull-up resistor x1
  • 3D printed case (optional) x1

Step 1: Hardware and Connection

The difficult part of this project is to get everything connected and put into an small enclosure, thus please follow the connection above to connect all components together.

Note: There is only one pull-up resistor attached to SDA pin of the temperature sensor and its value is 1K ohm

Step 2: 3D Printed Casing (optional)

If you have access to 3D printer, then you may use the CAD files provided here to print out the casing, else just use anything you feel comfortable with, as always inside is more important than the outside

Step 3: Programming and Complete Product

The code is already written and provided in the Github link down below, you may download it and view the rest of content on the Github page

That's it, if you face any problem, please watch the demo video on the top, it shows you how it was made ;)

Have fun and keep DIYing~