How to Make Automatic Soap Dispenser
by ARDUINO MAKER in Circuits > Arduino
3369 Views, 2 Favorites, 0 Comments
How to Make Automatic Soap Dispenser
![How to make Automatic Soap Dispenser - Amazing invention - life hack - corona virus](/proxy/?url=https://content.instructables.com/FR0/Z68C/K84NHCVE/FR0Z68CK84NHCVE.jpg&filename=How to make Automatic Soap Dispenser - Amazing invention - life hack - corona virus)
HELLO THERE,
In this tutorial I will show you , how to make automatic contactless soap dispenser which is fully DIY
if you like it then consider supporting me by subscribing my channel ARDUINO MAKER. So get ready to be inspired.....! you can also watch my youtube video
Supplies
THINGS YOU WILL NEED :-
Connections
![automated hand wash_bb.jpg](/proxy/?url=https://content.instructables.com/FZR/HBL6/K84NH9NC/FZRHBL6K84NH9NC.jpg&filename=automated hand wash_bb.jpg)
After getting all supplies you can start connecting all things and securing them by soldering all connections properly. All connections are given above in the circuit diagram
Preparing the Soap Dispeser
![1.jpg](/proxy/?url=https://content.instructables.com/FR2/YC22/K84NHAOV/FR2YC22K84NHAOV.jpg&filename=1.jpg)
So, now after completing all connections its time to modify the soap dispenser so we could use it for our purpose
you can modify it by making some holes on the top nozzle as shown in the above picture
Glueing All the Components in Right Place
![IMG20200324134009.jpg](/proxy/?url=https://content.instructables.com/FF1/L682/K84NHAOX/FF1L682K84NHAOX.jpg&filename=IMG20200324134009.jpg)
![IMG20200324134016.jpg](/proxy/?url=https://content.instructables.com/FPD/Z8BO/K84NHAP0/FPDZ8BOK84NHAP0.jpg&filename=IMG20200324134016.jpg)
Now, after completing the above steps you can start gluing all the components in place as shown in above pictures
Connecting Servo's Saft With the Dispenser
![2.jpg](/proxy/?url=https://content.instructables.com/FAI/4I5I/K84NHAOW/FAI4I5IK84NHAOW.jpg&filename=2.jpg)
After this you will need a wire or sting to connect the dispenser with the servo's shaft through holes as shown above
Programming
Now, upload the code below
#include<Servo.h>
Servo myservo;
int pos = 180; void setup() { pinMode(2,INPUT); myservo.attach(3); } void loop() { int hsense=digitalRead(2); if((hsense==HIGH)) { myservo.write(0); } else { myservo.write(180); } }
Go and Wash Hands
Congratulations you have mad it successfully so, go and give it a try
thank you for your support...!