Here’s an Arduino program that uses an ultrasonic sensor (HC-SR04) and a buzzer. When the ultrasonic sensor detects an object within a certain distance, the buzzer will sound to indicate "Object Detected."
Components:
- HC-SR04 Ultrasonic Sensor
- Buzzer
- Arduino Uno
- Jumper wires
Circuit:
- HC-SR04 Ultrasonic Sensor:
- VCC to 5V
- GND to GND
- Trig to Pin 9
- Echo to Pin 10
- Buzzer:
- Positive pin to Pin 3
- Negative pin to GND
Video Link: - Click Here For Video
How To Make Object Detection System using Ultrasonic sensor simple Circuit: -
Arduino IDE Program
-----------------------------------------------------------------------------------------------------------------------------
Explanation:
- The ultrasonic sensor measures the distance to an object.
- If the object is within 20 cm (or any set threshold), the buzzer will sound.
- You can adjust the
DISTANCE_THRESHOLD
to change the detection range.
Circuit Simulation:
You can use Tinkercad to simulate this project by adding the ultrasonic sensor, buzzer, and Arduino. Run the simulation to check how it works! Let me know if you need more details or help setting up.
Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #pro #IDM #Solutions #Hack
0 Comments