DIY Automatic Hand Sanitizer Dispenser

3,704

5

12

Introduction: DIY Automatic Hand Sanitizer Dispenser

In this project, we will build an Auto Hand Sanitizer Dispenser. This project will use Arduino, Ultrasonic Sensor, Water pump, and Hand Sanitizer. An ultrasonic sensor is used to check the presence of hands below the outlet of the sanitizer machine. It will continuously calculate the distance between the sanitizer outlet and itself and tells the Arduino to turn on the pump whenever the distance is less than 15cm to push the sanitizer out.

Arduino is used as the main controller.

Step 1: Components Required:

  1. Arduino Uno or nano
  2. Breadboard
  3. Pump or motor
  4. Ultrasonic sensor
  5. Transistor or relay
  6. 9v battery

Step 2: Mechanics:

Let's Understand the Mechanical Arrangement before we start making it. We will need a mechanism which will create a force to push the nozzle down and dispense the liquid, since we are using servo motor, that provides circular motion, it alone can’t create a downwards force, we will need some kind of mechanical arrangement to make it happen, we will use pulley mechanism to fix one end and convert the rotational force to push, we can do that using Copper Wire to create a downwards vector force for transmission, what it basically does is, it convert the circular force of Servo to a downwards acting force vector, to simulate push. but this all sounds complicated, so let’s execute this task bit by bit, following the further steps

Step 3: Circuit Diagram:

Connections for this build is very simple !

Sensor to Arduino:

Trigger to D9

Echo to D7

Vcc to Vcc

Gnd to Gnd

Motor to Arduino: Signal to D6

Step 4: Learn How to Interface Ultrasonic Sensor:

Watch the video carefully. I have explained the code in detail.

Click here

Step 5: Code:

For credit, please follow my following accounts.

Thanks

Connect with me on:

Youtube:Click here

Facebook page:Click here

Instagram: Click here

Step 6: Project Code Explained:

Arduino Contest 2020

Participated in the
Arduino Contest 2020

Be the First to Share

    Recommendations

    • Halloween Contest

      Halloween Contest
    • Plastic Challenge

      Plastic Challenge
    • Rocks, Gems, and Stones Speed Challenge

      Rocks, Gems, and Stones Speed Challenge

    12 Comments

    0
    malehotina
    malehotina

    Question 9 months ago on Step 6

    Hey...is the code still the same if I use Water Pump??

    0
    Mudit5246
    Mudit5246

    Answer 9 months ago

    yes, every thing will be same.

    0
    scrouplz
    scrouplz

    11 months ago

    code doesnt work..what is it

    0
    Mudit5246
    Mudit5246

    Reply 11 months ago

    Please check your circuit connection again

    0
    scrouplz
    scrouplz

    Reply 11 months ago

    line 24 in the in the post have 2 different lines of code..i printed the code and line 24 has 2 different strings of code

    0
    Mudit5246
    Mudit5246

    Reply 11 months ago

    Please share the screenshot of the issue you are facing on instagram or fb

    0
    Mudit5246
    Mudit5246

    Reply 11 months ago

    1k ohm

    0
    oommenvenu
    oommenvenu

    1 year ago

    some one do not remove there hand does it trigger continuously . once it is trigger it should stop make code sir please

    0
    Mudit5246
    Mudit5246

    Reply 1 year ago

    Please share your email id

    0
    namanjain30
    namanjain30

    Question 1 year ago on Step 5

    bro give me the code of the project.. i m having trouble to find it on your youtube channel

    0
    Mudit5246
    Mudit5246

    Answer 1 year ago

    Please share your email id