Barrier Gate
Inspiration
The sensor that makes the column open as soon as a car approaches was amazing to me. How would it open as soon as we approached and then close again.There must be a demon 👺in it.
Software
Component
piezo
ultrasonic sensor
servo motor
arduino uno
jumper wires
preadboard
I have collected all the components.
2. I connected the ultrasonic sensor.
3. I connected the buzzer after the sensor.
4. I connected the servo motor. after that
5. The last thing I did was make the codes using the code block method on the Tanker Cad
I have collected all the components.
2. I connected the arduino.
3. I connected the ultrasonic sensor.
4. I connected the buzzer after the sensor.
5. I connected the servo motor. after that
6. I downloaded the code on arduino
This has been a question I've had for a while so I was interested to find out the truth.
The problem
is that I was working on a completely different circuit, but it was based on something, and in the end I found that it was incomplete
The ultrasonic had a problem, as I was inverting the trigger and echo terminals when connecting to the Arduino .I found out because the circuit didn't work well.
the solution
I changed the whole idea.
I adjusted the connections and checked the rest of the connections to make sure there were no other errors.
it helps me to know how to use 1. arduino
2. ultrasonic sensor
3. buzzer
It was the first time I used Arduino and understood the reason for each connection, so this added a lot to me.