Blinking an External LED with Arduino | Beginner Guide to pinMode(), digitalWrite(), and delay()
In this video, we’re taking your Arduino skills beyond the onboard LED by building your first real-world circuit with an external LED, resistor, breadboard, and jumper wires!
We’ll walk you through:
✅ What a circuit is and how it works
✅ difference between open and close circuit
✅ How to build a simple LED blinking circuit on a breadboard
✅ What is the structure of a program in Arduino
✅ The three essential functions, pinMode(), digitalWrite(), and delay()
✅ Finally we write a program to blink the external LED.
Code:
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off
delay(1000); // wait for a second
}
Don’t forget to LIKE, SHARE, and SUBSCRIBE for more hands-on tutorials, beginner-friendly lessons, and cool electronics projects.
💬 Got questions? Drop them in the comments—we try to reply to everyone!
#arduinotutorials #ElectronicsForBeginners #ledblinking #circuitbuilding #arduinoprogramming #digitalWrite() #delay() #pinMode()