12 Led Neopixel Ring with new raspberry pi os bullseye os

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

12 Led Neopixel Ring with new raspberry pi os bullseye os

Post by bobster316 »

I am not able to get the 12 led neopixel led ring to work correctly with the new raspberry pi os 32bit bullseye.

I have the following command in crontab to run the script for the neopixel

@reboot python3 /home/pi/rpi_ws281x/python/examples/strandtest.py &

The neopixel starts a led pattern but stops


There is no issues when running this script on the previous raspberry pi os 32bit (not bullseye)

Appreciate any help

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

Run the command interactively so you can check for any error message output.

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

Can you please advise how to run in interactrive mode ?

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

This is the ocnfiguration i have used

sudo pip3 uninstall rpi_ws281x
sudo pip3 install rpi_ws281x
sudo pip3 install adafruit-blinka
sudo apt-get install python-dev git scons swig
git clone https://github.com/jgarff/rpi_ws281x.git
cd rpi_ws281x
sudo scons
cd python
sudo python3 setup.py build
cd examples

crontab -e
@reboot sudo python3 /home/pi/rpi_ws281x//python/examples/strandtest.py &

I have noticed the leds atsrt after boot but then stop after approx 5 seconds.

When rrunning the script manuualy when the pi is already booted it works fine

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

Please see video which shows the issue
The Neopixel led ring is at the top of the inside of the case

https://youtu.be/Gnc3jYsElUE

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

At a command line, run the same command you are trying to run via cron:

Code: Select all

python3 /home/pi/rpi_ws281x/python/examples/strandtest.py
and post any errors it produces.

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

pi@raspberrypi:~ $ python3 /home/pi/rpi_ws281x/python/examples/strandtest.py
Can't open /dev/mem: Permission denied
Traceback (most recent call last):
File "/home/pi/rpi_ws281x/python/examples/strandtest.py", line 91, in <module>
strip.begin()
File "/usr/local/lib/python3.9/dist-packages/rpi_ws281x/rpi_ws281x.py", line 131, in begin
raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)
Segmentation fault

pi@raspberrypi:~ $ sudo python3 /home/pi/rpi_ws281x/python/examples/strandtest.py
Press Ctrl-C to quit.
Use "-c" argument to clear LEDs on exit
Color wipe animations.
Theater chase animations.
Rainbow animations.


This worke until it reached the Rainbow animations.where it stopped

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

Did the code exit with an error message? Or it just printed the last line:

Code: Select all

Rainbow animations.
and never continued beyond that?

And what was happening with the NeoPixels? Did they continue to animate? Or stopped?

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

There is no error i i cam see ? Would there be log file somewhere ?

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

No. If it's printing that and nothing else, then it seems like it's getting stuck in a loop somewhere. But there's nothing obvious in the code.

Do the NeoPixels continue to animate? Or do they also stop?

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

The Neopixel starts displaying a pattern of led;s seems a bit erratic and then stop cycling when reachinig the rainbow pattern of
the script

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

Really weird behavior. There's nothing fundamentally different about the rainbow animations:
https://github.com/jgarff/rpi_ws281x/bl ... andtest.py

All the animations are using the same basic calls. So not sure why it would *partially* work on Buster.

Try rearranging the sketch to call the rainbow animations first. Does it still fail on those? Or does it do something different?

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

All i can say is this issue started when i started using bullseye, there must be some compatibility issue?

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by adafruit_support_carter »

Are you starting with a fresh install of bullseye and then going through the install setup? Or did you upgrade an existing system to bullseye?

User avatar
bobster316
 
Posts: 55
Joined: Tue Nov 24, 2020 10:32 am

Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o

Post by bobster316 »

Yes thats what i am doing.
Is there someone i can speak to, messaging back and forth is not getting anywhere

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”