.: Super Bright LED driver with I-PAC connections
Feb 20th, 2003

 

This simple circuit was built to allow super bright LED’s to be used in my MAME cabinet. There are connections for Num Lock, Caps Lock, and Scroll Lock (controlled by I-PAC) and nine “always-on” LED’s. Although the I-PAC supports standard LED’s via its onboard LED connections, standard LED’s are fairly inadequate for internal button lighting and other cabinet lighting. Super bright LED’s have many advantages over incandescent lights, including much lower heat output and a nearly limitless lifespan. Super bright LED’s are designed to operate with a 15-20mA current, so a secondary driver circuit would be required because this current exceeds what is available through the I-PAC.

In my example the I-PAC isn’t powering the LED’s, but it is still controlling the keyboard LED’s by connecting them to a general purpose PNP transistor. This is accomplished by connecting a wire from the appropriate button inputs from the I-PAC to the base lead of the transistor. The correct I-PAC button inputs for LED’s are as follows:
  Player 1 Button 8 – Num Lock
  Player 1 Button 7 – Caps Lock
  Player 2 Button 7 – Scroll Lock

 

In MAME the keyboard LED’s are typically used in older “classic” games (Tempest, Centipede, Missile Command, etc.) and assigned as follows:
  Num Lock – Player 1 coin up
  Caps Lock – Player 2 coin up
  Scroll Lock – Miscellaneous actions (not often used)


The always-on LED connections can be used for various lighting uses in a cabinet such as coin doors, trackballs, and buttons. The driver board I constructed allows for 9 always-on LED’s, but that could easily be increased by including additional resistor arrays and terminal blocks. Since the LED’s are wired in parallel, you could literally connect hundreds of them to a power supply without problems.

 

 

In lieu of a true electrical schematic, I drew more of a physical one. Hopefully this will be less confusing to the not-so-electrically-inclined folk such as me. :)

 

 

Supply Voltage and Ground

I designed the driver board to be very easy to install into my cabinet. The use of screw terminals and a common hard drive style power connector allow this board to be installed with minimum fuss. I had considered using an “A” style USB receptacle for the power connection, but I settled on connecting the driver board directly to the PC power supply instead of the motherboard in case there was a short on the board. A safer design for this circuit may be to include diodes if you go with a USB connection.

Due to the parallel connection of the LED’s, all the cathode legs can be connected to a single ground wire. I opted to use a 3 position terminal block in case I wanted to run a separate ground wires to the control panel and coin door locations, for example.

The +12V and second Ground pin was removed from the power connector on the driver board because they were not needed and I didn’t want bare pins sticking out (Murphy’s Law….).

Note that the always-on terminals could be used for more than just LED’s. They could be used to power trackball optics connected via a mouse hack if needed.

-

The image on the right is mirrored so the connections can be easily matched to the components in the left photo.

 

 

Calculating the Resistor Values

The value of the resistors used for limiting current to the LED is determined by the style of LED’s used. In my example, I set up the driver board to operate Red super brights @ 20mA. To determine the resistor value you need, first subtract the LED forward voltage value from the supply voltage value. Then you divide that number by the LED operating current to give you the limiting resistor value in Ohms. This is how mine looks:

Supply voltage = 5V
LED forward voltage = 1.9V
LED current = .020A

(5V – 1.9V) / .020A = 155 Ohms
The closest common value I found for the resistor array was 150 Ohms, so that’s what I used. Here are some typical values of different colors of super bright LED’s:
  S-B Red: 1.7 ~ 1.9V
  S-B Green/Yellow: 2.0 ~ 2.2V
  S-B White: 3.5 ~ 3.7V
  S-B Blue: 3.5 ~ 3.8V

A possible enhancement to this driver circuit would be to have a couple of banks of different value resistors, and by moving jumpers the board could support different types of LED’s. Hmmm… :)

 

 

The Transistors

Any style of PNP transistor should work in this circuit. The ones in my circuit were used because I already had them. Perhaps there is a “more correct” transistor to use for this function, but the general purpose 2N4402’s are working just fine. The emitter lead is connected directly to the supply voltage (+5V), and the collector lead is wired to the current limiting LED resistor.

A 1K resistor was included in the connection coming from the I-PAC to limit the base current to 5mA which is quite a bit below the rated maximum value for this transistor. As with the transistor, this particular value of resistor was used because I already had them.

 

 

Costs

While I already had quite a few of the parts for this circuit, I have put together a cost table based on current unit prices if you were to purchase the components. I chose to use www.mouser.com for pricing (except the perf board), but other large electronics retailers such as www.newark.com and www.digikey.com should be very similar. Expect to pay more if you shop at Radio Shack for all these parts.

DESCRIPTION QTY EACH EXTENDED
12 Position screw terminal 1 4.40 4.40
3 position screw terminal 2 1.11 2.22
Transistor 2N4402 3 .11 .33
10 pin bussed resistor network (array) 1 .29 .29
150R resistor 3 .05 .15
1K resistor 3 .05 .15
4 pin power connector 1 .78 .78
Perf board 1 3.99 3.99
Total     $12.31

You can see that more than half of the cost of my driver board is in the screw terminals. Although they aren’t necessary for operation of the circuit, this is how I wanted to connect my LEDs. To save a few dollars, the LEDs could be wired directly to the limiting resistor leads.

 

 

-

The image on the right is mirrored so the connections can be easily matched to the components in the left photo.

 

 


Red LED in red button
(1.9V 1300mcd)

Red LED in red button
(1.9V 1300mcd)

From left to right:
Red LED in white button
(1.9V 1300mcd)

White LED in white button
(3.7V 1700mcd)
Only running @ 10mA!

Red LED in red button
(1.9V 1300mcd)


From left to right:
Red LED in white button
(1.9V 1300mcd)

White LED in white button
(3.7V 1700mcd)
Only running @ 10mA!

Red LED in red button
(1.9V 1300mcd)

 


From left to right:
Red LED in white button
White LED in white button

The P2 button is actually a WICO brand.
A little darker white in color and denser plastic.

     
Reference Links

I-PAC - www.ultimarc.com

Erik Ruud - http://erikruud.freeservers.com/arcade/buttons.html
(I had to have illuminated buttons after seeing this page!)

Carsten Carlos - http://www.retrospieler.de/
(Another transistor-based LED driver project!)

 

     

 

Oscar Controls
general information :: Email for information
order/sales information :: Email Sales