How to use ultrasonic sensor to triger buzzer alarm and hardwares with Ardiuno uno and c/c++ programming language.
COMPONENTS AND SUPPLIES Arduino UNO × 1 USB-A to Mini-USB Cable × 1 Breadboard (generic) × 1 Buzzer × 1 Relay X 1 led x 2 Ultrasonic sensor x 1 ABOUT THIS PROJECT This is tutorial to help you understand ultrasonic and buzzer and go deeper into learning Arduino, follow these steps and give me feedback please. Step 1: Prepare your material and tools T 1 2 3 4 5 1. Test Board 2. Ultrasonic sensor 3. Arduino cable 4. +5V buzzer 5. Male to male pins 6. Arduino uno board 7. 2 led(red & green) 8.Relay(5v dc to 220v ac) Tools and materials are shown in the pictures. Step 2: Connect your circuit 1 2 Connect the Buzzer positive terminal to the Arduino pin 2 and the negative terminal to the Gnd. Connect the VCC pin of ultrasonic to +5v pin and the Gnd to the ground. Connect trig pin to pin 10 and echo pin to pin 9. connect red led to the pin 3 on the ardiuno connect green led to the pin 4 on the ardiuno with 330kohms resistor connect the relay to the pin 5 on the ardiuno with 330kohms re...