> For the complete documentation index, see [llms.txt](https://docs.kidscode.co.za/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kidscode.co.za/arduino-lessons/arduino-beginner-lessons/blinking-an-led.md).

# Blinking an LED

## What will we do

Lets start by making our LED blink on and off. The way to make an LED blink is to follow this sequence of code instructions over and over again:

* Turn the LED on
* Delay for a period of time
* Turn the LED off
* Delay for a period of time

{% hint style="success" %}
Please ensure that you have mBlock setup on you computer. Click [here](/setting-up-mblock.md) to setup mBlock
{% endhint %}

## Parts List

You will need the following parts:

* **1x** arduino uno
* **1x** arduino USB Cable
* **1x** Breadboard
* **2x** Jumper Wire
* **1x** LED&#x20;
* **1x** Resistor

You can purchased an Arduino kit from [here](https://www.robofactory.co.za/arduino-kits/66-arduino-uno-r3-basic-starter-kit.html)

{% embed url="<https://www.robofactory.co.za/arduino-kits/66-arduino-uno-r3-basic-starter-kit.html>" %}

## Wiring it up

This example we use a red LED but you can use any colour LED you prefer.&#x20;

![](/files/-M6KHTrk_yIYi1duHidc)

Ensure that the LED are the right way around, with the longer positive leads (anodes) to the left.

## mBlock IDE

Launch the mBlock IDE (<https://ide.mblock.cc/#/>) and select the Arduino Uno Device.

## Install the KidsCode Extension

Click on the **Extensions** button

![](/files/-M8uBMB0jm_-3yp5yWJs)

Search for **Kids Code** on the extension popup and **Add** the **Kids Code** extension

![](/files/-M8uB_6GFdx-58Cn_h6N)

You will see the Kids Code blocks at the bottom.

![](/files/-M8uBikg1oFHvXTBDbgm)

## Block Coding

![](/files/-M8uCTow5gKV-denwxpd)

{% embed url="<https://ide.mblock.cc/#/?cloudProjectId=262516>" %}
