Authorized Online Retailers

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 ここでご購入を!

OSOYOO Robot Car for Micro Bit has three full color RGB LEDs, which are programmable for colorful effect. In this lesson, we code the RGB LED.

● 1 x USB cable
● 1 x micro:bit board
● 1 x 9V battery
● 1 x OSOYOO Robot for Micro bit

RGB color model is a color standard in the industry. It can be used to create a variety of colors through the change of RGB channels and their interactive mixture. RGB stands for red, green and blue. This standard has almost included all kinds of colors that are visually perspective by human eyes. It is one of the most widely used color system.

Rainbow LED is a kind of LED. It has integrated red, green and blue LED into one component. We all know that the three primary colors of light are red, green and blue. With different color combination, we can synthesize the color of all things. Similarly, by combining different RGB brightness of light, we can also create an infinite number of colors.

The LEDs on Robit are WS2812b LEDs, which have similar outlook with 5050 bead. Each bead is a pixel.

Block

Analyse

Examples

RGB Car Program block;

When dragged into this block, All RGB operate according to instructions

Define strip color block

When dragged into this block, the strip will be showed color

strip show block

send all changes to the strip

Step 0: Go to urlhttps://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 button, and then Drag as following figure:

Step 4. In the Editor controls, click on the Advanced button and then Extensions  as following figure.
Step 5. In the Extensions page , enter project URL “https://github.com/osoyoo/OSOYOO-MICRO-BIT-CAR ” in the Search textbox and click on the Search button. The page will show you all the matching extensions based on your search string. Now, click on OSOYOO to add it into your project .
Step 6. Click on the Neopixel category. Drag Strip show color red  block and place it inside the forever block as following figure.
Step 7. Click on the OSOYOO_Robot category. Drag RGB Car Program block and place it inside the show color red  block.
Step 8. Click on the Neopixel category again. Drag Strip show  block and place it inside the Strip show color red block as following figure.
Step 9. Click on the OSOYOO_Robot category again. Drag RGB Car Program block and place it inside the strip show block.

Step 10. Rename the project and download the hex file as following figure. .

Step 11. Save  it to your MICROBIT disk.

If you want the color of your robot RGB to keep changing, you can try change the code .

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. you can see a smile on the car’s dot matrix, and all the full light RGB LED are lit up. Now, the light is lit up with purple, and the children can choose to light the other colors in the program.

Note: The courses about water lamp need to turn off the power before downloading the new program, otherwise the three full color RGB LEDs will always be on.