Esp32 wroom 32 pwm scale to duty

solartone
Posts: 1
Joined: Mon Feb 02, 2026 3:42 pm

Esp32 wroom 32 pwm scale to duty

Postby solartone » Mon Feb 02, 2026 3:52 pm

Is it possible to scale the resolution of say 12bit (4095) to a duty of 0-50%, rather than full duty of 100%.
If so how is this achieved.

Sprite
Espressif staff
Espressif staff
Posts: 10596
Joined: Thu Nov 26, 2015 4:08 am

Re: Esp32 wroom 32 pwm scale to duty

Postby Sprite » Tue Feb 03, 2026 3:14 am

Why not simply pick a resolution that is one higher (13-bit) and only use the 0-50% values as an input?

Who is online

Users browsing this forum: Google [Bot] and 14 guests