Notifications
Day 7: The Lost Beacon
Objective:
- Understand the basics of using buttons to control LEDs.
- Learn how to connect multiple LEDs, buttons, and a photoresistor to the HERO R3 and breadboard.
- Write and upload code to control LEDs using buttons and adjust brightness with a photoresistor using the Arduino IDE.
- Develop further skills in coding and electronics.
- Learn how to calculate resistor values using Ohm’s Law.
Components Needed:
- HERO board
- Breadboard
- 3 LEDs (different colors)
- 3 Buttons
- 1 Photoresistor
- 3x 220 ohm resistors
- 4x 10k ohm resistors
- Jumper wires (Male to Male)
Wiring Diagram:
Code: