Page 2 of 3
Re: PWM FC component for ESP ?
Posted: Wed Oct 09, 2024 10:12 am
by medelec35
Hi thank you for the spot.
I have edited my post.
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 11:31 am
by Xbiotec
Hello,
I need to deliver a sample PCBA and firmware to my customer Thursday morning so I need to be able to change the frequency ASAP
thx
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 1:02 pm
by BenR
Sorry for the delay.
Hopefully should work for you now. Note you need to set the frequency after the PWM output is enabled otherwise the enable function will default back to the frequency set in the component properties.
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 3:27 pm
by Xbiotec
thx Ben , I will test it now

Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 3:48 pm
by Xbiotec
hi Ben,
The PWM component you modified is PWM (CAL) isn't ?
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 4:07 pm
by medelec35
Hello.
No, it is the PWM (internal) component, and the digital simulation had also got broken, so that has now been fixed.
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 4:19 pm
by Xbiotec
ok
but when I check for update, the component new version is cal_pwm.

- update.jpg (13.12 KiB) Viewed 4137 times
and what is duty cycle range now for ESP32 ?
Set frequency do not work on FC PWM (internal) component.
Please also check duty cycle because I need to setdutycycle10bit to 32 to get 50% duty cycle .
What must be the max value for period overflow ?
32 is very low!
The modification you made are also for ESP32 Wroom ?
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 5:07 pm
by BenR
Hello,
The PWM period property can be set up to 65535 on the ESP32, The duty can be between 0 (full off) and the period (full on).
Re: PWM FC component for ESP ?
Posted: Tue Oct 15, 2024 6:20 pm
by Xbiotec
the update work's very well
thx Ben
Re: PWM FC component for ESP ?
Posted: Wed Oct 16, 2024 9:03 am
by Xbiotec
hello Ben,
I want to use 8 PWM output, the frequencies and dutycycle could be differents.
On the print screen below only 4 are setup for the moment.
Channel used are 1 to 4
On PWM component it's wrote that all PWM linked to the same timer will share same periode and prescaler .

- Capture d’écran 2024-10-16 095007.jpg (49.94 KiB) Viewed 4079 times
I have set all period overflow to 65535. ok for me
so the prescalers will be same
The problem is that when I change the frequency:
- on PWM:0 timer:0 pin:A, , the frequency also change on PWM:0 timer:0 pin:B
- on PWM:0 timer:1 pin:A, , the frequency also change on PWM:0 timer:1 pin:B