Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

PWM on frequencies lower 611 Hz don't work on firmware 1.18 #264

@Kampfzwerg87

Description

@Kampfzwerg87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions