View: 1076|Reply: 1

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

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

Points Rules