View Single Post
Old 05-05-2004, 05:48 PM   #10
Ricky327
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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.



How are you turning the PC on?

Its even easier with :

The ignition +12V, resistors and zener diode can be used to apply voltage directly to the serial ports. A customised fake UPS is setup up in the control panel to do the shutdown.
Ricky327 is offline   Reply With Quote