Automatic Soap Dispenser .. It gives you a fixed amount of soap when it recognize your hand and it works only if you are near of it
To fabricate the dispenser I used Tinkercad software to build, test and simulate the electric circuit
Arduino IDE Software to code the circuit & upload the text code on the UNO board
Cardboard - Glue Gun - Stationary tools to fabricate the shape & enclosure
Electric Components (Arduino Uno - Servo Motor - IR Sensor - Ultrasonic Sensor- LEDs - Breadboard - Jumpers - Adaptor 5V)
Inputs: IR Sensor - Ultrasonic Sensor
Outputs: Servo Motor - LEDs
Firstly I used tinkercad to draw the circuit and simulate the result .. I used PIR instead of IR simulating it's function and connected all together component together
Then connected the circuit in the real life on arduino board and then wrote an arduino text code
The code included 2 crossed conditions the first is to let the dispenser give soap using the servo motor and light up a red LED that's when the IR sensor read a signal and give a HIGH sign
The second condition is to let the first condition work + light up a green led as an indicator for that the system working know and waiting your hand and that's when the ultrasonic sensor read that you are near the despenser under 20 cm
then the code verified then choose the type of the board to be arduino uno & the port to COM 14 then uploaded the code and it worked efficiently
While working on the real life circuit it was so difficult to see all this pins together from 5 different components on the uno & I repeated it more then 3 times till I recognized that i should follow a color code to make it more easer and to be simpler to fix .. So, I changed the colors in tinkercad and real life to be the same & the circuit worked and the fixing become much easier
Title of Media