Multiple pwm pin

how many pwm pin can be manged by cpu simultaneously ?.

i need to manage the 2 pin at same time . freq does't matter only duty cycle i need change .

i need to mange control 2 different part and i will use millis() also inside the program . hope it's doesn't affect .

Depends on the CPU. An UNO / Nano / mini can manage 6 hwPWM pins, for which it uses 3 timers. A Mega can manage more. ESP boards use swPWM but can have it on any pin. The use of the timers may be a limitation if there are other parts of a program that may use them as well.

The UNO can do two PWM channels per timer. The Mega can do three channels per timer.


brings you to