Automatic Hand Washing Machine with Soap Dispenser using Arduino

This is an automatic water and soap dispenser that uses simple components. The system used two water tanks one for the water and the other one for the liquid soap, both the two tanks connected to a single tap using T-Junction with non return valve. Each tank connected to water pump machine to supply it contents to the tap. The system also used Ultrasonic sensor for the detection of Hands at a specified distance.

Working Principle

When hand detected the soap tank supply the liquide soap and stop, you can then remove and squeezing hands, when you take it back and detected by the sensor again the water tank would then supply water for you to wash your hand. The water stoped immediately as you removed your hands.


1- Arduino Uno

2- Two Water Pump (Wipper Pump)

3- One Ultrasonic Sensor

4- Two Relay

You can Download the code and proteus simulation here for free:

Knowbab Download Link

Lion Stern System Download Link