I was thinking about a radar for my cats so when they come close from my important things the buzzer make a sound and I will know
while searching on insturctables
I find this wonderful idea and choose it
software :
tinker cad : for simulation
arduino app : to upload the code
arduino uno
ultrasonic sensor
cable to connect with pc
jumpers to connect the circuit
buzzer
breadboard
voltage source 5 volt
At first i used tinker cad for simulation and I put the components :
arduino uno
ultra sonic sensor
buzzer
breadboard
codding :
I started to write the code on arduino IDE by adding trigger pin as output and echopin input and if the triggerpin is low delay mircroseconds 2 then set high
then the same with echo pin
then i put my condition if the ultrasonic read <=6 then the buzzer will make a sound
the buzzer on led 9
(3,2) <= 6
the buzzer make sound
else the buzzer will be silent
I started to connect the circuit together
then after that I used the usb cable to connect the arduino with the laptop so i could upload the code
after that i test the circuit
catch the thief
i faced this error and i wasn't know what i should do and i asked my friend
the solution was to put the sentence in Long
coding on IDE will help my alot in the final project and learned me how to search to find the suitable solution
the waving hand that we made was the most cute thing