Skip to main content

Automatic Hand Sanitizer Dispenser

Automatic Hand Sanitizer Dispenser Using Arduino

Hi guys! Welcome to an exciting Blog. Today we are going to do a project which is very relevant in the present scenario We are going to make an automatic hand sanitizer or hand wash dispenser. We just need to keep our hand below it and it dispenses hand sanitizer or hand wash without any direct contact.


Components:

  • Arduino
  • Battery
  • Servo Motor
  • HC-SR04
  • Glue Gun
Now, Let's Begin. 

Description:

First of all, we need some sheets to make the structure of the dispenser We'll stick the longer sheet on the smaller one by using a hot gun We are using the sheet that is used to make the ceiling Next we need a piece of sheet with a hole in its center we can stick that sheet on top of the longer sheet Now lets stick a small piece in the gap for a stronger hold Then stick a washer over the hole We made this washer Then we made a piston using a sketch pen and wheel cup of a toy JCB For a stronger hold we stick a washer between the sketch pen and the wheel cup Now insert the piston through the hole. We need a plastic cup on top of the piston like the one used in its bottom portion . This cup should have radius more than the bottom one. Now, stick the cup on the sketch pen. Then we need a servo motor . Before sticking the servo motor we need to stick 2 small pieces of the sheet for height. Now using glue gun stick the servo motor on the sheet piece. Then we need an ultrasonic sensor and some jumper wires. Connect them to the 4 pins of  the sensor. Then lets stick the sensor on the top edge. So, the structure of the dispenser is now almost ready.

Connections:


We need an Arduino Nano. Now lets connect the servo and the sensor to the Arduino. The circuit is in this manner and lets connect accordingly In order to connect a 9 volt battery to the Arduino, we have soldered 9 volt battery connector and jumper wire. Now lets connect the 9 volt  battery and see what happens. The arduino has turned on. Now lets stick the arduino using a double side tape. Then lets bring the wires together for a more ordered appearance. Now the wires look neat, lets stick the 9 volt battery beside it using a glue gun. Next we need to program the arduino. For that lets connect the Arduino to a laptop or a desktop. Now reset the Arduino by pressing the reset button on it. Then open the Arduino software, So this is our program. Now press the upload button.We can see that the uploading is done . Now keep a hand-sanitizer or hand wash on the base for automatic dispensing. Let now connect the 9 volt battery and see. Our automatic dispenser is now ready.
Now all you need to do is keep your hand below the hand wash. The hand wash will automatically come to your hand we hope that this project has been useful to all of you. Please wash your hands frequently and stay safe. So if you like this Blog do share and Comment below.

Code:

#define echoPin 4                // defining pins and variables
#define trigPin 5int long duration;
int distance;

const int motor= 10;             // pin connected to base of npn transistor

void setup()
{
  pinMode(echoPin,INPUT);        // defining pin modes
  pinMode(trigPin,OUTPUT);  
  pinMode(motor, OUTPUT);        
}

void loop()
{
  digitalWrite(trigPin,LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin,HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin,LOW);
  duration=pulseIn(echoPin,HIGH);
  distance=(duration*0.034/2);   // now you got the distance 

  if(distance<=20)               // checking the presence of hands in 20 cm limit
  {  
    digitalWrite(motor,HIGH);    // if present motor operates for some time
    delay(400);                  // delay value to changes the operating time
    digitalWrite(motor,LOW);     // pump stop working for some time
    delay(1000);                 // some delay prevents continous operation
  }
  else 
  {
    digitalWrite(motor,LOW);     // if no hands detected - no operation
  }
}Hope You completed the project without any doubt!!!

Comments

amazon banner

Popular posts from this blog

Motion Detector Camera

Motion Detector With Photo Capture Camera   Hello friends!! Welcome to This Blog. In this Blog, we will make a motion sensor detector with photo capture using ESP32CAM and the PIR module. The logic behind is when the PIR sensor detects any motion, the ESP32CAM will start taking the pictures. So you can use this project as a security camera. In thisblog, I will share the circuitdiagram, Arduino sketch, and the component list, so after reading the complete article you can easily make this project. Now ESP32 CAM is a small camera module that has ESP32S chip on the back and some GPIO pins to connect peripherals and it also has a micro-SD card slot, where you can insert the micro-SD card and store the pictures. Now before going to the circuit diagram and Arduino sketch, let me give you a quick overview of this project.  Components Required ESP32-CAM  PIR Motion Sensor Module BC547 NPN Transistor 220ohm, 1k, 10k Resistor. LED 5-mm FTDI 232 USB to Serial Interface board 5 v...

Automatic Water Tap Control

Automatic Water Tap Control System Using Arduino Hello, viewers welcome to our new project demonstration.The project title is automatic basin tap control system using Arduino with IR obstacle sensor. The project have another part which is detect the motion and control the light automatically.  Let's see how it is made.  Components list: * Arduino Nano * 16*2 LCD display * Water Tap * IR Sensor * 10k potentiometer * PIR Motion Sensor * 5v LED light * 12v Dc water pump * 12v transformer * BC547 Transistor * 4*2 Battery * On/OFF Switch * 10k Resistor * 100ohm resistor * Veroboard * Some Jumper wire For making this project single Arduino nano-board, 16*2 LCD Display. This is a PIR motion sensor and 5v LED light.The power switch for the circuit. This is another PIR motion sensor and 5v LED light. Here we supply the power using two 4V batteries. This is the rectifier circuit with 12V Auto Dc Transformer. Here we connect the 12V dc water pump motor. This IR obstacle sensor and water ...

Wireless Weather Station

Wireless weather station u sing Arduino   Dear friends welcome back! Today we are going to build a wireless weather station project using Arduino.Without any further delay, let’s get started!  A Wireless Weather Station with a big 3.2” Color TFT display. The project is up and running,and it displays the current date and time, the indoor temperature and humidity, and the outdoor temperature and humidity. The readings of the outdoor sensor are updated every second in order to demonstrate that we have a reliable communication link established with the transmitter which is outside at a distance of 5m. The readings of the indoor sensor are updated once every minute. The heart of the project is the fast Arduino Due, there is no flickering of the screen when the values are updated. Let’s now see the transmitter.  The transmitter is much simpler. It consists of an Arduino Nano, a DHT22 sensor and the NRF24L01 wireless transceiver module. The transmitter reads the temperature and ...