HomeStore

RGB LED for micro:bit

Product image 1

RGB LED for micro:bit

The MonkMakes RGB LED for micro:bit provides a colourful add-on to your micro:bit. Connect it up with alligator clips and then use the three outputs of your micro:bit to control the red, green and blue channels to mix up any colour of light you want.

Features

  • Easy to connect
  • Powered directly from micro:bit pins
  • Useful for teaching color mixing.
  • Compatible with micro:bit v1 and v2!

Getting Started

Connecting to your micro:bit

Connect the RGB LED to the micro:bit as shown below. When attaching the alligator clips to the micro:bit, make sure that the clips are perpendicular to the board so that they are not touching any of the neighbouring connectors on the micro:bit edge connector.

JavaScript Blocks Editor

Traffic Signal Example

Click on the example below to open the code in the JavaScript Blocks Editor. Once its running on your micro:bit it will cycle through the colors of a traffic signal.

MicroPython

TRAFFIC SIGNAL EXAMPLE

Paste the following code into the Python window and then Download the file and copy it onto your your micro:bit

from microbit import *

def set_rgb(red, green, blue):
pin0.write_analog(red)
pin1.write_analog(green)
pin2.write_analog(blue)

while True:
set_rgb(255, 0, 0)
sleep(4000)
set_rgb(800, 100, 0)
sleep(1000)
set_rgb(0, 1023, 0)
sleep(5000)
set_rgb(800, 100, 0)
sleep(1000)

$4.42
RGB LED for micro:bit
$4.42

Product Information

Shipping & Returns

Description

The MonkMakes RGB LED for micro:bit provides a colourful add-on to your micro:bit. Connect it up with alligator clips and then use the three outputs of your micro:bit to control the red, green and blue channels to mix up any colour of light you want.

Features

  • Easy to connect
  • Powered directly from micro:bit pins
  • Useful for teaching color mixing.
  • Compatible with micro:bit v1 and v2!

Getting Started

Connecting to your micro:bit

Connect the RGB LED to the micro:bit as shown below. When attaching the alligator clips to the micro:bit, make sure that the clips are perpendicular to the board so that they are not touching any of the neighbouring connectors on the micro:bit edge connector.

JavaScript Blocks Editor

Traffic Signal Example

Click on the example below to open the code in the JavaScript Blocks Editor. Once its running on your micro:bit it will cycle through the colors of a traffic signal.

MicroPython

TRAFFIC SIGNAL EXAMPLE

Paste the following code into the Python window and then Download the file and copy it onto your your micro:bit

from microbit import *

def set_rgb(red, green, blue):
pin0.write_analog(red)
pin1.write_analog(green)
pin2.write_analog(blue)

while True:
set_rgb(255, 0, 0)
sleep(4000)
set_rgb(800, 100, 0)
sleep(1000)
set_rgb(0, 1023, 0)
sleep(5000)
set_rgb(800, 100, 0)
sleep(1000)

You may also like

-65%NEW
Thumbnail 1Thumbnail 2

Bit:2:Pi

$18.01

$6.30

-65%NEW
Thumbnail 1Thumbnail 2

Simon:Says for micro:bit

$16.99

$5.95

NEW
Thumbnail 1Thumbnail 2

Moisture Sensor for micro:bit

$10.19

NEW
Thumbnail 1Thumbnail 2

Relay for micro:bit

$10.19

-65%NEW
Thumbnail 1Thumbnail 2

micro:bit accessories kit

$4.76

$1.67

-65%NEW
Thumbnail 1

Line Follower Sensor Pack for Robo:Bit Buggy

$7.81

$2.73

NEW
Thumbnail 1Thumbnail 2

Bit:Commander Console & Controller for micro:bit

$18.01

NEW
Thumbnail 1Thumbnail 2

SparkFun gator:bit

$27.18

-65%NEW
Thumbnail 1Thumbnail 2

touch:bit

$13.59

$4.76

-65%NEW
Thumbnail 1Thumbnail 2

automation:bit

$16.99

$5.95

-65%NEW
Thumbnail 1Thumbnail 2

bat:bit 3 - Battery pack for micro:bit

$10.19

$3.57