I want to make a project that will preferably need 12 pwm capable outputs on an arduinotype chip. The idea is to make a box with twelve polystyrene blocks who move up and down through a pinballstyle mechanic. The polystyrene blocks are attached to metal rods which rest on springs and are pulled down by electromagnets. The magnets are activated in preprogrammed sequence by an arduino-type chip. To make movement smooth I would like to make use of pwm, but I can only find an arduino model with six capable outputs (Arduino Duemilanove), I want to avoid using two of these units. Does anybody have an idea for a work around or an alternative?
Thanks for the suggestion, I will have a good look at that model.
In between the chip and the magnets I will set up a stronger current/voltage and add a transistor for each used output, to accomodate the 100 mA needed per magnet.
Don't forget about the nice little ULN2803 Darlington Array chip. For $2 you get 8 pre-built transistor switches that have built in diode protection. It sure beats wiring up and testing all those transistors. Each channel can handle up to 500mA.
Good point on the total max switchable power. I'll have to keep that in mind.
I have just been using the ULN2803 to replace signal transistors so far, I haven't tried any really big loads.
For this application, I think the load was stated as 100mA per channel with 12 channels. You would need 2 chips anyway since each only has 8 channels, so it sounds like it would be 600mA per chip. Pretty close to the limit. You would want to heat sink them for sure. 3 chips of 4 channels each would probably be better. Since it's PMW, the lower duty cycle might buy you some margin. I'd probably try 2 chips and see how hot they get.
I find it much more fun to connect pins than to wire up a transistor and 2 resistors times 12, so I'd lean towards the chip solution. Others may have more fun building up the discreet components.
Could a basic signal transistor handle 100mA or would you need to go with something larger?
You would want to use a heat sink. It also comes in power pad surface mount packages that would be easier to use for high power. It can dissipate up to 3 watts.