View: 2211|Reply: 8

RaspTank issues with rpi_ws281x.py

[Copy link]

2

Threads

2

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2021-3-10 06:52:36 | Show all posts |Read mode
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:
  1. File "/usr/local/lib/python3.7/dist-packages/rpi_ws281x/rpi_ws281x.py", line 131, in begin
  2.     raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
  3. RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)
  4. Segmentation fault
Copy the Code
It 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
Reply

Use magic Report

0

Threads

1

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2023-9-7 09:31:10 | Show all posts
The RaspTank issue with rpi_ws281x.py is a frequent occurrence and there are many methods to fix it. retro bowl
Reply

Use magic Report

0

Threads

2

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2024-4-15 16:49:49 | Show all posts
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
Reply

Use magic Report

0

Threads

7

Posts

32

Credits

Newbie

Rank: 1

Credits
32
Post time 2024-5-18 09:42:29 | Show all posts
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)
Reply

Use magic Report

0

Threads

4

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2024-5-28 17:49:44 | Show all posts
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.
Reply

Use magic Report

0

Threads

53

Posts

201

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
201
Post time 2024-5-29 17:07:47 | Show all posts
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)

Reply

Use magic Report

0

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4
Post time 2024-5-31 12:24:02 | Show all posts
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

Reply

Use magic Report

0

Threads

7

Posts

32

Credits

Newbie

Rank: 1

Credits
32
Post time 2024-6-2 05:52:11 | Show all posts
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
Reply

Use magic Report

0

Threads

7

Posts

32

Credits

Newbie

Rank: 1

Credits
32
Post time 2024-6-2 05:53:13 | Show all posts
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.
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules