ESP32 machine.PWM

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
marestudio2004
Posts: 16
Joined: Thu Sep 30, 2021 9:45 am

Re: ESP32 machine.PWM

Post by marestudio2004 » Mon Dec 20, 2021 6:33 pm

Forth and back in small steps!
freq = 50
duty = (95-130) # from 95 to 130

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ESP32 machine.PWM

Post by Roberthh » Tue Dec 21, 2021 1:37 pm

I have tested these settings, and there is no sign of a substantial variation of frequency and duty rate. The larges frequency variation I could tell in about 15000 samples was 0.0001 Hz, and the largest duty cycle variation was 0.00004%. Which both is more probably caused by sampling noise then by the ESP32 itself.

marestudio2004
Posts: 16
Joined: Thu Sep 30, 2021 9:45 am

Re: ESP32 machine.PWM

Post by marestudio2004 » Tue Dec 21, 2021 2:10 pm

OK! Thanks a lot!
I'll have to try another servo!

marestudio2004
Posts: 16
Joined: Thu Sep 30, 2021 9:45 am

Re: ESP32 machine.PWM

Post by marestudio2004 » Tue Jan 25, 2022 6:45 pm

Dear,

the problem was in the Chinese servo motor that was not working properly,
by replacing the motor, everything works!

Thank you very much for the answers and time!

Post Reply