number of PWM channels on esp32 wroom

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
micropyro
Posts: 3
Joined: Sun Jan 31, 2021 1:37 pm

number of PWM channels on esp32 wroom

Post by micropyro » Fri Feb 05, 2021 12:32 pm

Hi,

I am having problem setting up more than 6 PWM channels. Based on the description of ESP32 WROOM board it says it can support up to 16 LED PWM (https://en.wikipedia.org/wiki/ESP32#Features) however then I try to setup more than 8 I get an error

Code: Select all

ValueError: out of PWM channels
I am confused. Is it a limitation of micropython or board itself? And if it is a limitation of micropython is there a quick way to increase the limit?
Thanks

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: number of PWM channels on esp32 wroom

Post by mattyt » Tue Feb 09, 2021 11:09 am

This is a known limitation of the ESP32 port - MicroPython is not currently exposing all of the PWM capabilities of the ESP32.

The ESP32 port is intended to receive more attention in the next release and adding better PWM support is a common request so I think there's a good chance this will be addressed soon...

CaCO3
Posts: 5
Joined: Sat Aug 07, 2021 9:51 pm

Re: number of PWM channels on esp32 wroom

Post by CaCO3 » Sat Oct 02, 2021 8:15 pm


Post Reply