kiranpaul
Published © GPL3+

Smart LED: Blink LED Using Arduino UNO

Take the first step to Arduino basics here. Because every master was once a beginner.

BeginnerFull instructions provided15,108
Smart LED: Blink LED Using Arduino UNO

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LED (generic)
LED (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Resistor 221 ohm
Resistor 221 ohm
You can use 100 ohm or above according to need of brightness. A large resistor will not provide any light.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit diagram

Code

LED blink

Arduino
This program is available in the basic examples.
You can use any of the digital I/O pin for analyzing the output.
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(8, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(8, HIGH);   // turn the LED connected to 8th pin ON (HIGH is the voltage level)
  delay(1000);            // wait for a second( Values are given in milli seconds)
  digitalWrite(8, LOW);    // turn the LED connected to 8th pin OFF by making the voltage LOW
  delay(1000);            // wait for a second
}

Credits

kiranpaul

kiranpaul

2 projects • 2 followers

Comments