Connect RGB LED strip to Microbit

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
vmcduarte
Posts: 5
Joined: Sat Dec 18, 2021 4:33 pm

Connect RGB LED strip to Microbit

Post by vmcduarte » Sat Dec 18, 2021 4:40 pm

Hello

I have a 4 pin RGB strip (picture in attachment)

How do I connect it to Microbit board? I mean which pin in in the strip is connected to each pin in the board?

And what pins combination will generate each color?

Thank you!

Image

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Connect RGB LED strip to Microbit

Post by scruss » Sat Dec 18, 2021 9:23 pm

This is an analogue LED strip. You won't be able to drive it directly from a micro:bit, but you'll need 3 N-Channel MOSFETs plus an external power supply and use three digital output lines to PWM the RGB channels to make different colours.

A rough guide to what you need to use: Overview | RGB LED Strips | Adafruit Learning System

Post Reply