fudhail
Created May 17, 2020

Walkthrough IR thermometer

There is no need of persons to observe human temperature. it check s human temperature ,if more than normal body temperature it alerts

IntermediateWork in progress3 hours48
Walkthrough IR thermometer

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
i have used the pir module's pyroelectric sensor because of the lack of online shopping are closed due to covid-19 pandemic.Pyroelectric sensor is less sensitive. if you use mlx90614 / gy-906 for accurate measurement of temperature and applicable in many places. i more prefer to use the mlx 90614 and gy-906
×1
IR Proximity Sensor
Digilent IR Proximity Sensor
×1
Buzzer
Buzzer
×1
LED (generic)
LED (generic)
×1
5 mm LED: Green
5 mm LED: Green
×1
Resistor 1k ohm
Resistor 1k ohm
×2

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

schematic

Code

code

C/C++
for pyroelectric sensor - the analog read value is 0-741
. code is simple . in line 23 sensorvalue >500 its just a temperature reference
(use mlx90614 / gy-906 for perfect and accurate temperature)
int green = 10;
int red = 11;
int buzzer = 12;
const int proximity = 8;
const int tmpsensor = A1;
int sensorvalue = 0;

void setup() {
  Serial.begin(9600);
  pinMode(green,OUTPUT);
  pinMode(red,OUTPUT);
  pinMode(buzzer,OUTPUT);
  pinMode(proximity,INPUT);
  pinMode(tmpsensor,INPUT);

}

void loop() {
  boolean proximity = digitalRead(proximity);
  if(proximity == HIGH){
    sensorvalue = analogRead(tmpsensor);
    Serial.println(sensorvalue);
    if(sensorvalue > 500){
      digitalWrite(red,HIGH);
      digitalWrite(buzzer,HIGH);
      
    }else{
      digitalWrite(red,LOW);
      digitalWrite(buzzer,LOW);
      digitalWrite(green,HIGH);
      
    }
    
  }else{
    
    digitalWrite(red,LOW);
    digitalWrite(buzzer,LOW);
    digitalWrite(green,LOW);
    
  }
  
}

Credits

fudhail

fudhail

6 projects • 13 followers
opencv Arduino Raspberry pi iot robotics

Comments