Visual smoke alert
It is an alert for disable (blind and deaf) people, if there is any dangerous the LED will light up(for deaf people) and the buzzer will make sound (for the blind people)
Hardware components
Electronic parts
Buzzer
LED
5V adaptor
Jumper wires
Breadboard
on/off switch
Arduino uno
Screw terminal block
Ultrasonic sensor
Software
The action components: LED-Buzzer
when something get closer to Ultrasonic sensor the LED and the buzzer will work.
voltage source: 5V from the Arduino and laptop
input: on/off switch- ultrasonic sensor(switch will open the circuit and the sensor for controlling the bulb and the buzzer)
Simulating the circuit on Tinkercad:
by searching on google about how to program Ultrasonic sensor in tinkercad I found that we need to :
Click on the Variables category in the code editor. Create a new variable called distanceThreshold and use a "set" block to set it to 100 (centimeters). this step to get the block for controlling the sensor.
if the switch is high(on ) the sensor and the other components will work, else they won’t (off).
using if--else condition to say that if the sensor detect any motion at distance more than 100cm, the buzzer and the LED will work(high).
else they will be low which means off.
started to simulate the circuit using tinkercad.
building the hardware components together.
connecting the robot with the power source.
try the circuit
wiring the sensor the ground--ground
vcc with common positive
echo with 8 and tiger with 13
wiring the LED the ground --ground
positive with pin 2
wiring the buzzer
ground --ground
positive with pin 4
the whole circuit
the Arduino
When the circuit was connected and switch is one: LED and buzzer were on.
If we put anything in front of the ultrasonic sensor, the LED and buzzer would be turned off.
challenge: I didn’t know how to code ultrasonic on tinkercad(I didn’t find the ultrasonic sensor on tinkercad so I searched for how to create it)
solution: I searched on google and tried different codes till I get the right one.
by searching on google about how to program Ultrasonic sensor in tinkercad I found that we need to :
Click on the Variables category in the code editor. Create a new variable called distanceThreshold and use a "set" block to set it to 100 (centimeters). this step to get the block for controlling the sensor.
if the switch is high(on ) the sensor and the other components will work, else they won’t (off).
using if--else condition to say that if the sensor detect any motion at distance more than 100cm, the buzzer and the LED will work(high).
else they will be low which means off.
Simplifying the idea o using sensor with the simple circuit.
playing with sumo robots