Introduction: Automated Dishsoap Dispenser With Arduino

About: Hi, my name is Izzy and I am 9 years old, I love making stuff with Arduino, I am here mainly for the contests but I might make some stuff from you guys

This is an arduino based automated Dishsoap dispenser.

We had a leftover pump from a different project so I decided to use it to make an automated soap dispenser. It is very useful and easy to use.

Step 1: The Components You Need

To do this project you will need an HC-SRO4 sensor,an Arduino Uno,a CurieJet pump,a Red and Green LED,and a Female Male Wire Dupont. You might have to 3d print some parts to hold everything together but you don't have to.

These are the files I used:

http://www.thingiverse.com/thing:1276318

http://www.thingiverse.com/thing:425516

http://www.thingiverse.com/thing:189585

Step 2: Where Everything Goes on the Breadboard

When I made this I followed jsvester's instructable here: https://www.instructables.com/id/Simple-Arduino-and...

The schematic can be seen here: https://www.instructables.com/file/F1T3TQ2H994BXMb

The pump needs only +5V and GND to be connected to work, without connecting the yellow wire it's always pumping. The yellow wire is used to turn it on or off (5V means Off and 0V means On) so I connected the yellow wire to the Red LED input.

The code from jsvester is here:

https://codebender.cc/sketch:423932

Step 3: How to Make It Work

After everything was connected I tested it without a pump so I could see if it worked. When it did I used a rubber tube 1.3 mm in diameter and connected it to the pump, than put one end in a cup filled with dishsoap diluted in some water. Please look at the label saying which side is input and which side is output so the pump won't get damaged.

Step 4: The Final Product

This is what it looks like when it is working. If you liked this project please vote for me!:)