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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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!

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions