InfraRED With 4 LED and a Buzzer

by malik_ahmed_mounir in Circuits > Arduino

356 Views, 2 Favorites, 0 Comments

InfraRED With 4 LED and a Buzzer

image.jpeg

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

  1. Arduino UNO
  2. Buzzer
  3. 4 Leds
  4. 4 220 OM resistors
  5. IR Sensor module HW-201
  6. Wires
  7. Breadboard

Putting Stuff on Breadboard

image.jpeg

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,

  1. The output
  2. The GND
  3. The VCC


Wiring

FNUMNPTL6C6YCCD.jpg
  1. Wire the Leds to 2,3,5,8
  2. WIre the IR to 7, 5V and the Negative column of the Breadboard
  3. Wire the Buzzer to 11
  4. Put the resistors to the Negative Leg of the Led then put it to the Negative column of the Breadboard
  5. Wire a wire with the Negative column of the Buzzer with the Negative column of the Breadboard

Coding

Screenshot 2022-05-28 at 8.40.52 pm.png

Copy this Code

Downloads

Amazing Things

An amazing thing is that at a distance 3Leds Open and the buzzer opens too.