Arduino: How to make an LED blink in a pattern

Click to see full image

Materials Needed

  • A simple arduino uno board
  • At least one LED
  • You need to download the arduino software if you haven’t already
  • Download the software at

It is recommended to see my earlier arduino projects before doing this one.

The Code

Type this code on the arduino software.

Visit  to find more information about what each statement means.


const int LED=13 ;// The LED will be connected to pin 13

void setup ( )


pinMode(LED, OUTPUT) ;// This states that the LED is acting as an output


void loop ( ) // This is the place where you will program the LED  to blink


digitalWrite (LED, HIGH); //  The LED turns on

delay (1000) ;// Waits a second

digitalWrite (LED, LOW); // The LED turns off

delay (1000) ;// Waits a second




When you finished typing in the code, plug in the arduino board to your computer. Make sure to attach an LED to pin 13 on the arduino board. The longer side should connect to pin 13, and the shorter side should connect to GND (which stands for ground)

Press the check button above the code. When you press this button, the arduino software scans the code for any mistakes.

Then press the button next to the check button. This uploads the procedure into the board, and the LED should blink.

1 Comment on Arduino: How to make an LED blink in a pattern

  1. I and my pals have already been studying the nice thoughts on your web site and at once I had a terrible feeling I never expressed respect to the site owner for those secrets. My ladies were absolutely warmed to read through all of them and have undoubtedly been tapping into those things. Thank you for truly being quite considerate and then for picking some marvelous useful guides most people are really desperate to be aware of. My sincere regret for not saying thanks to you sooner.

Leave a comment