Notifications

Day 7: The Lost Beacon

Objective:


  1. Understand the basics of using buttons to control LEDs.
  2. Learn how to connect multiple LEDs, buttons, and a photoresistor to the HERO R3 and breadboard.
  3. Write and upload code to control LEDs using buttons and adjust brightness with a photoresistor using the Arduino IDE.
  4. Develop further skills in coding and electronics.
  5. 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: