This is touchless hand sanitizer which uses IR proximity sensor to detect any motion. I have used a Arduino Uno as my microcontroller, but you can use any other microcontroller too, like Arduino Nano to build this project.
I am using a servo motor to move the pump, which dispenses the sanitizer.
Connect the ground and power pin of the servo motor to the ground and 5v pin of the Arduino respectively. Then connect the signal pin(yellow wire) of the servo to the pin 11 of the Arduino.
Now for the IR proximity sensor, similarly connect the ground and power pin to the ground and 3.3v pin of the Arduino respectively. then connect the signal pin ( yellow/orange wire) to the pin 7 of the Arduino.
Now attach the components to the hand sanitizer dispenser like I have did in the below picture.
Now connect the Arduino Uno to a computer, using the Arduino IDE upload the given code.
You can power the Arduino Uno using a 9v battery, connect the positive terminal of the battery to Vin pin and negative terminal of the battery to GND.
Comments