+21622886281
Micro:bit RGB LED

Vary the light intensity of an RGB LED with Micro:bit

Purpose of this tutorial:

In this tutorial we will automatically vary the light intensity of an RGB LED

Required components

  • board micro:bit led RGB
  • 3 Resistors of 22O Ω
  • micro:bit GPIO Expansion Board
  • Connecting wires

Assembly

Connect:

  • Pin Po from the Micro:bit board to pin (R) for the red color of the RGB LED module
  • Pin P1 from the Micro:bit board to pin (G) for the green color of the RGB LED module
  • Pin P2 from the Micro:bit board to pin (B) for the blue color of the RGB LED module
  • the GND pin of the micro:bit to pin (GND) board of the RGB LED module

The mounting methods are numerous and here are some examples:

Mounting (1)

Mounting (2)

Makecode program

Here is the makecode program that allows you to automatically vary the light intensity of RGB LEDs.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top