Pi3B+, GrovePi+, Python & RGB LED Stick

It has been a long time since I did any work with interfacing electronics to processors, but with a sidestep to learn Python, came the whole idea of IoT, sensors and output devices.

I would like to interface the RGB LED Stick (10, 20 or 30 WS2813 mini LEDs) to the GrovePi+ but have come upon a brick wall.

I noted that there is no demonstration code for the sticks, so I was going to look at creating some, but admit that I’m not even sure what commands to send, and how via the GrovePi+.

Could anyone give me a short sample that has:

  • Initialise stick
  • Turn on LED (X)
  • Set colour of LED (X)
  • Turn off LED(x)

I know we need to send commands via the GrovePi+ which then sends the commands to the relevant GrovePi port (eg D8).

Any help appreciated.

I am creating a Repo on GitHub to house the “experiments” for each sensor that I have, and add more as I purchase them. Aim - to have at least one experiment for every GrovePi device.

1 Like

@adrian.j.gould

First, be sure to send a copy of your question to the new DI support at support@modrobotics.com to get an answer from the developers.

Check the existing sensor and effector examples under the Dexter GrovePi folder. And did you find the docs at https://www.dexterindustries.com/grovepi-tutorials-documentation/ already?

2 Likes

Hi Cyclicalobsessive.

Thanks for the hints - and I have sent a copy to the new support email address.

On the docs, yep, it’s one of the things I do all the time, is check the docs and sample code.

The Chainable LED (http://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/) is a different device to the RGB LED Stick (http://wiki.seeedstudio.com/Grove-RGB_LED_Stick-10-WS2813_Mini/).

The Chainable LED is based on P9813 chip which is a full colour LED driver whereas the RGB LED Stick is based on the WS2813 Mini LED - these are basically NeoPixel LEDs.

I’ll see what comes from the new support system, but I think it will be a case of updating the GrovePi firmware.

1 Like

support@modrobotics.com is for actual support on our products. This RGB stick is not a modrobotics product. Hopefully someone from the community can step in and help out. We don’t even have that RGB stick at hand. Sorry.

Cleo

1 Like

Thanks CleoQ - yep - I made an error - when I find details out will reply to this so others know.

1 Like

Hopefully you can use the concepts from the grovepi.py chainable LED methods to access the github rpi_WS281X library.