Arduino Blink
![Photo on 4-14-14 at 3.25 PM.jpg](/proxy/?url=https://content.instructables.com/FFG/E8H7/HTZY43OZ/FFGE8H7HTZY43OZ.jpg&filename=Photo on 4-14-14 at 3.25 PM.jpg)
This is a very simple starter program for Arduino beginners. It is commonly called blink. It does what the title says it does: it makes a LED (any color) blink!
Materials you will need:
Arduino (I have the Uno, and am using it)
Connection cord (From Arduino to computer)
LED (Mine is red)
Materials you will need:
Arduino (I have the Uno, and am using it)
Connection cord (From Arduino to computer)
LED (Mine is red)
![Photo on 4-14-14 at 3.23 PM.jpg](/proxy/?url=https://content.instructables.com/F9F/M0KT/HU058R6U/F9FM0KTHU058R6U.jpg&filename=Photo on 4-14-14 at 3.23 PM.jpg)
Connect connecting cord to port on Arduino, then to computers USB port.
Code
Here is the code For the program. Put it into your Arduino program.
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
![Photo on 4-14-14 at 3.26 PM.jpg](/proxy/?url=https://content.instructables.com/F9R/3A68/HTZY43O0/F9R3A68HTZY43O0.jpg&filename=Photo on 4-14-14 at 3.26 PM.jpg)
Plug the LED into the 13 pin on the digital side, and the other leg into ground. If everything goes right, the LED will blink on and off!
Note: Some Arduino models have a built in LED on the board.
Note: Some Arduino models have a built in LED on the board.