Arduino LED and Button Practice

Creativity and Computation Lab

Aruduino Uno

Practice LED and buttons on an Arduino

In my first week, I understood the working of an Arduino and how it interacts with the components on the breadboard. The following were the stages of my work:

  1. I thought of the application I wanted to achieve
  2. I created a circuit diagram which showed the application in practice
  3. I connected the components on a breadboard and whole connected to the Arduino
  4. I wrote the relevant code on the Arduino
  5. I uploaded the code to the circuit to run the application

Here are the applications I worked with:

  1. Case 1: Parallel Connection of LEDs and a button to turn them on and off
  2. Case 2: Series connection of the LEDs and a button to turn them on and off
  3. Case 3: Parallel connection of 3 LEDs and make them glow alternatively like a traffic signal
  4. Case 4: Parallel connection of 2 LEDs and make them glow alternatively with a button trigger

 

Case 1:

Case 2:

Case 3:

Video of the work:

Arduino Traffic Signal

Code for Case 3:

LED Traffic Light without buttons

Case 4:

Code for Case 4:

LED Lighting Alternate with buttons

Leave a reply

Skip to toolbar