InfraRED With 4 LED and a Buzzer
by malik_ahmed_mounir in Circuits > Arduino
367 Views, 2 Favorites, 0 Comments
InfraRED With 4 LED and a Buzzer
Hi! This is my first project on Instructables, I hope it's good.
I did this project because I wanted to use a better type of the Ultrasonic Sensor.
The Sound waves travel forward then bounce off the object and goes to the sound detector and it will do the thing depending on the time.
Supplies
- Arduino UNO
- Buzzer
- 4 Leds
- 4 220 OM resistors
- IR Sensor module HW-201
- Wires
- Breadboard
Putting Stuff on Breadboard
Put the 4 Leds on the breadboard and put the buzzer too
What About the IR?
Use Female-to-Female wires to Link the IR with the Arduino UNO.Now, The IR has 3 pins,
- The output
- The GND
- The VCC
Wiring
- Wire the Leds to 2,3,5,8
- WIre the IR to 7, 5V and the Negative column of the Breadboard
- Wire the Buzzer to 11
- Put the resistors to the Negative Leg of the Led then put it to the Negative column of the Breadboard
- Wire a wire with the Negative column of the Buzzer with the Negative column of the Breadboard
Coding
Copy this Code
Downloads
Amazing Things
An amazing thing is that at a distance 3Leds Open and the buzzer opens too.