Hackster is hosting Hackster Holidays, Finale: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Tuesday!Stream Hackster Holidays, Finale on Tuesday!
MisterBotBreak
Published

How to Debute Arduino with a LED

In this project, I will show you how to use LED with Arduino in a simple experience.

BeginnerProtip1 hour935
How to Debute Arduino with a LED

Things used in this project

Hardware components

5 mm LED: Red
5 mm LED: Red
×1
Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Mounting of the DEL and the Arduino card

The blue trait is the wire jump.

Code

Blink.ino

Arduino
This code do DEL's blinking.
  

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   
  delay(1000);                       
  digitalWrite(13, LOW);   
  delay(1000);                      
}

Blink.ino

Arduino
This code light the DEL continuously.
  

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   
               
}

Credits

MisterBotBreak
48 projects • 152 followers
I love electronics and cats :D !

Comments