ESP32, LEDC ledcWriteTone fuction #7110
Replies: 5 comments 1 reply
-
Hi, I want to generate 10Hz(100ms)~~100Hz(10ms) PWM signal. Need to have 0.01ms(accuracy) resolution. I can update the frequency in real-time without any interference… When I try to use "ledcWriteTone", it causes the interference based on how fast I update it... Please let me know how to configure LEDC PWM output? Thanks, Christie |
Beta Was this translation helpful? Give feedback.
-
Please, Can you help with answer @P-R-O-C-H-Y? |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried ""ledcWrite" to change the duty of PWM on ESP32-WROOM-32E and found the resolution is 10 only even when I set ti to 16... |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you very much... |
Beta Was this translation helpful? Give feedback.
-
Does the ledcWriteTone have an associated method to turn off the tone generation? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using "ledcWriteTone" to change the frequency of PWM and found that the frequency is not stable...
I checked on website and saw "ESP32, frequent calls to ledcWriteTone function will lead to inaccurate output".
It is fixed or there is ant suggestion?
Can I use "ledcChangeFrequency(PWM1_Ch, (PWM1_Freq/PWM1_DutyCycle), 8);" to do so? I tried it and get error "'ledcChangeFrequency' was not declared in this scope".
How to fix this error?
Thanks,
Christie
Beta Was this translation helpful? Give feedback.
All reactions