Skip to content

This project demonstrates how to control six LEDs using two three-terminal switches on an Arduino Uno. The code and circuit diagram are provided in this repository.

Notifications You must be signed in to change notification settings

MeshAllam/Arduino-LED-Control-with-Switches

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Arduino LED Control with Switches

This project demonstrates how to control six LEDs using two three-terminal switches on an Arduino Uno. The code and circuit diagram are provided in this repository.

Hardware Requirements

To follow along with this project, you will need the following hardware:

  • Arduino Uno board
  • Six LEDs
  • Two three-terminal switches
  • Breadboard
  • Jumper wires
  • Resistor (220 Ohm)

Installation

  1. Clone this repository to your local machine using Git or download the ZIP file.
  2. Connect the components as shown in the circuit diagram.
  3. Open the led_control.ino file in the Arduino IDE.
  4. Upload the sketch to the Arduino board.

Usage

  1. Connect the power supply to the Arduino board.
  2. Flip the first switch to turn on the first three LEDs and the second switch to turn on the remaining three LEDs.
  3. Flip the switches again to turn off the LEDs.

Circuit Diagram

The circuit diagram for this project is provided in the circuit_diagram.png file in this repository.

you can also go to the following video to view the sequence of the project.

Contributing

If you find an issue with the code or have an improvement to suggest, feel free to open an issue or pull request.

License

This project is licensed under the MIT License ↗. Feel free to use the code in this repository for your own projects.

About

This project demonstrates how to control six LEDs using two three-terminal switches on an Arduino Uno. The code and circuit diagram are provided in this repository.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%