Introduction: Blinking LED Row

This is an arduino controlled project and uses leds, jumper wires, and a breadboard.  This is one of my first attempts on programming arduino and I am pleased with the outcome.  I'm ten years old and I just started programming 2 weeks ago.

This is simple wiring, and all you do is connect each negative terminal to itself and then to the arduino and each positive terminal to a positive pin on the arduino.  Remember to connect them in order, ie. the first LED to pin #1 on the arduino and the second LED to pin #2.

This is the arduino code that I wrote.

#define LED01 13 // says led is at # 13
#define LED02 12
#define LED03 11
#define LED04 10
#define LED05 9
#define LED06 8
#define LED07 7
#define LED08 6
#define LED09 5
#define LED10 4
#define LED11 3

void setup()
{
pinMode(LED01, OUTPUT); // digital pin is output
pinMode(LED02, OUTPUT); // digital pin is output
pinMode(LED03, OUTPUT); // digital pin is output
pinMode(LED04, OUTPUT); // digital pin is output
pinMode(LED05, OUTPUT); // digital pin is output
pinMode(LED06, OUTPUT); // digital pin is output
pinMode(LED07, OUTPUT); // digital pin is output
pinMode(LED08, OUTPUT); // digital pin is output
pinMode(LED09, OUTPUT); // digital pin is output
pinMode(LED10, OUTPUT); // digital pin is output
pinMode(LED11, OUTPUT); // digital pin is output

}

void loop()
{
digitalWrite(LED01, HIGH); // turns LED on
delay(30);
digitalWrite(LED02, HIGH); // turns LED on
delay(30);
digitalWrite(LED01, LOW); // turns LED off
delay(30);
digitalWrite(LED03, HIGH); // turns LED on
delay(30);
digitalWrite(LED02, LOW);
delay(30);
digitalWrite(LED04, HIGH); // turns LED on
delay(30);
digitalWrite(LED03, LOW);
delay(30);
digitalWrite(LED05, HIGH); // turns LED on
delay(30);
digitalWrite(LED04, LOW);
delay(30);
digitalWrite(LED06, HIGH); // turns LED on
delay(30);
digitalWrite(LED05, LOW);
delay(30);
digitalWrite(LED06, LOW);
delay(30);
digitalWrite(LED08, HIGH); // turns LED on
delay(30);
digitalWrite(LED07, LOW);
delay(30);
digitalWrite(LED09, HIGH); // turns LED on
delay(30);
digitalWrite(LED08, LOW);
delay(30);
digitalWrite(LED10, HIGH); // turns LED on
delay(30);
digitalWrite(LED09, LOW);
delay(30);
digitalWrite(LED11, HIGH); // turns LED on
delay(30);
digitalWrite(LED10, LOW);
delay(30);
digitalWrite(LED11, LOW);
delay(30);
digitalWrite(LED11, HIGH);
delay(30);
digitalWrite(LED10, HIGH);
delay(30);
digitalWrite(LED11, LOW);
delay(30);
digitalWrite(LED09, HIGH);
delay(30);
digitalWrite(LED10, LOW);
delay(30);
digitalWrite(LED08, HIGH);
delay(30);
digitalWrite(LED09, LOW);
delay(30);
digitalWrite(LED07, HIGH);
delay(30);
digitalWrite(LED08, LOW);
delay(30);
digitalWrite(LED06, HIGH);
delay(30);
digitalWrite(LED07, LOW);
delay(30);
digitalWrite(LED05, HIGH);
delay(30);
digitalWrite(LED06, LOW);
delay(30);
digitalWrite(LED04, HIGH);
delay(30);
digitalWrite(LED05, LOW);
delay(30);
digitalWrite(LED03, HIGH);
delay(30);
digitalWrite(LED04, LOW);
delay(30);
digitalWrite(LED02, HIGH);
delay(30);
digitalWrite(LED03, LOW);
delay(30);
digitalWrite(LED01, HIGH);
delay(30);
digitalWrite(LED02, LOW);
delay(30);
digitalWrite(LED01, HIGH);
}

Comments

author
iwoodinspire (author)2011-08-23

I'm new to the programming world too and getting my butt kicked. Good job kiddo

author
wilgubeast (author)2011-06-14

Ten years old? Aw man, that is super awesome. By fifteen you'll be programming Roombas to do your homework while you work on the new space shuttle.

author
Qtechknow (author)wilgubeast2011-06-14

Thanks!

author
billbillt (author)2013-06-26

great

author
ebenboy056 (author)2012-01-09

wow nice programming, i dont know programming, i will like to know how you started.

author
Qtechknow (author)ebenboy0562012-06-07

I learned all of the programming by the book called "Getting Started with Arduino" by Massimo Banzi, then got a few more books about Arduino from O'reilly later. Also, grab an ArduSensor Fun Pack at my website www.qtechknow.com, which is also my new Instructable. They are great to get started with Arduino.

author
ElectroPro9460 (author)2012-06-06

what type of arduino board ur using?

author
Qtechknow (author)ElectroPro94602012-06-07

In this Instructable, I'm using an Arduino UNO, but if you want to get started with Arduino now, the new Arduino Leonardo is the greatest.

author
MandingaRes (author)2011-08-23

Te agradezco el código y el interés por la respuesta. Finalmente logré configurarlo por mi propia cuenta. Es que yo comencé desde cero con Arduino y sin mucha información a pesar de haber bajado de internet casi todos los manuales disponibles. Es que yo acostumbro a iniciar con lo básico y luego continúo a prueba y error, lo cual lleva mucho más tiempo. Pero de esa manera aprendo más y mejor. Muchas Gracias nuevamente y adelante con tus proyectos!!

author
MandingaRes (author)2011-07-01

Je je... tengo 55 años y hace 6 meses estoy tratando de lograr la programación de un arduino para que encienda alternativamente un solo led y tu con 10 años lograste todo eso de solo 2 semanas?? Realmente es admirable!!
Mis más sinceras felicitaciones!
Por favor, nunca dejes de trabajar en lo que te guste y si algo o alguien se interpone en tu camino, simplemente ignoralo y sigue adelante!! Es evidente que tienes mucho potencial.
Estaré atento a tu próximo instructable...
(por favor, traduce este texto porque mi inglés es muy malo...)

author
iwoodinspire (author)MandingaRes2011-08-23

Translation:

"I'm 55 and for 6 months I've been trying to program an arduino to make one single LED blink and you only 10 years old have done it in just two weeks? Really it is admirable!
My most sincere congratulations!
Please, don't ever quit working on what you like and if someone or something gets in the way, simply ignore it and keep going! It is evident that you have much potential. I will be watching for your next instructable...
(please translate this because my english is terrible...)"

End translation.

author
Qtechknow (author)2011-07-01

MandingaRes, here is the code for a blinking LED. at pin 13
#define LED 13 // says led is at # 13

void setup()
{
pinMode(LED, OUTPUT); // digital pin is output

}

void loop()
{
digitalWrite(LED, HIGH); // turns LED on
delay(100); // wait one second
digitalWrite(LED, LOW); //LED off
delay(100);
}

author
Exiumind (author)Qtechknow2011-07-20

some minor correction: delay is in MS, 1 second equals to 1000MS not 100.

About This Instructable

13,114views

18favorites

License:

Bio: White House Maker Faire // 16 years old // CEO of Qtechknow, maker and electronics enthusiast, I teach Arduino classes, and put making into schools! My successful ... More »
More by Qtechknow:NFC Door Lock with the Qduino Mini (under $100)Qtechknow Robot Obstacle CourseYour Image on an Arduino! - TFT LCD Screen Guide
Add instructable to: