My Idea for this week is a Parking Sensor system , that sends a sound once the vehicle is near to something , and the sound gets louder when getting much nearer .
As a software :
I used Arduino IDE to program the Arduino .
I Used Tinker Cad .
As Hardware I Used :
Arduino
UltraSonic
Buzzer
I have designed the circuit on tinker cad as following .
programmed using the blocks so that when the distance is more than 30 cm the buzzer not working and starts to work if the distance is more than that .
Then wired every thing up .
Programmed the arduino so when the distance is less than 30 Cm the buzzer starts to work
for the buzzer connected the positive pin to pin 11 and other pin to GND
For the ultrasonic connceted the echo and trig pin to 6 , 7 Pins , and other two pins to the VCC and GND .
Programmed the Arduino with the code from tinker cad .
It is a simple functionality when we gets near to the ultrasonic the buzzer is activated .
if the ultarasonic is not detecting any object the ultrasonic will stop .
The connections is shown in the video attached .
Mena helped me in getting the idea of the project , Me and Mena were discussing the various option which includes one sensor and one output , I was willing to use the ultrasonic , so she propsed to use a buzzer and this is a parking sensor system .
when I made a direct mapping between the ultrasonic distance to the buzzer analog value , the mapping was giving values bigger than 0 like 2 , 3 , so the buzzer has some sound .
Using Tinker cad in simulation is very helpful for me in the final project .
Using tinker cad programming blocks .