Audi LED Dynamic Blinker Arduino

2,486

4

2

Introduction: Audi LED Dynamic Blinker Arduino

This is a small and simple circuit with Arduino board, 120 ohm resistors and blue LEDs 5mm.

It's a project that I wrote before.

Stuff list:

1x Arduino Uno Board

12x Blue Leds 5mm

12x 120 Ohm Resistors

Connection cable

Step 1:

Upload Arduino Code:

void setup()
{

pinMode(2, OUTPUT); //Led 1

pinMode(3, OUTPUT); //Led 2

pinMode(4, OUTPUT); //Led 3

pinMode(5, OUTPUT);

pinMode(6, OUTPUT);

pinMode(7, OUTPUT);

pinMode(8, OUTPUT);

pinMode(9, OUTPUT);

pinMode(10, OUTPUT);

pinMode(11, OUTPUT);

pinMode(12, OUTPUT);

pinMode(13, OUTPUT);

}

void loop()

{

digitalWrite(2, HIGH); //Led Pin 2 ON

delay(30);

digitalWrite(3, HIGH);

delay(30);

digitalWrite(4, HIGH);

delay(30);

digitalWrite(5, HIGH);

delay(30);

digitalWrite(6, HIGH);

delay(30);

digitalWrite(7, HIGH);

delay(30);

digitalWrite(8, HIGH);

delay(30);

digitalWrith(9, HIGH);

delay(30);

digitalWrite(10, HIGH);

delay(30);

digitalWrite(11, HIGH);

delay(30);

digitalWrite(12, HIGH);

delay(30);

digitalWrite(13, HIGH);

delay(30);

// PIN 2 to 13 OFF

digitalWrite(2, LOW);

digitalWrite(3, LOW);

digitalWrite(4, LOW);

digitalWrite(5, LOW);

digitalWrite(6, LOW);

digitalWrite(7, LOW);

digitalWrite(8, LOW);

digitalWrite(9, LOW);

digitalWrith(10, LOW);

digitalWrite(11, LOW);

digitalWrite(12, LOW);

digitalWrite(13, LOW);

// PIN 2

digitalWrite(2, LOW);

delay(500);

}

Step 2:

Connect the LEDs and resistors with Arduino.

The Led Pin are from pin 2 to pin 13 on Arduino Uno
Resistor to Led GND

LED + to 5V at Arduino

If everything is right then the LEDs from 1 to 12 will light up like the dynamic lights on Audi Car.
The speed of the Led can be set in delay (500); to change.

Have fun

LED Contest 2017

Participated in the
LED Contest 2017

Be the First to Share

    Recommendations

    • Science Fair Challenge

      Science Fair Challenge
    • Woodworking Contest

      Woodworking Contest
    • Electronics Contest

      Electronics Contest

    2 Comments

    0
    m1nh4tv
    m1nh4tv

    4 years ago

    You have the video to see the effect ? :)

    0
    Swansong
    Swansong

    4 years ago

    That looks neat, thanks for sharing :)