001a_Arduino_Blink

Project Overview:

- Create a program to make an LED blink.

Code:

int led = 13;

 

void setup() {

  pinMode(led, OUTPUT);

}

 

void loop() {

  digitalWrite(led, HIGH);

  delay(250);               

  digitalWrite(led, LOW);    

  delay(250);               

}


Schematic:

Layout:

What I learned / Problems

In this lesson I learned several things:

  • I learned how to wire the Arduino to make an LED blink
  • I also learned how to use basic functions such as "digitalWrite"
  • Another thing I learned is to use milliseconds to make the LED blink on and off

Problems encountered:

  • I had installed the LED on the breadboard backwards