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
-
31:27
Stephen Gardner
17 hours ago🔥BOMBSHELL: Mortician EXPOSES Charlie Kirk Autopsy - The Key Evidence EVERYONE Missed!
95.6K217 -
30:00
BEK TV
3 days agoGUT HEALTH AND THE POWER OF KIMCHI WITH KIM BRIGHT ON TRENT ON THE LOOS
31.8K4 -
LIVE
IamNibz
7 hours ago $0.77 earned6-7 Minecraft Stream
72 watching -
36:53
daniellesmithab
3 days agoSupporting Alberta's Teachers and Students
109K24 -
1:25:28
VapinGamers
2 hours ago $0.44 earnedTools of the Trade - Lights, Camera, Go Live with Joker - !rumbot !music
6.32K3 -
14:38
Nikko Ortiz
21 hours agoADHD vs Autism
71.2K48 -
LIVE
TonYGaMinG
2 hours ago🟢 INDUSTRIA 2 PLAYTEST / ACTIVE MATTER LATER
77 watching -
LIVE
FoeDubb
2 hours ago🏰KINGDOM MENU: 🎮SHORT SATURDAY SESH ON DECK DILLY DILLY!!
92 watching -
2:09:04
GlizzyPrinceChristian
2 hours agoCOD SATURDAYS DIGGY DIGGY DIGGY| We Testing Out This Beta
5.91K2 -
LIVE
MrR4ger
5 hours agoSCARETOBER DAY 4 - AMNESIA: THE BUNKER - ACTIVE MATTER WITH GUMO AN TONY #PARTNERED STREAM
21 watching