Timed Infrared Thermometer

by melissawolf729 in Circuits > Arduino

182 Views, 0 Favorites, 0 Comments

Timed Infrared Thermometer

IMG_4043.jpg

This device uses an infrared sensor to display body temperature of an individual on an LCD screen. It reports the temperature in degrees Fahrenheit every 30 seconds. It alerts the user when the body temperature is over 100*F.

The purpose of this device is to detect increased body temperature early, especially for individuals that are unable to regulate their body temperature. This ensures that the body temperature is controlled before fever/complications occur.


Supplies

Arduino Tinker Kit

  • Red Board
  • Bread Board
  • LCD Screen
  • Adafruit_MLX 90614 Infrared sensor
  • Potentiometer
  • Wires
  • Battery pack with 4 AA batteries

Build Circuit

thermometer circuit.JPG

Assemble the infrared sensor and LCD screen on the Red Board and Bread Board.


Copy Code

Note: This code displays temperature every 1 second. Change 1000 milliseconds (1 second) to desired interval.

Copy the following code into Arduino:


#include <LiquidCrystal.h>      // liquid crystal display library

 

#include <Adafruit_MLX90614.h>

 

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

 

LiquidCrystal lcd(13, 12, 11, 10, 9, 8);  // Arduino pins connected to the display

 

 

void setup() {

 

 mlx.begin() ;

 

 

 // we are using a display that is 16 characters wide and 2 characters high

 

 lcd.begin(16, 2);       

 

 //clear the display

 

 lcd.clear();         

 

}

 

 

 

void loop() {

 

 //set the cursor to the 0,0 position (top left corner)

 

 lcd.setCursor(0, 0);     

 

 //print temperature starting at that position

 if ( mlx.readObjectTempF() + 6 > 100) {

  lcd.print("Too Hot! ");

 } else {

  lcd.print("Temperature");

 }

 

 //move the cursor to the first space of the bottom row

 

 lcd.setCursor(0, 1);     

 

  

 lcd.print(mlx.readObjectTempF() + 6); lcd.println("*F");

 

 delay(5000);

 

 

}

Instructions for Use

Place thermometer close to forehead. The LCD screen will display the temperature that the thermometer reads at the desired interval. "Too Hot" Message will display if temperature is over 100 degrees Fahrenheit. The screen will automatically reset the temperature.


This device is ideal for individuals who cannot regulate their body temperature or are prone to fevers. It can be attached to wheelchair headrests if desired.