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
Russell Brand
2 hours agoWE’RE BACK! The Fight for Freedom Starts NOW - SF645
5,430 watching -
The Quartering
1 hour agoBen Shapiro Vs Tucker Carlson, Blackface Trick Works, Kash Patel Under Fire, Based Woman Vs Trans
18.1K8 -
1:24:44
DeVory Darkins
2 hours agoTrump dominates 60 minutes interview as Democrats surrender to Mamdani
83.9K28 -
LIVE
Dr Disrespect
4 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - FULL SEND INTO THE RED
1,619 watching -
1:50:43
Tucker Carlson
2 hours agoChris Williamson’s Advice to Men: How to Survive a World of OnlyFans and AI Girlfriends
32.3K36 -
19:57
Neil McCoy-Ward
7 hours agoThinking Of Relocating? (You'd Better Act FAST! 🚨)
6684 -
LIVE
Jeff Ahern
48 minutes agoMonday Madness with Jeff Ahern
65 watching -
1:07:25
Timcast
3 hours agoBomb DETONATED At Harvard, Attacks On Ice Agents SKYROCKET
149K126 -
1:55:31
Steven Crowder
5 hours agoTucker Carlson & MAGA: Everyone is Missing the Point
377K303 -
1:11:22
The Rubin Report
4 hours agoWatch Joe Rogan’s Face as Elon Musk Exposes How Dems Are Cheating in Plain Sight
62.1K83