I have a Rpi2 with GrovePi+ and Grove Chainable RGB LEDs (chain of 3).
I can’t even make the Python sample grove_chainable_rgb_led.py.
First, I adjusted the code to run with ‘numleds=3’.
Then the ‘pin’ parameter for the chainableRgbLed_* functions wasn’t initialized. I chose to use the same value as for the ‘chain’ variable; 7 as the LEDs are connected to D7.
Now the scripts runs but nothing happens at all. The LEDs stay lit with a nice continuous light blue
Hi,
Can you just make sure that you are using the latest firmware and that you did a firmware update on the GrovePi+. The RGB LED code was added to the firmware a few weeks back. Can you try updating the firmware and let us know if that works.
Version.txt did show 1.2.2.
Following your suggestion I ran the firmware update script.
Now grovepi_version_check.py show the proper firmware version and my chainable RGB LEDs now blink like a Christmas tree
Thanks a lot Karan for helping.
Hi, I have the exact same problem like Tariflette: I do not get the chainable LED script running. I use GrovePi+ with Paspberry Pi B+ and have a chain of two leds connected at D7 like described in the script. When I connect them, they are lighting. When I start the script, I am not able to change anything to the leds. I also checked my version.txt and found v1.2.2. When I try the firmware update, I am prompted to connect some pins for the update. But as I am not able to figure out which ones (the provided image is not for GrovePi+ with Raspberry), the update canceled. Can you advise me, what to do?
after a successfull download from github repo the firmware_update.sh finally fails with “Firmware not found - Check if firmware is there or run again”.
Update: In the post above I tried to update from the folder on Desktop. If I switch to /home/pi/GrovePi/Firmware and exec firmware_update.sh it says “AVR device not responding, initialisation failed, rc=-1”…
Hey,
Can you try running sudo avrdude -c gpio -p m328p and post what you get. Also try running the install script as root by adding sudo before you start it.