View Single Post
Old 05-05-2004, 11:08 AM   #9
Gutter
FLAC
 
Gutter's Avatar
 
Join Date: Dec 1999
Location: Casina, Italy
Posts: 900
For those who don't wish to use such a complex controller, the same task can be accomplished with a 12V relay, a diode, and some C code.

I have connected a 12V relay connected to two pins on my parallel port and powering it with the car's power. When the car is on, the voltage is 14.4V and the relay closes the circuit shorting out the two pins. When the car is off, the voltage drops to around 10V and the relay opens the circuit.

I then have some simple software that monitors for changes to those pins. It does nothing when the pins are shorted, but when the relay opens, it initiates a shutdown process.
__________________
Don't Click
Gutter is offline   Reply With Quote