Premium Only Content

How do you make an LED light blink with Arduino?
LEDs are small, powerful lights that are used in many different applications. To start, we will work on blinking an LED, the Hello World of microcontrollers. It is as simple as turning a light on and off. Establishing this important baseline will give you a solid foundation as we work towards experiments that are more complex.
Components Required
You will need the following components −
1 × Breadboard
1 × Arduino Uno R3
1 × LED
1 × 330Ω Resistor
2 × Jumper
Sketch
Open the Arduino IDE software on your computer. Coding in the Arduino language will control your circuit. Open the new sketch File by clicking New.
Code to Note
pinMode(2, OUTPUT) − Before you can use one of Arduino’s pins, you need to tell Arduino Uno R3 whether it is an INPUT or OUTPUT. We use a built-in “function” called pinMode() to do this.
digitalWrite(2, HIGH) − When you are using a pin as an OUTPUT, you can command it to be HIGH (output 5 volts), or LOW (output 0 volts).
mmmmmmResult
You should see your LED turn on and off. If the required output is not seen, make sure you have assembled the circuit correctly, and verified and uploaded the code to your board.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------mFHTAMM
-
LIVE
JULIE GREEN MINISTRIES
1 hour agoLIVE WITH JULIE
21,135 watching -
LIVE
Game On!
15 hours agoThe BIGGEST Plays From NFL Week 1!
1,522 watching -
13:27
Clownfish TV
14 hours agoSydney Sweeney Backlash BACKFIRES! American Eagle Stock UP 38%! | Clownfish TV
20K5 -
18:55
AndresRestart
14 hours ago $0.12 earnedSomething Key We Keep Missing About Metroid Prime 4 Beyond...
1.47K1 -
8:06
China Uncensored
14 hours agoThis Could Be China’s LAST CHANCE To Save Its Economy
6.4K15 -
LIVE
The Bubba Army
2 days agoDocumentary Premiere, A HUGE SUCCESS! - Bubba the Love Sponge® Show | 9/08/25
1,769 watching -
32:15
DeVory Darkins
9 hours ago $5.01 earnedDemocrats PAINFULLY WRECKED by Tom Homan as paid protesters ERUPT in Chicago
6.75K35 -
16:59
Degenerate Jay
13 hours ago $2.12 earnedIs Metal Gear Solid Delta: Snake Eater Worth Buying?
27.5K2 -
4:26:28
Flex011
6 hours ago $0.16 earnedCronos: The New Dawn – Brutal Time-Travel Horror Survival
3.47K2 -
33:11
The Finance Hub
17 hours ago $1.65 earnedBREAKING: JD VANCE JUST RELEASED A MASSIVE BOMBSHELL!!! OMG!!
7.97K23