I need 20 PWM on my mega.

Hi all,

I got a problem with not enough pwm for my project.

I got a Mega 2560. I was try to connect pwm with the 26 - 45 pin and i found it is not working. then i search the web. most of the people say mega only have 13 pin (1- 13 pin) for pwm. then i correct my sketch to use 1-13 pin. my sketch is working. but i need more pins. what can i do?

Thank you

You could use an external PWM chip. Have a look at the Playground for the TLC5940

ok thank you

You can also use a software PWM on the arduino or a software PWM on external shift registers:- http://www.elcojacobs.com/shiftpwm/