Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Compatibility with Raspberry PI 4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Compatibility with Raspberry PI 4

by thib on Tue Jan 14, 2020 5:03 pm

Hello,

I tried to use a neopixel strip with the raspberry PI 4 but it's not working. I have the following error : "ws2811_init failed with code -3 (Hardware revision is not supported)". Do you know how to solve this issue ?

It's working on raspberry pi 3B.

Thank you for your help

thib
 
Posts: 3
Joined: Tue Jan 14, 2020 4:56 pm

Re: Compatibility with Raspberry PI 4

by mikeysklar on Tue Jan 14, 2020 6:54 pm

Hi thib,

Assuming there are no issues with the wiring on the pi4 I suspect that either the pin choice is an issue or more likely that the installation of the libraries was done as root, but now you are trying to run the script as yourself which cause some permission issues.

Can you upload some photos of your wiring, a link to or embed the code you are running and show me the command line you are executing.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Re: Compatibility with Raspberry PI 4

by thib on Wed Jan 15, 2020 4:40 am

Hello,

thank you for answer. I am sure for the wiring because it's working on RPI 3B+. In any case, the python script fails on RPI4 before the end.

I enclosed my python code and the capture of the error. I tried to run the command with and without "sudo" but the same error occurs.

I tried also with different pins but still not working.
I used a raspbian of 2019-09-26.

I am bit disappointed because I have also bought a NeoMatrix 8x8, strip 60Leds, a hat for 32x32 matrix and a 32x32 matrix. And I think I will have the same issue for these devices.
Attachments
testLedStrip.txt
code python
(2.04 KiB) Downloaded 8 times
error.JPG
python command and error on console
error.JPG (75.77 KiB) Viewed 80 times

thib
 
Posts: 3
Joined: Tue Jan 14, 2020 4:56 pm

Re: Compatibility with Raspberry PI 4

by mikeysklar on Wed Jan 15, 2020 4:12 pm

Thib,

Thank you for dropping in your code and script output.

When installing the NeoPixel library did you use pip3?

I was looking through our RPI NeoPixel guides and saw we do have two different library installation recommendations. I am not sure which of the installation methods you used, but if your recall please let us know.

Code: Select all | TOGGLE FULL SIZE
 sudo pip3 install adafruit-circuitpython-neopixel

Code: Select all | TOGGLE FULL SIZE
 sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel


You might want to try a few less NeoPixels if you are driving off a typical 2A power supply. I see '8' in the code, but maybe start with '2'. The power requirements for the pi3B+ and pi4 would be different.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Re: Compatibility with Raspberry PI 4

by thib on Wed Jan 15, 2020 7:07 pm

Hello,

The issue is solved ! My 8 neoPixel strip is working on RPI4. Indeed a new version (4.2.3) of rpi-ws281x library has been released today (https://pypi.org/project/rpi-ws281x/#history).
I asked to the main contributor to publish the last version...

Thank you for your help

thib
 
Posts: 3
Joined: Tue Jan 14, 2020 4:56 pm

Re: Compatibility with Raspberry PI 4

by mikeysklar on Wed Jan 15, 2020 8:08 pm

Excellent. Thank you for the followup with the solution.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.