categorical-sectional icon indicating copy to clipboard operation
categorical-sectional copied to clipboard

Trouble Getting ws281x LEDs to Work with Code

Open Amoahkuc opened this issue 2 years ago • 7 comments

I wired up a 382 Neo-Pixel Sectional of the lower 48 states. The check config script runs and is pulling the METARS from all airports, and can run the test neopixel script and get 382 LEDSs to cycle through RGB and then color wheel. When the check light wiring or controller script is ran the LEDs do not respond, but the scripts seem to be running fine. Have tried modifying the config file “mode”: ws281x, and added “gpio_pin”: board.D18. I even tried hard coding board.D18 in the renderers script. Any ideas? Thank you

Amoahkuc avatar Oct 25 '22 16:10 Amoahkuc

in config.json, it should have... ... "mode": "ws281x", "gpio_pin": 18, "pixel_count": 382, ...

dman776 avatar Oct 25 '22 18:10 dman776

in the log, you should see: get_renderer():39: Setting up WS281x on Pin18 for 382 lights

dman776 avatar Oct 25 '22 18:10 dman776

Thank you for the quick reply. Have made the changes to the config file, and am getting the same results. Also tried modifying the airport file from WS2801 to WS281X. 2A8B1ADF-F498-4FB9-9853-1FEDF5441F0F 0C7EA151-EB25-4356-9989-6F43A7221D39 81CFAF21-7AF9-479A-BF33-B805A770399F Thank you,

Amoahkuc avatar Oct 25 '22 23:10 Amoahkuc

in the airport file, it needs to be lower case "ws2801"

dman776 avatar Oct 26 '22 00:10 dman776

Have changed the airport file to be all lower case. Deleted the categorical-sectional folder from the home directory and re-installed fresh from GitHub, but am still getting the same results on check-lights and controller scripts. Is there something I could be missing to get these to work with ws281x controller? 3FE89725-8513-4E53-8D4A-58CA5499EBF3 24753BCB-E781-4F72-A151-0D791ED5D324 515F69D7-6911-47CF-8375-6FE3EC458006

Amoahkuc avatar Oct 26 '22 01:10 Amoahkuc

Are you running as root? Ie. sudo python3 controller.py

dman776 avatar Oct 26 '22 01:10 dman776

I am logged in as sudo su in the terminal before I launch script using python3 “script name.pay” From the categorical sectional folder, type “sudo su”, then “python3 check_light_wiring.py”. If I try as user pi, I get a permission/access denied error.

Amoahkuc avatar Oct 26 '22 01:10 Amoahkuc