Introduction: Advanced LED Pattern's on LinkitONE

This project is about creating simple patterns on LEDs. We will be using 5 LEDs and making a simple patterns, lights up, the 2nd then another.

Step 1: Materials Required

We’ll use 5 LEDs, 1 Breadboard and a LinkitONE

Step 2: Connecting LEDs to the Breadboard

We’ll connect all the LEDs to the breadboard as shown in the images carefully. Use multiple colours to make it more attractive.

Step 3: Programming

Program your board with the code below.

We are making different LED’s light on and off at one time
and generating a simple pattern. This same is used in animated Christmas
lights.

==--==--==--

Void setup()

{

for(i=1;i<=5;i++)

{

pinMode(i, OUTPUT);

}

Void loop()

{

for(i=1;i<=5;i++)

{

digitalWrite(i, HIGH);

delay(750);

digitalWrite(i, LOW);

}

}

Step 4: Attach a Battery Pack

Attach a battery pack so that we can use the project when the USB connection is not available.

Step 5: Lighting Up LEDs

Light up all the LEDs now!
Now we’ll power up the circuit. Watch it and have fun!

Comments

About This Instructable

224views

1favorite

License:

More by ayushagg:Servo Motor with LinkitONELinkitONE MP3 PlayerLinkitONE LED Pattern Generation
Add instructable to: