gjamgpr06
Published © GPL3+

Bright an LED Using Arduino

How to bright an LED using an Arduino.

BeginnerProtip1,854
Bright an LED Using Arduino

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Red
5 mm LED: Red
×1
Resistor 10k ohm
Resistor 10k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

ARDUINO

Just connect the led short pin to Ground of arduino and long pin to 12th Pin of arduino through 220 ohm resistor

Code

Arduino Blink

C/C++
void setup() {
 
  pinMode(12, OUTPUT);
}


void loop() {
  digitalWrite(12, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(12, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Credits

gjamgpr06
0 projects • 2 followers

Comments