Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble Getting ws281x LEDs to Work with Code #47

Open
Amoahkuc opened this issue Oct 25, 2022 · 7 comments
Open

Trouble Getting ws281x LEDs to Work with Code #47

Amoahkuc opened this issue Oct 25, 2022 · 7 comments

Comments

@Amoahkuc
Copy link

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

@dman776
Copy link

dman776 commented Oct 25, 2022

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

@dman776
Copy link

dman776 commented Oct 25, 2022

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

@Amoahkuc
Copy link
Author

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,

@dman776
Copy link

dman776 commented Oct 26, 2022

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

@Amoahkuc
Copy link
Author

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

@dman776
Copy link

dman776 commented Oct 26, 2022

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

@Amoahkuc
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants