LED Patterns (Different Light Patterns)

128

1

The Idea:

My project is an LED colour pattern. The project contains 6 LEDs that are all powered and communicate with the Arduino. There are 4 different patterns that will cycle through and will be played in a loop. When one pattern ends, another takes it place. The main plan was to create a synchronized pattern using just only LED's, the code was complex since we had to implement four different patterns in the code.

Research:

I got the idea mainly from another Arduino user named Matt Arnold. He made a project similar to this but with a few differences such as only using three LEDs and incorporating resistors. Whereas I only used LEDs and a few wires that connected to the Arduino due to the fact there was no need for resistors. I used his code as my stepping stone, I built upon his code and made it more compatible with me and my project.


Step 1: Step 1: Gathering Materials

To build this project you will need only a few materials as it is not that hard to build.

- Arduino

- Breadboard (Any size)

- 6 LEDs (Preferably two colours only, making the pattern more appealing.)

- Wires (Make sure they're cut lengthy enough)

Note: Wires should be different colours (Power = Yellow, Ground = Blue, etc). This is not mandatory.

Step 2: Step 2: Building!

Step 1: Gather all your materials in one tidy place so that you may work organized.

Step 2: Place all 6 of your LEDs on the breadboard spaced nicely, not too far nor too close.

Step 3: Now focusing on the long legs of the LEDs, you will attach a wire to each LEDs long leg and connecting them to different pin numbers on the Arduino. For example LED 1 = 12, LED 2 = 9, and so on. Choose any pin you want as you can adjust the code later.

Step 4: Now we will have to connect ground from the Arduino to the board, to accomplish this on the power side of the Arduino you will plug a wire in ground and connect it to the far side of the board (the blue wire).

Step 5: Now moving forward, the short legs of our LEDs will all need to be connected to that side where we connected our ground. (the green wires)

Step 6: Get to coding!

Step 3: Step 3: Sketches

The original code was from LED Blink Pattern © GPL3+ created by Matt Arnold. The refined sketch is my built code that used the original code as a starting basis. To make sure the sketch works, make sure that each LED is defined also state their according pins correctly. Both sketches, Matt's and mine are below to download for your future projects.

Share

    Recommendations

    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure

    Discussions

    0
    None
    DIY Hacks and How Tos

    2 months ago

    Great first Instructable. Thanks for sharing with the community.