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

GPIO Settings - Enabling GPIO handler #761

Closed
wokkeltje13 opened this issue Apr 7, 2022 · 11 comments
Closed

GPIO Settings - Enabling GPIO handler #761

wokkeltje13 opened this issue Apr 7, 2022 · 11 comments

Comments

@wokkeltje13
Copy link

I want to use external leds but the moment I enable "GPIO Settings - Enabling GPIO handler" no led is working, even if I select to use GPIO4 (built in led) this is not working. When I disable GPIO settings, the interna led is working correctly.

Am I doing something wrong? or is this an issue?

@wokkeltje13
Copy link
Author

forgot to mention, I am using latest build: master - v10.5.2

@jomjol
Copy link
Owner

jomjol commented Apr 7, 2022

The settings for 2 external WS2812 LEDs looks like the following:

grafik

It is working on 3 devices w/o any problems.

@wokkeltje13
Copy link
Author

This is how I tested
image
, but the leds are not working, even just enabling GPIO4 does not work with only the build in led.

@jomjol
Copy link
Owner

jomjol commented Apr 7, 2022

I assume you have connected the WS2812 to GPIO12. Then I assume a hardware failure. With this setting my systems are working without any problems.

@wokkeltje13
Copy link
Author

but should this config not just work with the build in led? Same as without the GPIO settings enabled.
image

@jomjol
Copy link
Owner

jomjol commented Apr 7, 2022

It should work, but there is no reason to use this. The normal setting is okay for this. Therefore I have not testet it.

@wokkeltje13
Copy link
Author

as a troubleshooting step, I tried the GPIO4 way to be sure and this is also not working. So I was thinking something is wrong in my config.

@EmmanuelP
Copy link

I had the same issue.

I guess it was because I have edited the configuration in expert mode, and saved it. When you edit the configuration the first time, PWM duty resolution entry is blank. May be a wrong value is written in config.ini.

I have manually entered 8 as PWM duty resolution, and that made the external LEDs work.

@wokkeltje13
Copy link
Author

I had the same issue.

I guess it was because I have edited the configuration in expert mode, and saved it. When you edit the configuration the first time, PWM duty resolution entry is blank. May be a wrong value is written in config.ini.

I have manually entered 8 as PWM duty resolution, and that made the external LEDs work.

tnx, the PWM value did the trick.
For other users it would probably be nice if this value had a correct default value or if you could see this value in the normal config window (without the need for advance config)

@westfalenyeti
Copy link

Oh my goodness, that made my day!
Thank you so much @EmmanuelP for the hint to the PWM Value, and thanks @wokkeltje13 for asking the question!
Since about 4 weeks i was searching for a reason, why the external LEDs stopped working, even after exchange of the LEDs and the ESPCam, but using the same SD-card :)

@jomjol
Copy link
Owner

jomjol commented Apr 15, 2022

Create, that you found the topic. The default value is "10". I just tested different savings and configurations, but could not reproduce this problem. Maybe a manual change for some unkonw reason. I close this issue.

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

4 participants