This is a quick arduino project that is great for beginners. Enjoy! There is a video on the last step!
Step 1: What you Need
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
Step 2: Build it!
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.
Step 3: Connect It to the Arduino and Program It!
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);
}
Read more: Arduino Circular Cylon!