SKU:2020005200(with mainboard)
Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
2020005300 (without mainboard)
Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Through this lesson, you can learn how to change RGB headlight colours and matrix display pattern.
● 1 x USB cable
● 1 x micro:bit board
● 1 x 9V battery
● 1 x OSOYOO Robot for Micro bit
The RGB colour model is an additive colour model in which red, green and blue light are added together in various ways to reproduce a broad array of colours. The name of the model comes from the initials of the three additive primary colours: red, green and blue. The reason that you can mix any colour you like by varying the quantities of red, green and blue light is that your eye has three types of light receptor in it (red, green and blue). Your eye and brain process the amounts of red, green and blue and convert it into a colour of the spectrum. |
Block |
Analyse |
Examples |
Startup items;
When dragged into this block, the program will be displayed after booting |
||
Headlight colour display;
switch different colours by yourself |
||
Cycle block;
When dragged into the block, the program will always display in a loop |
||
Matrix display;
set a different matrix shape by yourself |
Step 0: Go to url: https://makecode.microbit.org, click New Project
Step 1. In the Toolbox, click on the Basic category and then click the on start block , and then Drag as following figure:
Step 2. Click on the Basic category again. Then drag the show icon block and drop it inside the on start block ,and choose the icon from the drop-down menu as following figure.Step 3. Click on the Basic category and then click the forever block, and then Drag as following figure:
If you want the color of your robot headlight to keep changing, you can try uploading the code below to your micro bit. Of course, you can also adjust the color sequence and delay time according to your own ideas.
Step A)Connect the micro:bit with the computer through USB cable, and the computer will pop up a U disk and send the download file(.hex)to your micro:bit.
Step B)Insert the micro:bit main board into the robot, and connect a 9v battery into the battery box.
Step C)Turn the POWER switch ON. The micro:bit car ‘s headlight will showed red ,and the matrix will showed a rhombus .
DownLoad Url osoyoo.com