ESP32 PWM

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Alan_37
Posts: 173
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 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 172 times

BenR
Matrix Staff
Posts: 1895
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 491 times
Been thanked: 664 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: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 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