loading

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.

About This Instructable

796views

14favorites

License:

More by Shivain Vij:How to Program an Arduino Uno to Blink How to Create Your Own Chrome App 
Add instructable to: