> 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/led-chasing.md).

# LED Chasing

## What will we do

In this lesson we will add one more LED and create a light chasing effect. We will use 3 of the same color LED’&#x73;**.**

The sequence for the code will be as follows

* Turn LED1 ON
* Wait for 0.5 second
* Turn LED1 OFF and LED2 ON
* Wait for 0.5 second
* Turn LED2 OFF and LED3 ON
* Wait for 0.5 second
* Turn LED2 ON and LED3 OFF
* Wait for 0.5 second
* Turn LED2 OFF and LED1 ON

## Parts List

You will need the following parts:

* **1x** arduino uno
* **1x** arduino USB Cable
* **1x** Breadboard
* **3x** Jumper Wire
* **3x** LED (all same colour)
* **3x** Resistor

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

You purchased your Arduino kit from the [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** <a href="#wiring-it-up" id="wiring-it-up"></a>

![](/files/-M8uHeu1tiNQC2aPMR7m)

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 and install the [Kids Code Extension](https://docs.kidscode.co.za/arduino-kids-lessons/blinking-an-led#install-the-kidscode-extension)&#x20;

## Block Coding <a href="#block-coding" id="block-coding"></a>

![](/files/-M8uIrp0mx1HIy1Qd1Dv)

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