ESP32 machine.PWM
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
ESP32 machine.PWM
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?
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
The PWM module has been rebuild recently to support more independent channels. Which firmware version do you use?
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
Re: ESP32 machine.PWM
I used esp32-20210902-v1.17.bin
Re: ESP32 machine.PWM
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!
v1.18 - containing this change - should be released soon!
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
Re: ESP32 machine.PWM
OK, thanks, I will try new vesion!
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
Re: ESP32 machine.PWM
Is there a solution before the implementation of this version?
What's going on with this:
https://github.com/pycom/pycom-micropyt ... x/releases
What's going on with this:
https://github.com/pycom/pycom-micropyt ... x/releases
Re: ESP32 machine.PWM
These are firmware versions for Pycom devices, not generic ESP32 devices.
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
Re: ESP32 machine.PWM
That there is a solution?
Re: ESP32 machine.PWM
Do you have a Pycom module? If no, try the most recent daily build of the firmware.
-
- Posts: 16
- Joined: Thu Sep 30, 2021 9:45 am
Re: ESP32 machine.PWM
I have esp32-20210902-v1.17.bin.