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
World2Briggs
41 minutes agoThe US This Week
113 watching -
3:10:06
Nikko Ortiz
4 hours agoHAMAS Gaza Peace Deal And MORE.... Brutally Honest EP #17 | Rumble LIVE
66.9K43 -
25:10
MYLUNCHBREAK CHANNEL PAGE
4 hours agoIstanbul Should NOT Exist - Pt 4
10.7K5 -
LIVE
tminnzy
4 hours agoDROPS ON - BO7 BETA ALL DAY! #BlackOps7
60 watching -
1:35:48
Jeff Ahern
4 hours ago $8.15 earnedThe Saturday Show with Jeff Ahern
57K5 -
LIVE
GritsGG
5 hours agoWarzone Win Grinding! Most Wins in WORLD! 3680+!
163 watching -
55:45
Tactical Advisor
4 hours agoNew Product Alert! | Vault Room Live Stream 040
44.6K4 -
Reidboyy
4 hours ago $1.33 earnedTHEY GOT RID OF SBMM WTF!?!? (Go Phillies)
19.2K -
LIVE
The Company Boyz
3 hours agoDying Light: The Beast | Ja Pierdole, Kurwa Bober!
73 watching -
58:10
X22 Report
11 hours agoMr & Mrs X - Feminism, Family, Federal Reserve, The Rise Of The [DS] Agenda
198K53