PWM on ESP32 PICO v4


When i uploaded the pwm example code for testing purpose it just simply doesnt work. I opened the serial monitor and the board just constantly restarts itself. When i remove the MICROS from the expression it starts working but the resolution is too low for my pwm project.


Hello @Hartbinder,

Zerynth PWM driver uses 15bits, so the maximum frequency is around ~2.5kHz.
This allows a great selection of duty cycles but the trade-off is on maximum achievable frequency.

This is a choice made in the driver, though not recomended, this can be configured in .zerynth2/dist/r2.2.0/vhal/xtensa-lx6/esp32/vhal_pwm.c


Thank you for your fast reply it helped a lot