Project tutorial
Sequential LED Lighting

Sequential LED Lighting © CC BY-NC

A sequential LED lights that come and go.

  • 1,627 views
  • 0 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Initially all I wanted to do a countdown circuit (very easy) but during tests I decided to improve the project with an automatic come and go light (not very easy).

Code

Sequential LEDSArduino
just open on your IDE Arduino
/* SEQUENTIAL LEDS
 * by Jomar B Amaral
 * jomar.amaral@gmail.com for more information
 * with small modifications on this code many different sequences are possible
 */

int ledPin[] = {38, 40, 42, 44, 46, 48, 50, 52}; //pins used, you can modify to you arduino board
int i = 38; //you can modify to you arduino board, i is the first pin your led is connected
int x = 52; //you can modify to you arduino board, x is the last pin your led is connected

void setup()
{
  for (int j=0; j<9; j++)
  {
   pinMode(ledPin[j], OUTPUT); // configura pino digital como sada
  }
}

void loop()
{
   for (i; i <= 52; i++)
    {
   digitalWrite(i,HIGH);
   delay(100);  // optional delay, in this case leds turn on one by one by 100 ms
    }
  {
    for (x; x >= 38; x--)
    {
    digitalWrite(x,LOW);
    delay(100);  //leds turn off one by one by 100 ms
    }
     {
      x=52; //optional
      i=38; //optional
      }
   }
}

Schematics

Protoboard schematic
In this image we have how to link the wires, resistors, LEDS to the arduino board.
sequenciador_de_leds_A3Mo5cVswY.fzz
Esquema
Sequenciador de leds bb r9811dvqq4

Comments

Similar projects you might like

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 17,348 views
  • 4 comments
  • 34 respects

LED Color Sequencer

Project tutorial by Team thefantasticode.Group

  • 6,237 views
  • 10 comments
  • 22 respects

LED Cube

Project tutorial by Praditha Alwis

  • 5,039 views
  • 0 comments
  • 12 respects

Programming 8x8 LED Matrix

by SAnwandter1

  • 113,910 views
  • 26 comments
  • 105 respects

Music Adaptive RGB LED with Arduino and Processing

Project in progress by ounane mohamed elfarouk

  • 2,953 views
  • 8 comments
  • 24 respects

Automatic LED Stairs Lighting Arduino Shield

Project tutorial by Aivaredze

  • 5,634 views
  • 3 comments
  • 17 respects
Add projectSign up / Login