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
-
24:13
Healthy Debate
1 hour agoCFB Playoff Semi Finals Preview ft. Big Ev - Healthy Debate
101 -
LIVE
Liwitoni Gaming
1 hour agoBetter Late Than Never! First Time Playing BLOPS 6
140 watching -
LIVE
Viss
2 hours ago🔴LIVE - WINNER WINNER CHICKEN DINNER - PUBG Solo Mayhem!
377 watching -
1:47:58
The Quartering
2 hours agoLA Fires Get WORSE, Sonic 3 Masterpiece, Big Mike Trends As Obama & Trump Get Chummy
45.9K21 -
1:53:43
vivafrei
4 hours agoCalifornia is Burning Because of DEI & Bad Policy! Trump UIpdates AND MORE! Viva Frei Live
88.9K83 -
2:01:50
Jesús Enrique Rosas
4 hours agoEp. 58: Carter's Funeral BODY LANGUAGE, Newsom BURNING, the Lively/Justin Baldoni drama and MOAR!
44.2K25 -
1:36:36
Mostly Sports With Mark Titus and Brandon Walker
22 hours agoOur Penn State Vs Notre Dame Preview + Jon Gruden Rejoins The Family | Mostly Sports EP 321 | 1.9.25
22K -
56:27
TheAlecLaceShow
4 hours agoDems Blame Trump For LA Fires | Biden’s Final Disgrace | Guest: Matt Palumbo | The Alec Lace Show
14.9K7 -
22:37
Russell Brand
1 day agoElon Musk has had ENOUGH!
89.2K190 -
3:49:19
GlizzyPrinceChristian
6 hours agoI Just Split My Gooch This Morning Hehe We Playing Some God Of War Ragnarök
61K2