in this week assignment i added an input and output componant to the project to be an alert system in the danger place like Radiation and chemical places to Warning employees who are not allowed to enter these places through light warning and buzzer warning based in distance .and I did not inspired this idea from the internet but I work more in my oldest exersice to be more useful .
i used tenkarCad to simulate the circuits and check it then i used the breadboard and components to make the circuits in real.
the components :
breadboard.
arduino uno
ultrasonic sensor
buzzer
wiers
labtop power.
green led
red led
220 resistors
button
this video simulate the circuits in tenkarCad and show the components (alert system in the danger place like Radiation and chemical places to Warning employees who are not allowed to enter these places through light warning and buzzer warning based in distance)
i use tankercad componants:
1- I connect the ultrasonic sensor to the arduino uno throught the breadboard (vcc to the+ and GND to the -,trig to pin 10 ,ECHO to pin 9).
2- connect the buzzer to ground and pin 2.
3- 2 led (green and red)
4- 220 ohm resistors
5- after wiaring i star write the code to simulate it .
6- the i star simulation .
7- the video show the simulation.
after i simulate the project in tinkercad i star connect the componats phasicaly and i start wiaring like the siulation.
videos and images shows the commponants and the project in real.
the components :
breadboard.
arduino uno
ultrasonic sensor
buzzer to pin 2.
green led to pin 4.
red led to pin 5.
220 ohm resistor
switch button pin GND ,pin 5V.
wiers
labtop power.
when the object move in front of the ultrasonic sensor and when approaching the distance in the code the start alarm .
i use arduino IDE to upload the code the board then implement the code .
I encountered a problem in the switch button disposable device to be used to open and close the system. I contacted my friend ali nady and he helped me in solving the problem, as he suggested a way to connect the switch.
i wanted to control the ultrasonic sensor through the switch but i searched more and more and i can not found how can i connect the switch with the ultrasonic sensor then i decided to asked my friends in group .and they suggested to me to made the switch countrol all of componant in the circuit .
and i do it.
now i can use arduino uno to Use it to connect some sensors and more components like leds and motors and control it by coding arduino .
using tenkarCAD to simulate the circuits Save time, effort and materials.
really i learnt more about arduino and I searched more about connecting components with each other , and now i can make a kit make more than functions in the same time.