I used tinkercad to simulate the circuit
I used
bread board
dc motor
5v adaptor
Ultrasonic sensor
arduino
h bridge L -298N
SWITCH
2 led lamps
crocodile wires
arduino ide soft ware
I started by simulating the circuit on tinker cad that at first I connected the5V bin and the ground of the arduino with the bread board
then connected the vcc and the ground of the ultra sonic sensor to the ground and the 5v of the arduino and connected the trigger with pin 10 and the echo with pin 11
also connected the dc motor and the power supply with l293d and connected the enable with bin 9 and connected the inputs with 3/5 pins and also connected it with the ground and the 5v of the arduino
also connected the switch with the ground and 5v and bin 2 of the arduino
also connected red and blue ledwith the ground and bins 13 /12 of the arduino
I programmed the circit that when I move the switch the circuit will work and the dc motor will work in one direction and the blue lamb will wor when I put my hand neer to the ultrasonic sensor
the motor will change its direction and the blue lamb turns of then the red lamb will work
at first i asked the instructors if the idea of the assignment meets the requirements also i asked if it was possible to be made
also I faced a problem that the arduino didn't accept the code that when I press upload the code is not installed to the board and it gives me error massage so I asked the instructors and my peers on slack they tried with me a lot and gave me advices after following their advices and searching a lot f finally it worked after I installed drivers from boards manager on arduino ide i could uploadthe code on the arduino
also i couldn't use the ultra sonic in a right way but during this activity with my teammates i figured out how to connect the sensor in aright way and how it works
In the simulation of the circuit in tinker cad the motor wasn't working In right way it was lagging and doesn't work in one direction but when i rearranged the blocks and put the blocks of the motor firs it worked will
now i can imagin how exactly the final project will be what components I will use and also how I will program it
i realy loved dealing with arduino and how easy I can do simple projectwith it
also these cool waving hands that I made with my teammates
control one RGB LED so that it lights up with the following colors in order: Red, Blue, Green, Purple, Orange, and White