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 2024-5-18 09:42:29

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)

1716889614 Publish time 2024-5-28 17:49:44

Ensure your RaspTank code is up-to-date to fix compatibility issues. Updating libraries or following correct installation steps can resolve errors, enhancing your solar-powered robot's performance and reliability.

Adeept_Devin Publish time 2024-5-29 17:07:47

1715511036 replied at 2024-5-18 09:42 AM
Yep, I have the same issue with my RaspTankPro. I have a Raspberry PI 4B (8 gig) and getting the sam ...

“Remote I/O error”:This may be due to the error message caused by the MPU6050 module not being installed successfully.

When the robot is moving, the live video on the web interface freezes and the Raspberry Pi restarts. This is because the power supply is insufficient, causing the Raspberry Pi to restart.
Please use a fully charged 18650 battery to power the robot.
Please use a 18650 battery that supports a current of 4A or more (such as a high-rate battery)

1717129302 Publish time 2024-5-31 12:24:02

Since the web app is reporting a "connect error" when you comment out the robotLight.py part, there might be an issue with the connection between the web app and the robot age of war

1715511036 Publish time 2024-6-2 05:52:11

1713170675 replied at 2024-4-15 04:49 PM
Ensure that the version of the rpi_ws281x library you're using is compatible with your Raspberry Pi...

Yea thanks, you may have a point there! DG

1715511036 Publish time 2024-6-2 05:53:13

Adeept_Devin replied at 2024-5-29 05:07 PM
“Remote I/O error”:This may be due to the error message caused by the MPU6050 module not being i ...

Thank you.

1748249199 Publish time 2025-5-26 16:50:55

Have you tried running a minimal test script using rpi_ws281x outside of the RaspTank code to isolate whether the issue is hardware or software?
Pages: [1]
View full version: RaspTank issues with rpi_ws281x.py