-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Using ESP8266_new_pwm to improve performance #2621
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Comments
Have you actually checked if it is any faster or not? That code is a replacement for the SDK PWM-code, but the ESP8266 Arduino-core doesn't use the SDK PWM-code. |
I didn't know that, I didn't test it. It claims that is better than SDK PWM. |
Hi, I have tried the ESP8266_new_pwm on my system and indeed it works better. I don't see any flickering on LEDs. |
That's good to know. I'll give it a try myself, too, as soon as I have the time. |
You can get help by reviewing the link below. I have already asked about implementation and other useful questions; |
wouldn't it be better to get it included in the SDK if it is better? or do they not want it? |
@jrobeson The ESP8266 SDK isn't open-source, unlike the ESP32 SDK. You can, of course, ask them if they would like to improve on their PWM-functions, but it doesn't seem likely. Also, like I said, this Arduino-core for the ESP8266 doesn't use SDK-functions for PWM, so it'd have to be modified anyways. |
why doesn't it seem likely? |
@jrobeson Because they've been told about it several times. And their SDK has been sitting idle since March. |
@WereCatf did you ever get around to testing that new pwm? |
@diffstorm does the new pwm still have merit vs. the current pwm implementation? |
@devyte No, I completely forgot about this whole discussion. For my own purposes, the PWM-mechanism that's already included has worked fine, but then again, I haven't used it for anything demanding. |
@devyte I think current PWM implementation works better than the one in the link. |
To be honest, to properly gauge if it is better, worse or equal in performance, someone would have to capture multiple proper oscilloscope-output at different frequencies and duty-cycles on both implementations, and no, a single capture at a single frequency ain't enough. Until someone provides such proof one way or another there's no point in debating this topic. |
Hi,
Can you add the following library to improve pwm performance?
Problem:
I'm using 3 pwm outputs to drive an rgb led and sometimes I see kind of flickering (leds goes off/black then back to its color momentarily).
Init code:
Drive code:
The text was updated successfully, but these errors were encountered: