Authorized Online Retailers

Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP
Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Introduction

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

Full light RGB LED

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. The picture below is a single bead that has four pins.
https://wikifab.org/images/c/c5/DIY_Custom_NeoPixel_Rings_From_Scratch%21_F393GGZJIEU0ESY.LARGE.jpg

LEARNING GOALS

After you have downloaded the program, 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.

2.Preparation

Hardware:

● 1 X USB cable

● 1 X OSOYOO Robot Car for Micro Bit

Then the micro:bit is connected to the computer through USB, and the computer will pop up a U disk and click the URL in the U disk to enter the programming interface. Input this URL https://github.com/osoyoo/OSOYOO-MICRO-BIT-CAR to get the package.

Code Test

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.

Expansion lesson 1

In this extended experiment, we will learn how to light one of the on-board full-color RGB lamp beads.

Code Program