ESP32 PWM

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Alan_37
Posts: 118
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

ESP32 PWM

Post by Alan_37 »

Hi, I am trying to enable a simple PWM channel on esp 32 but it's not working
and I get the following message from the serial output.



.[0;31mE (13798) MCPWM: C:/esp-idf/components/driver/mcpwm.c:202 (mcpwm_set_duty):MCPWM DRIVER NOT INITIALIZED.[0m
.[0;31mE (13898) MCPWM: C:/esp-idf/components/driver/mcpwm.c:202 (mcpwm_set_duty):MCPWM DRIVER NOT INITIALIZED.[0m
Attachments
AC_Tester.fcfx
(13.34 KiB) Downloaded 96 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 PWM

Post by BenR »

Hello,

Pins B2 to B7 are all input only on the ESP32 devices.

Please can you try a different pin to see if that solves the problem for you.

Alan_37
Posts: 118
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

Re: ESP32 PWM

Post by Alan_37 »

Hi Ben

Yes, that was the problem now PWM working fine.

Thanks for your help.

Post Reply