How to Program an Arduino Uno to Blink

Intro: How to Program an Arduino Uno to Blink

In this instructable, I will be teaching you how to program and Arduino Uno to blink. This project is not very advanced and is great for beginners.

Step 1: Components

-Arduino Uno

-LED Lights (optional)

-Resistors (doesn't have to be the same as shown in the picture)

-Breadboard (optional)

-Bullet connectors (optional)

Step 2: Put It Together

Connect the led to the GND point and the 13 point. (use the resistor to connect point 13 to the led!)

The picture was courtesy of Arduino.

Step 3: Program It!

Type the following program into the Arduino program:

int led = 13;

void setup() {

pinMode(led,OUTPUT)'

Serial.begin(115200);

}

void loop() {

Serial.printIn("Setting LED to HIGH");

digitalWrite(led, HIGH);

delay (500);

Serial.printIn("Setting LED to LOW");

digitalWrite(led, LOW);

delay(500);

}

Step 4: Upload It!

Now upload it and see if it works. If the program doesn't work, or the board doesn't accept the program, go back and make sure you typed in the code correctly.

Share

    Recommendations

    • Metalworking Contest

      Metalworking Contest
    • Furniture Contest 2018

      Furniture Contest 2018
    • Fix It! Contest

      Fix It! Contest

    Discussions