Shafeeq Ahamed
Published

IR Based touchless hand sanitizer

This is a touchless hand sanitizer, which uses IR sensor to detect motion of hand

BeginnerFull instructions provided1 hour2,483
IR Based touchless hand sanitizer

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
IR proximity sensor
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit diagram

Code

program code

Arduino
#include <Servo.h>
Servo servo1;
int irsensor = 7;
int servoPin = 11;

void setup(){
pinMode (irsensor,INPUT);
servo1.attach(servoPin);
}

void loop(){

int status = digitalRead(irsensor);

if (status == 1){
servo1.write(100);

} else {
servo1.write(0);
}

}

Credits

Shafeeq Ahamed
3 projects • 7 followers

Comments