View Single Post
  #9   Spotlight this post!  
Unread 20-05-2008, 20:25
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Selecting a microcontroller

Don't base your chip choice on current-handling capacity. To switch an LED on or off, you can control a simple transistor (like a 2N3906, about a dime each, handles 100 mA easily) sinking just a few milliamps from the microcontroller.

If you want to control them linearly, that is, more than on or off but also 'in-between', then you can pulse them at varying duty cycles, or bias the 3906 for linear operation.

An analogy is controlling motors: we use Victors instead of the MC itself.

If it is a three-color LED (R, G, and 2xB is common), EACH of those needs 20 mA, or 80 mA per (internal) device. 6 x 80 = 480 mA.

Don
__________________

I am N2IRZ - What's your callsign?