After attempting and failing to make an LED bar graph distance visualizer, I decided to make easier projects. After looking around the Arduino Project Hub for inspiration, I got an idea to make this.
Step 1:Gather all materials. If needed, solder jumper wires to the speaker.
Attach the 3 LEDs to the breadboard. They should be close to each other.
Use jumper wires to wire the anode (positive segment/longer segment) to the Arduino pins as follows:
- RED: pin 9
- BLUE: pin 10
- WHITE: pin 11
Connect the cathode (negative segment/smaller segment) to 3 220 Ohm resistors. Connect those to the negative lane of the breadboard. Wire the negative lane of the breadboard to the GND pin of the Arduino.
Connect the speaker to the Arduino and breadboard: The negative wire goes to the negative lane on the breadboard, and the positive wire goes to pin 3 on the Arduino.
Comments