Page 1 of 3

ESP32 machine.PWM

Posted: Sat Dec 18, 2021 4:52 pm
by marestudio2004
Hi everyone, I have an ESP32 board for one home project, it is a pellet burner.

Since I use several time functions (for pwm control of the air turbine, for the servo motor that starts the burner valve and for delays in the execution of certain commands ...) I get an error with the servo. I guess the same timer is used for all these functions, and that makes it a problem.

Which timer (there are 4 in esp32 - 0,1,2,3) uses MACHINE.PWM and TIME module by default and is my supposition good?

Re: ESP32 machine.PWM

Posted: Sat Dec 18, 2021 4:57 pm
by Roberthh
The PWM module has been rebuild recently to support more independent channels. Which firmware version do you use?

Re: ESP32 machine.PWM

Posted: Sat Dec 18, 2021 10:05 pm
by marestudio2004
I used esp32-20210902-v1.17.bin

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 3:13 am
by mattyt
As Robert mentioned, PR #7817 added improved support for ESP32 PWM. It was merged on the 21st September (ie after v1.17) so, for now, you'll need to pick up a nightly build.

v1.18 - containing this change - should be released soon!

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 12:13 pm
by marestudio2004
OK, thanks, I will try new vesion!

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 12:20 pm
by marestudio2004
Is there a solution before the implementation of this version?

What's going on with this:

https://github.com/pycom/pycom-micropyt ... x/releases

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 12:46 pm
by Roberthh
These are firmware versions for Pycom devices, not generic ESP32 devices.

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 3:56 pm
by marestudio2004
That there is a solution?

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 4:01 pm
by Roberthh
Do you have a Pycom module? If no, try the most recent daily build of the firmware.

Re: ESP32 machine.PWM

Posted: Sun Dec 19, 2021 10:09 pm
by marestudio2004
I have esp32-20210902-v1.17.bin.