Blinking an LED

In this tutorial, we will take the first step into the exciting world of Arduino by creating a simple project to blink an LED. This project is perfect for beginners and will teach you the basics of setting up your Arduino board, writing code, and controlling hardware components. By the end of this tutorial, you'll have a blinking LED that you can control with your Arduino board 

Step 1

Setting Up the Hardware: 

You can find out more about the Arduino board here

Step 2

Inserting the LED (Light Emitting Diode):

LEDs have a longer leg (anode) and a shorter leg (cathode).

You can learn more about LEDS here

Step 3

Connecting the Resistor:

A resistor is a passive two-terminal electronic component that is used to restrict or limit the flow of electric current in a circuit. 

What do those funny colors mean ?

Resistor Color Code

An electronic color code is a code that is used to specify the ratings of certain electrical components, such as the resistance in Ohms of a resistor

This resistor has (Orange-Orange-Brown) as its color code. You can learn more about resistors by following this link 

Step 4

Connecting the the Arduino:

Step 6

Connecting Ground to Circuit

Step 7

Connect the USB to the Arduino

Step 8

Open up the Arduino IDE and connect the Uno Board

Step 9

Making sure the Arduino board select is connect to correct COM port

Step 10

Running the BLINK example

Once the upload is complete, you should then see on your board the with your LED start blink. You can adjust the speed of blinking by changing the delay number in the parenthesis to 100, and upload the Blink sketch again. Now the LED should blink much faster. 

Congratulations! You have successfully programmed your board to blink an LED! 

Arduino code below with detailed comments explaining each part to someone who's new to programming 

// The Arduino code is organized into two main functions: "setup" and "loop."
void setup() {
// In the "setup" function, we initialize things.// This line tells the Arduino that we want to use Pin 13 as an output.
  pinMode(13, OUTPUT); // Set Pin 13 as an output}
void loop() {
  // The "loop" function contains the main code that runs continuously.  // This line turns Pin 13 (connected to the LED) on by providing power to it.
  digitalWrite(13, HIGH); // Turn the LED on
  // The following line pauses the code for 1,000 milliseconds, which is 1 second.
  delay(1000); // Wait for 1 second
  // After the delay, we turn off Pin 13 to turn off the LED.
  digitalWrite(13, LOW); // Turn the LED off
  // Another 1-second delay before repeating the loop.
  delay(1000); // Wait for 1 second}

Now, let's go through each part:

By following these instructions, the Arduino repeatedly turns the LED on for one second and then turns it off for one second, creating the blinking effect


If you've enjoyed exploring my Arduino projects and want to see more amazing creations, your support can make a big difference! By contributing, you're helping me continue to innovate and bring even more exciting projects to life. Together, we can explore the endless possibilities of DIY electronics! Don't forget to like, subscribe, and follow for updates on the latest developments. Thank you for being a part of this journey! 

Click here to make a difference with your donation today!