Leds on Outputs for PWM

Hi All, I have question regarding the outputs of the Arduino.

I have set up my Arduino to use outputs 3,5,6,9,10,11 for PWM. That is ok. I would like to control more than 6 leds this way.

Q. Is it possible to use all 13 outputs in some fashion to simulate/emulate the 6 outputs listed above in a manner similar to PWM?

Oaxacamatt1

You can generate software PWMs on non PWM pins just by manually toggling the pin between high and low at the desired frequency with the desired duty cycle. Doing this for a lot of pins in parallel might be tricky, but you can probably do it without too much difficulty using polling or interrupts.

  • Ben