You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
I tried to using PWM on firmware 1.18 to control a servo motor and it doesn't work.
With high frequencies the PWM-Signal was ok, on lower frequencies I didn't get any signal.
So I did some test with an oscilloscope and realized that I don't get a PWM-Signal when I use frequencies lower than 611 Hz.
Downgrading to firmware 1.17 solved the problem.
I used the ESP32 NodeMCU Development Kit.
Here's the code I used to verify this issue:
`import machine
import time
pwm = machine.PWM(machine.Pin(4), freq=1)
duty = 512
pwm.duty(duty)
PAUSE = 0.03
#Endlosschleife
while(True):
for freq in range(1,1000):
pwm.freq(freq)
print(freq)
time.sleep(PAUSE)`
With firmware 1.17 it works fine, with firamware 1.18 it doesn't.