Blink Assignment1

Submitted by kmpark on Wed, 01/30/2013 - 15:40

 

I am so excited to work with arduino for the first time. I changed around the blink interval and duration. I had no idea about how the breadboard works at first, so I just imitated the picture shown as a sample. As I connect the cables, I learned how it works on hands with a lot of fun.
 

Components Used

 

1- Arduino Uno

1- 220 Ω Resistor

1- Breadboard

1- Green LED

1- USB power cable

Code

 
I just changed the time intervals on the sample code.
 
 
int led = 13;
 
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}
 
// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(2000);               // wait for a second
}
photo-5.JPG
0
Your rating: None
Drupal theme by Kiwi Themes.