Dyson Hand Dryer
Our assignment for this week is to Build and Program a smart circuit using an Arduino UNO which reads a signal from an input component (Sensor, Switch, or variable resistor) to control an action component (Motor, Buzzer, LED...etc) using Code Blocks.
My idea for this week is to make a prototype of an automatic hand dryer using an Ultra sonic sensor and a dc brush-less fan.
Software:
Tinkercad to test the circuit and coding.
Arduino IDE to upload the code
Materials:
Arduino UNO
L298N Driver Board Module.
HC-SR04 Ultrasonic Wave Detector.
DC fan motor.
Breadboard
Jumper wires.
DC fan motor.
on/off slide switch.
Red LED.
Green LED.
220 Ω resistors.
9v power adapter.
Circuit in tinkercad
Simulation in Tinkercad
Using Tinkercad I started adding the components on the breadboard and connecting it to the power source and Arduino UNO board.
Connected the Ultrasonic sensor as follows:
VCC to Positive power .
Trig to Pin 5.
Echo to pin 6.
GND to circuit ground.
connected the L298N Driver as follows:
input 3 to pin 3.
input 4 to pin 4 .
output 3 to motor positive.
output 4 to motor ground .
GND to ground.
Enable 3&4 to 5V.
Power to 9V power supply.
I wanted to make the fan blow once you place your hand in front of it to dry it.
So using code blocks I started adding an IF/ELSE statement so when the sensor checks an object less than 10 CM away it sends a signal to the fan to blow and lights up the red led. otherwise the green led is on to indicate the machine is ready to use.
Video Testing the circuit
waving bot circuit
Working in pairs is very challenging yet very useful, when you explain a concept or a way of wiring the circuit to your teammate you also gain a better understanding of that concept yourself.
Had some problems connecting the Hbridge, but I went back and checked the previous week's lectures to refresh and remmber how to do it correctly.
L298N Driver Board Module.
Arduino UNO
The Final Project relays on Arduino to be the brain, So it was important getting introduced to the UNO and getting familiar with the code to be able to finish my project.
in this video Computer scientist Amit Sahai, PhD, is asked to explain the concept of zero-knowledge proofs to 5 different people; a child, a teen, a college student, a grad student, and an expert.
Using a variety of techniques, Amit breaks down what zero-knowledge proofs are and why it's so exciting in the world of cryptography.
I never heard about zero knowledge proof before. but it's a interesting concept
zero-knowledge proof
It was nice working on the waving bot this week . really enjoyed it .
waving bot