Schematics Battery Meter for Pinball Machines

The circuit is designed to be fitted into a small box and then fitted into your backbox (the exact choice of position is yours). Only 3 wires are required – one for the battery +v, one for the supply +5 volts from the MPU board or power supply, and a common return to the ground. The circuit is designed for 4.5-volt battery packs (3 cell x 1.5 volts). The circuit gives level indication using 3 LEDs – one green (good), one amber/yellow (mid) and one flashing red LED indicating low battery power – 3.2v or less approx.

I think a 1.3-1.5 volt drop should be enough warning – I can’t gauge the drop-out voltage for CMOS memory standby in WPC games because of the ASIC, so, I’ve gone for what you see here.

Theory of operation

3 comparators compare the incoming battery voltage against 3 reference voltages provided by 3 potential dividers (see schematic), the 3 comparators directly drive the LEDs by sinking current to ground (internal). On power-up, the Green LED will always be on indicating good battery power. As the battery voltage drops, the amber LED will light, followed by the red flashing LED, the previous LED’s remain on until all the LED’s are lit.

I designed the circuit in this manner to cut down the component count and make the building easier. If you wish to modify the circuit so that LED’s will extinguish one after the other – I suggest you use a 74HC03 quad NAND gate with open-drain outputs to sink the LED current, and, who’s input’s is switched by next comparator in sequence thereby turning the previous gate off (I would have given the schematic details here but I don’t have the IC handy to incorporate into the design at the time).

IMPORTANT NOTE: If your battery pack provides 4.21 volts or greater when new then all the LEDs will remain off. In most cases, new batteries do not always put out their specified voltage – a small voltage drop is usual.

Tools

A decent soldering iron, a side-cutter, a small flat blade or Philips 0 screwdriver, a digital voltmeter (DVM), or oscilloscope are all you need.

Schematic

Okay, let us make a start – the circuit schematic:

[Circuit copyright – Clive Jones 7/1996]

339/n = connect to LM339 comparator pin “n”

[Comparator Voltage References]

Schematic Diagram, circuit diagram, diagram, electronics diagram

[Power inputs and decoupling]

Schematic Diagram, circuit diagram, diagram, electronics diagram, Battery Meter for Pinball Machines

[Comparators and LED drive]

Schematic Diagram, circuit diagram, diagram, electronics diagram, Battery Meter for Pinball Machines

Pretty simple eh?

The potential divers – R1+R2, R3+R4 and R5+R6 provide the reference voltages. If you wish to modify the circuit to output different references, then the potential divider voltage can be given by the formula:

   5(v) x R2
   ---------
    R1 + R2

Building instructions

DO NOT FIT THE 339 COMPARATOR UNTIL THE VERY END!

The circuit should fit on a board 2″x 2″. Build the potential dividers/voltage references first, supply them with +5 volts and ground (don’t forget capacitors C1/2), and measure the output – they should be approx the figures given.

Next:- add a 14 pin socket (absolutely vital) to the board and run the reference voltages to the correct pins according to the schematic, then +5 volts and ground – now measure the voltages at the socket to ensure they’re present.

Next:- add R7-R9 to the board at the pins specified and link the other 3 ends together.

Next:- Build the following battery failure simulator on another small board then jumper the output to the Vbat line where R7-R9 are joined together:

[Note: – I had to do this because I don’t have two years available to wait for batteries to fail!!!]

Schematic Diagram, circuit diagram, diagram, electronics diagram, Battery Meter for Pinball Machines

Next:- trim the 10k linear pot and observe voltage changes at 339/5,7 and 9.

Next:- add the 330 ohms LED current limiting resistors R10-R12 followed by the LEDs to the board (or mount them on small fly leads for fitting to the box cover).

Last but not least – add the LM or CA339 quad comparator and power up. You should have the green LED on (exception, battery >4.21v) – now rotate the 10k pot and the LED’s should light in sequence – green, amber then flashing red. If they do not then power down and CHECK YOUR CONNECTIONS.

If the circuit works correctly then removed the Vbat sim. and add the 3 fly leads to allow connection to the MPU board of your game. I suggest you use a red wire for +5 volts, a black wire for ground, and another wire of your choice for the Vbat line.

Add all the bits into a little box and mount the box onto the backbox wall. I suggest that you actually drill holes in the cover for the LED’s to protrude through, or, connect them to the board with small fly leads and glue them into the box cover.

Solder the fly leads to the MPU board with the POWER OFF. Allow the board 2 minutes before soldering in the leads as the onboard capacitors may still hold a charge.

USE COMMON SENSE! – don’t tap the +5 volts for the circuit from a chip leg – find a free pad on the board that you can tap from. Wire the battery power from the pack were it enters the board and returns to a suitable earth point.

KEEP IT NEAT! – Take pride in your work – make the fly leads tidy – use tye-wraps and lay the leads out nicely in the wiring loom, even better, use an in-line connector so that the remote battery indicator circuit can be disconnected from the board without having to desolder.

Parts Listing

All resistors are 1/4W 5%, all capacitors are 50 volts.

R1,R3,R5,R7,R8,R9,R13,R14 1K ohm resistor
R2 1K8 ohm resistor
R4 3K0 ohm resistor
R6 5K6 ohm resistor
R10,R11,R12 330-ohm resistor
IC1 LM339 or CA339 Quad Comparator
LD1 Green LED
LD2 Amber LED
LD3 Red flashing LED (suggested).
P1 10K ohm linear potentiometer (or a 20k lin)
Polypropolene box
14 pin DIL socket
C1,C2 O.1u Farad capacitor (mica)
Optional 4 pin line connector
Vero-board or square-pad board

If you’re good with electronics you could add a small piezoelectric buzzer for an audible alarm.

One thought on “Schematics Battery Meter for Pinball Machines

Leave a Reply

Your email address will not be published.