How to make automatic hand sanitizer at home

How to make automatic hand sanitizer at home

Hey Guys, welcome back to the Techatronic, In this post, we are going to explain how to make automatic hand sanitizer dispenser at your home. it is pretty easy to make that project you need to know some basics of the project. as all we know in the pandemic time we all working to make anything useful which can protect us. this automatic hand sanitizer could be very useful. you all try to make it. we made also the automatic soap dispenser which we are using it from 5 months in our space you should also have this go and check how to make it. it is pretty simple. link is given in the above mention line. these two projects are available in the market too with quite an expensive price. but you can make all these with some bucks. so, try with us with the given step, but first, we try to understand the working and working principle of the touchless hand sanitizer. we will also give the code and the proper circuit diagram. so, let’s get started.

How does it work?

working of automatic hand sanitizer is pretty easy. you need to put your hand in front of the machine it will automatically give you the sanitizer. there is a sensor name ultrasonic sensor that can detect the presence in front of it. then send the information to the system and the system response accordingly. the system gets the information from the ultrasonic sensor and processes this information and compares the information with the desired condition and sends instructions to the water pump to pull the sanitizer out.

ultrasonic sensor working in automatic hand sanitizer.

the ultrasonic sensor can transmit and receive the ultrasonic waves. there are two terminals in the ultrasonic sensor one is transmitted and another s receiver. the transmitter sends the ultrasonic waves and receives them by the anther terminal after the collision from any surface. then by the time taking from transmitting to receiving we can calculate the obstacle distance from the ultrasonic sensor. now this distance uses to make the sanitizer work. for example, if we use the threshold distance 10 cm. them we need to compare the ultrasonic and object distance with the threshold distance and if the distance is less than 10 cm then the sanitizer will on otherwise the sanitizer remain off.

Learn 10+ basic activity & sensor interfacing with our Arduino ebook. Well explained program. And brief circuit diagram WhatsApp and email support. which will help you to learn basic electronics, Arduino Coding, Sensor interfacing with Arduino, Arduino, and much more. buy Arduino Ebook to learn

Arduino working in automatic hand sanitizer.

Arduino is an open-source development board with the atmega IC. you required and application to programming this board call Arduino IDE. we need to write the code for this project in the Arduino. Arduino is a brain in this project. which takes decision according to the sensor. all the calculations process all things controlled by the board.

Automatic Hand Sanitizer Circuit Diagram.

automatic hand sanitizer diagram

How to make automatic hand sanitizer at home

Arduino code for automatic hand sanitizer

int duration_front=0;
long distance_front=0;
void setup() {
// put your setup code here, to run once:



void loop() {

digitalWrite(4, HIGH);
digitalWrite(4, LOW);
duration_front= pulseIn(4,HIGH);






upload the given code in Arduino.

watch the full video here


This Post Has One Comment

Comments are closed.