Hand dryer, works through two modes, a sensor that senses when you place your hand under the device, and also a button on the side, if you press it, the device works.
Final Result
"Nshfha" Hand dryer
Software
TinkerCad
Arduino IDE
Materials
Arduino UNO
breadboard
Ultra sonic sensor
5V Fan
Jumper wires
switch
push button
9V adapter
LED
resistor 220 ohms
1
( Electronic circuit in Tinkercad )
1st I used Tinkercad to simulate the circuit.
I connected the components to the circuit as shown in the picture.
i use 9v battery + NPN transistor Instead of "Relay Module RM1V"
2nd I tested the code as shown in the video.
3rd I copied the code to download it to the Arduino.
If pin 8 reads a signal
mode 1 will word
If pin 8 does not read signal.
mode 2 will work " pin 3 "
Tinkercad simulate
Circuit Test in Tinkercad
2
( Electronic circuit in Breadboard )
1st I used ArduinoIDE to upload the code to the Arduino.
2nd I tested the circuit as shown in the video.
relay signal ---> pin 13
+ posh botton ---> pin 5
switch common ---> pin 4
+ LED ---> pin 10
The circuit on a breadboard
Circuit Test video
CODE in ArduinoIDE
Try switching between the two modes.
Try the basic mode
The circuit on a breadboard
with
Writing the code from scratch, on the Arduino IDE program