Originally, I had my MP3 box powered straight from the +12V line, and controlled it with the power switch on the inverter. That way, I could leave it running when stepping out of the car for just a few minutes. Of course, eventually I forgot to turn the thing off for the night, and found my battery dead the next day. That wasn't fun at all. So I decided to make a simple circuit to auto-power off the computer for me.A Power-Off Delay Circuit
This circuit delivers power to the computer as long as the key is in the ignition. After the key is removed, there is a delay of about 10 minutes before the power is cut. There's also a button in the dash to cut off the power immediately.
The circuit is very simple & cheap, as you can see here (also in PostScript).
IMPORTANT NOTE 1: there's a typo in the diagram - the "S" and "D" pins of the MOSFET are reversed.
IMPORTANT NOTE 2: 50 Ohms is for the first resistor is too small. Use 1 KOhm
All it takes is a standard relay, a diode, a capacitor, two resistors, and a MOSFET transistor. The circuit is connected both to a constant +12V source, and to a control line (Vacc). Vacc can be the "accessory power" line, or, in the case of my car, the underappreciated - but very useful - "+12V when the key is in the ignition" line. Voltage on Vacc charges up the capacitor and opens the transistor; this activates the relay and feeds +12V to the computer. When Vacc is no longer powered, the transistor stays open because the charged-up capacitor supplies voltage. Meanwhile, the capacitor slowly discharges via a resistor. Eventually, its voltage drops low enough to close the transistor and shut off the power relay. Alternatively, the capacitor may be discharged instantly by pressing the "cut power" button.
Some notes:
In fact, my circuit can be combined with a shutdown controller. It could be used to, e.g., provide an independent 10-minute delay, before letting the controller do its thing.
(UPDATED 27/10/00)
Relay: any generic SPST (single pole, single throw) or SPDT (single pole, double throw) electromechanical relay with a 12V coil, rated for at least 15 Amps @12V. A standard Bosch relay, as used in just about any car's electrical system, is perfect for the job. If you use the Bosch relay, the terminals marked 85 and 86 are the coil, +12V goes to terminal 30, and terminal 87 provides power to the computer.Parts list
MOSFET: 2N7000 or BS170. Any electronics shop should carry either of those. Here's links to some datasheets at Fairchild Semiconductors: 2N7000, BS170. Warning: MOSFETs are extremely sensitive to static discharge, so handle them carefully. Use a grounding strap if you've got one. Better yet, get a transistor socket, build the circuit around the empty socket, and insert the MOSFET only after everything else has been assembled & soldered.
Capacitor, resistors, diode: this is just a 12V, low-current application, so nothing special is required. Use generic components from any electronics shop. If you use a 150 Ohms resistor, make sure it's rated to 1W.
Wiring: use nice, thick, heavy-gauge wire to power the computer
- it has to be good for 20 Amps or so. And, most importantly,
put
a fuse on the +12V wire before the circuit!!! (Unless you
take power from some existing line that is already fused, such as the cigarette
lighter).
I've indicated the high-current wires with thick lines on my diagram.
The rest of the circuit is low-current, so thin flexible wiring will do
the job.
Screw terminals are convenient for attaching the thing to your
car's electrical system. I also mounted the capacitor and 5 MOhm resistor
on screw terminals, for easy replacement.
I've also hooked up a jog-dial volume control to my system.Other stuff
You can contact me by e-mail.