Blinking an LED
Last updated
Was this helpful?
Last updated
Was this helpful?
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
Please ensure that you have mBlock setup on you computer. Click to setup mBlock
You will need the following parts:
1x arduino uno
1x arduino USB Cable
1x Breadboard
2x Jumper Wire
1x LED
1x Resistor
This example we use a red LED but you can use any colour LED you prefer.
Ensure that the LED are the right way around, with the longer positive leads (anodes) to the left.
Click on the Extensions button
Search for Kids Code on the extension popup and Add the Kids Code extension
You will see the Kids Code blocks at the bottom.
You can purchased an Arduino kit from
Launch the mBlock IDE () and select the Arduino Uno Device.