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
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/
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/
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
- 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
Run the command interactively so you can check for any error message output.
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
Can you please advise how to run in interactrive mode ?
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
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
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
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
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
The Neopixel led ring is at the top of the inside of the case
https://youtu.be/Gnc3jYsElUE
- 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
At a command line, run the same command you are trying to run via cron:
and post any errors it produces.
Code: Select all
python3 /home/pi/rpi_ws281x/python/examples/strandtest.py
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
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
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
- 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
Did the code exit with an error message? Or it just printed the last line:
and never continued beyond that?
And what was happening with the NeoPixels? Did they continue to animate? Or stopped?
Code: Select all
Rainbow animations.
And what was happening with the NeoPixels? Did they continue to animate? Or stopped?
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
There is no error i i cam see ? Would there be log file somewhere ?
- 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
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?
Do the NeoPixels continue to animate? Or do they also stop?
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
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
the script
- 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
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?
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?
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
All i can say is this issue started when i started using bullseye, there must be some compatibility issue?
- 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
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?
- bobster316
- Posts: 55
- Joined: Tue Nov 24, 2020 10:32 am
Re: 12 Led Neopixel Ring with new raspberry pi os bullseye o
Yes thats what i am doing.
Is there someone i can speak to, messaging back and forth is not getting anywhere
Is there someone i can speak to, messaging back and forth is not getting anywhere
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/
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/