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
Bannons War Room
7 months agoWarRoom Live
16,633 watching -
LIVE
LFA TV
7 hours agoLIVE: CHARLIE KIRK VIGIL SERVICE!
4,703 watching -
UPCOMING
Barry Cunningham
15 hours agoCHARLIE KIRK MEMORIAL SERVICE FEATURING PRESIDENT TRUMP AND JD VANCE AND MANY OTHERS!
19.1K4 -
22:13
iCkEdMeL
2 hours ago $2.80 earnedMass Shooting at Wedding Reception — Witnesses Say Shooter Yelled “Free Palestine”
19.6K13 -
0:36
Danny Rayes
2 days ago $1.58 earnedFacebook Needs To Be Stopped...
16.4K7 -
LIVE
Total Horse Channel
18 hours agoAMHA World Show 2025 9/21
784 watching -
1:29:02
Game On!
1 day ago $6.80 earnedTHEY'RE BACK! NFL Wise Guys Return For Week 3 BEST BETS!
39.8K4 -
6:16
China Uncensored
3 hours agoHow Trump Plans on Stopping Russia and China—Without Firing a Shot!
65.7K31 -
33:13
Ohio State Football and Recruiting at Buckeye Huddle
15 hours agoOhio State Football: 10 Things We Learned Watching Washington's Win over Colorado State
36K -
1:14:04
NAG Entertainment
16 hours agoKickback w/ Leon - Rocket League: Road to GC
32.9K