Pinball Advice
Topic last updated
19 Jan 2011, by
David Cornish.
7 replies
pinball
Mbed Community.
What is the best way to control about 20 lamps on a pinball playfield using mbed.
What I want is simple:
1 Ball hits switch -
2 Mbed registers switch x is closed
3 Mbed tells lamp x to turn on
I've tried connecting the lamps to the digital out pins through transistors. This hasn't worked.
Too little current going into base of transistor.
I'm a bit a an mbed noob.
Help my pinball machine come to life.
Cheers
Dave
Replies
The mbed output 3v3 / 40mA is more then enough to drive a Darlington . 40mA is anything but skimpy base drive .. at hFE= 2.500 min for a typical darlington you can count on driving theoretically tens of amps. The schematic probably need to be reconsidered.
Also pay attention that you cannot drive at 40mA all outputs simultaneously. There's a power dissipation limit of 400mA for mbed outputs. Use max 10 outputs at once or if the "drive" is smaller ..say 20mA use max 20 outputs .. and so on.
The LPC1768 can only drive 4mA before voltage falls of the edge.
40 mA is short-circuit current, not "drive-current"
Lerche
You're right .. but even at V0H=2V (enough for any darlington) the output is near 20mA .. enough again for this kind of drive.
20mA * 20 lamps.. I don't think that will work...
Here are my ideas.
For input a analog pin with a ladder of resistor . With a simple read and a simple operation we will know what switch is close. For output a maxims o microchip port expander in I2C . Only one condition : must be only one ball in pinball at the same time. The driver for lamp : integrated darlington ULNxxxx connected to port expander.
If this is OK I explain it more deep.
Please log in to post a reply.
Mbed Community.
What is the best way to control about 20 lamps on a pinball playfield using mbed.
What I want is simple:
1 Ball hits switch -
2 Mbed registers switch x is closed
3 Mbed tells lamp x to turn on
I've tried connecting the lamps to the digital out pins through transistors. This hasn't worked.
Too little current going into base of transistor.
I'm a bit a an mbed noob.
Help my pinball machine come to life.
Cheers
Dave