Pages: [1]   Go Down
Author Topic: Easy way to increase the PWM outputs?  (Read 434 times)
0 Members and 1 Guest are viewing this topic.
London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there an easy way to increase the number of PWM outputs? I want to be able to control 4 x RGB LED's, which would need 12 PWM outputs.
Logged

Portland, OR, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 78
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The AVR chip used in your Arduino only but a limited number of PWM outputs available.  Some of them can't be used because the associated timer is already being used for other purposes.  The only alternatives, then, are to implement PWM in software (not very precise) or add an external chip that implements PWM.  The Pak V from Al Williams Computing is one example of such a chip but there may be others as well.
Logged

Don

ZBasic Microcontrollers
http://www.zbasic.net

London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks great, but is pretty expensive. Sure it would allow an extra 3 RGB LED's to be connected but it's more expensive than the Arduino itself.
Logged

SF Bay Area
Offline Offline
Edison Member
*
Karma: 10
Posts: 1235
Arduino Ninja
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Check into the TLC5940 chip, it's been discussed many times in these forums and there's a library for it.

Or...click my sig.
Logged

Unique RGB LED Modules and Arduino shields: http://www.macetech.com/store

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6378
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can do multiplexing with PWM outputs driving the individual LEDs, but it might be a bit tricky.  Ideally, you want the multiplex frequency to be much lower than the PWM frequency.
Logged

London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I've order 2 x TLC5940 chips to have a play with.
Logged

Pages: [1]   Go Up
Jump to: