Course Content
About BBC microbit
Micro:bit board is designed by BBC which aims to help children at or above 7 grade to learn programming better. Micro:bit board has abundant board resources, including a 5*5 LED metric dot array, 2 programmable buttons, Compass, USB ports, Bluetooth module etc.. It is only pocket size but very powerful. You can programming, customize or control it as well. The latest Micro:bit V2 board comes with a touchable Logo and microphone on the front. A speaker is added on the back, so all kinds of sounds can be played without external equipment. The gold finger at the bottom adds a gear design to facilitate the user to better fix the alligator clip. In addition, the 2nd generation Micro:bit board also support sleep mode. Users can make it enter sleep mode by long pressing the reset button, which can reduce power consumption. The most important feature is that the CPU performance of the Micro:bit V2 board is much better than the V1 version, coupled with more RAM. So Micro:bit V2 allow users to expand more functions and create more creative works.
0/1
Transfer code to the micro:bit
This guide explains how to transfer code from a computer or tablet so that it can run on a BBC micro:bit. It covers: Transferring a program from MakeCode or the micro:bit Python Editor from a computer from an Apple device (iPad or iPhone) from an Android device Transferring a program that has been downloaded as a file When your program is being transferred, your micro:bit will pause and you may see the yellow LED on the back flash. Once it’s copied across, your program starts running on your micro:bit.
0/6
BASIC LESSONS
Quick projects to suit all ages, searchable by computing topic, level, coding language and micro:bit feature
0/10
SENSOR LESSONS
Quick projects to suit all ages, searchable by computing topic, level, coding language and micro:bit feature
0/8
CREATOR BIT
The micro:bit Creator:bit Bricks Pack contains 360 degrees servos, the LED strips and almost 200 pieces bricks. Together with the well-designed assembly instructions and courses, it makes the kids learn the coding easily as well as how to build blocks in an interesting way. Let’s start building our kits with the tips!
0/9
Private: Welcome to Micro:bit starter kit
About Lesson

Purpose

To build a traffic light.

../../_images/Ringbit_Bricks_Pack_case_en_01_01.png

Materials

../../_images/Ringbit_Bricks_Pack_case_en_01_02.png

Background Knowledge

Complete basic Microbit courses.

 

Bricks build-up

../../_images/Ringbit_Bricks_Pack_step_01_01.png

../../_images/Ringbit_Bricks_Pack_step_01_02.png../../_images/Ringbit_Bricks_Pack_step_01_03.png

../../_images/Ringbit_Bricks_Pack_step_01_04.png

../../_images/Ringbit_Bricks_Pack_step_01_05.png

../../_images/Ringbit_Bricks_Pack_step_01_06.png

../../_images/Ringbit_Bricks_Pack_step_01_07.png

../../_images/Ringbit_Bricks_Pack_step_01_08.png

../../_images/Ringbit_Bricks_Pack_step_01_09.png

../../_images/Ringbit_Bricks_Pack_step_01_10.png

../../_images/Ringbit_Bricks_Pack_step_01_11.png

../../_images/Ringbit_Bricks_Pack_step_01_12.png

../../_images/Ringbit_Bricks_Pack_step_01_13.png

../../_images/Ringbit_Bricks_Pack_step_01_14.png

 Software

MicroSoft makecode

4.7. Programming

Step 1

Click “Advanced” in the MakeCode drawer to see more choices.

../../_images/Ringbit_Bricks_Pack_case_en_01_03.png

n order to programme for the Ring:bit Bricks Pack, we need to add an extension. Click “Extensions” at the bottom of the drawer. Search “Ringbit” in the dialogue box to download it.

../../_images/Ringbit_Bricks_Pack_case_en_01_04.png

Note: If you met a tip indicating codebase will be deleted due to incompatibility, you may continue as the tips tell or build a new project.

Step 2

Drag the set strip to NeoPixel at pin with led as to on start, set the pin at P0 port. Initialize the strip in 3 LEDs and in RGB(GRB format).

../../_images/Ringbit_Bricks_Pack_case_en_01_05.png

Step 3

Click “Advanced” to choose “Functions” and click “Make a Function” as the picture shows below.

../../_images/Ringbit_Bricks_Pack_case_en_01_06.png

Step 4

Enter “Red LED lights on” and click “Done” to create a function, and create another two functions “Yellow LED lights on”, “Green LED lights on” in the same way.

../../_images/Ringbit_Bricks_Pack_case_en_01_07.png

Step 5

In the function of “Red LED lights on”, set the third LED in red and the other two in black; in “Yellow LED lights on”, set the second LED in yellow and the other two in black; in “Green LED lights on”, set the first LED in green and the other two in black.

../../_images/Ringbit_Bricks_Pack_case_en_01_08.png

Step 6

Set “red led lights on” function in “Forever”, and pause 3000ms; Set “yellow led lights on” function and pause 1000ms; set “green led lights on” and pause 3000ms.

../../_images/Ringbit_Bricks_Pack_case_en_01_09.png

Code

Link: https://makecode.microbit.org/_DdAU5d4kMJDh

You can also download it directly below:

Result

When power on, the red LED lights on for 3 seconds, then the yellow led in 1 second and the green one in 3 seconds at last.