Arduino Circular Cylon!

by Robot Lover in Circuits > Arduino

12242 Views, 48 Favorites, 0 Comments

Arduino Circular Cylon!

SDC11202.JPG
This is a quick arduino project that is great for beginners. Enjoy! There is a video on the last step!

What You Need

053.JPG
SDC11208.JPG
SDC11207.JPG
SDC11204.JPG

To build this project you will need:

10 LEDs, any color will do.

Some wire, I used a ribbon cable I had

Most importantly, an Arduino

Perhaps some electrical tape

Prototyping board

Build It!

SDC11219.JPG
SDC11198.JPG

Start off by arranging your LEDs on the proto board however you choose, I chose to place them in an oval shape.

After that, solder them to the board. After they are soldered, solder all the cathodes (shorter leads, - or the lead that has the flat side) together. Then, solder a wire to each anode (other lead of the LEDs) to a wire.

Connect It to the Arduino and Program It!

schematic.jpg
SDC11231.JPG
Wire it up like schematic shows!



After you are done wiring it, you can start programming the arduino. I understand that there are many ways of bumming the code but since this example is for beginners, I made it as simple and understandable as possible.

void setup() {
pinMode(1,OUTPUT);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
}
void loop() {
digitalWrite(1,HIGH);
delay(100);
digitalWrite(1,LOW);
digitalWrite(2,HIGH);
delay(100);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
delay(100);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
delay(100);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
delay(100);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
delay(100);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
delay(100);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
delay(100);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
delay(100);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(100);
digitalWrite(10,LOW);
}

You Are Done!

SDC11234.JPG
power up your duino' and watch the lights!





MUST READ! :

The first person to make this project and post some images of it in the comments below will receive 1(one) patch acknowledging your accomplishment! Start Building! OFFER VOID PAST January 15, 2012