3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino LED 3,2,1 Countdown Timer

video Arduino LED 3,2,1 Countdown Timer
Even though I have been using an arduino for a year and a half or so, I never made an effort to learn the language until now. This is my first project with an arduino that I built and coded all by myself. If anyone is interested, here is the code:

void setup() {
pinMode(2,OUTPUT); //red LED
pinMode(3,OUTPUT); // yellow LED
pinMode(1,OUTPUT); // green LED
pinMode(4,OUTPUT); // "go" sign
}
void loop(){
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
delay(1000);
digitalWrite(3,LOW);
digitalWrite(1,HIGH);
delay(1000);
digitalWrite(1,LOW);
delay(500);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
delay(500) ;
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
delay(500);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
delay(500);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
delay(500);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
delay(500);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
}
3 comments
Feb 2, 2012. 10:35 AMcoolbeansbaby68 says:
Awesome Job !
Jun 8, 2011. 2:46 PMReffner says:
Pretty cool. It's like a small version of the lights they use at drag races. The arduino got allot more fun once I started programming it myself. Good job.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
42
Followers
6
Author:Robot Lover(My project blog)
I love making things. I always found electronics and stuff like that fun. When I was little I always took apart my toys and put them back together. I thank God for giving me my gift of my creativity a...
more »