Page 1 of 1

micro:bit, NeoPixel, Blocks/Javascript and rainbox

Posted: Thu Nov 15, 2018 11:16 am
by banburybill
Anyone out there doing stuff with Micro:Bit and Neopixels?

I'm finding that if I try and use the 'show rainbow' block, everything works as expected in the emulator, but when I try it with the hardware everything seems to stop at that point. Anyone out there see the same (or different)?

Re: micro:bit, NeoPixel, Blocks/Javascript and rainbox

Posted: Thu Nov 15, 2018 11:52 am
by codeclubdave
I don't have any direct experience with the Neopixel and micro:bits, but the following may help:

Neopixel docs: https://microbit-micropython.readthedoc ... pixel.html
A similar project using the micro:bit and Neopixel: https://lorrainbow.wordpress.com/2018/0 ... -yourself/

I wonder if it might be a power issue. With the Neopixel connected and your existing code, are you able to light up one LED? Then, if you light up more than one, does it still work?

Also, have you tried testing the connection with the micro:bit using different jumper cables?

Please let me know if any of the above helps. I'm happy to pass on any questions or further troubleshooting to our content team.

Cheers,

Dave

Re: micro:bit, NeoPixel, Blocks/Javascript and rainbox

Posted: Thu Nov 15, 2018 5:13 pm
by Forris
What 'neopixels' are you using, banburybill ?

To echo what Dave said; how are you powering them ?

You can run about 8 pixels straight from the Microbit, but any more than that will need an external power supply. If you're already using extra power, have you connected all three grounds (Microbit, power, neopixels) together ?

A useful tell-tale sign of inadequate power, is if only certain colours work. Blue is usually the first to go, with red being the last.

Hope that helps.