Coder Social home page Coder Social logo

kareem-ghazi / arduino-led-control-with-switches Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mazewail/arduino-led-control-with-switches

0.0 0.0 0.0 258 KB

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.

C++ 100.00%

arduino-led-control-with-switches's Introduction

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 arduino-led-control-with-switches.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.

Tinkercad

  • You can view a live simulaton of the project through the following link on Tinkercad

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.

arduino-led-control-with-switches's People

Contributors

kareem-ghazi avatar mazewail avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.