1615328063 Publish time 2021-3-10 06:52:36

RaspTank issues with rpi_ws281x.py

Edited by 1615328063 at 2021-3-10 06:52 AM

Dears,
I've bought RaspTank in February and connected it to Raspberry Pi 4B. After running webSerwer.py I'm geting the following error:
File "/usr/local/lib/python3.7/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 -3 (Hardware revision is not supported)
Segmentation faultIt is called from robotLight.py which is called from both LED.py or OLED.py...
When I comment the part of code that calls the robotLight.py part, the Web App has "connect error" on a screen and the Robot is not reacting to the commands from buttons on the screen.

I tried to solve the issue using https://www.adeept.com/learn/tutorial-352.html but "scons" or "sudo python3 setup.py build" throws an error so I cannot add the library on my own..

Please help me - how to solve the issue with rpi_ws281x? I assume you can provide two options:
1) tell how to fix existing RaspTank code
2) Tell how to reinstall the library using "scons" and the rest of tutorial


Many thanks!
Piotr

1694050133 Publish time 2023-9-7 09:31:10

The RaspTank issue with rpi_ws281x.py is a frequent occurrence and there are many methods to fix it. retro bowl

1713170675 Publish time 2024-4-15 16:49:49

Ensure that the version of the rpi_ws281x library you're using is compatible with your Raspberry Pi 4B. Some versions may not support newer hardware revisions. wordle

1715511036 Publish time The day before yesterday 09:42 AM

Yep, I have the same issue with my RaspTankPro. I have a Raspberry PI 4B (8 gig) and getting the same error.
(getting other issues like "Remote I/O error" for the mpu6050Test.py and the pi resets when trying to move the servos.
(I have two rasptankpros, managed to actually get the first one to work but stupidly tried to add code to control it with a PS4 controller, messed up the OS)
Pages: [1]
View full version: RaspTank issues with rpi_ws281x.py