hIOTron
Published

Arduino Board - Blink an LED

This project shows the simplest thing you can do with an Arduino to see physical output: blink the onboard LED.

IntermediateProtip876
Arduino Board - Blink an LED

Things used in this project

Hardware components

Arduino Uno Board
×1
Breadboard – half size
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB Cable
×1
5 mm LED: Red
5 mm LED: Red
×1
Resistor 220 ohm
Resistor 220 ohm
×1

Story

Read more

Schematics

Arduino Board-Blink an LED

Code

Blink an LED using Arduino

Arduino
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
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(1000);               // wait for a second
}

Credits

hIOTron
78 projects • 2 followers
hIOTron is an internet of things based company that offers an IoT Platform, products, IoT Solutions, and IoT Training.

Comments