Using a mechanical latching relay like the PCB lacthing relay pictured below on the left and an SPDT relay, you can
use a single negative output to alternately lock and unlock the doors. The mechanical latching relay only requires it's
coil to be momentarily energized to change and maintain the opening or closing of it's contacts. The SPDT relay
will provide a dedicated negative output for lock when the coil is energized and a dedicated output for unlock when it is not energized.
Nissan Maxima 1995 - 1997 Door Locks, Double Ground Pulse Relay Diagram
If this vehicle has a factory security system, a double ground pulse to the Green/Yellow
(factory disarm wire) wire will unlock all doors. Brown wire will only unlock driver's door
(alternating 12 V+). Pulse(-) to Lt. Green/Red will lock all doors.
Toyota with Child Safety Door Lock System
Locate the child safety wire in the same harness as the lock and unlock wires.
This wire will be different colors (see below) in different models and will
show ground until the lock from the switch is activated. This is a
three wire system
with an additional wire that must see ground during unlock for all of the doors
to unlock. An additional relay may not be required. This will depend on the
outputs of your unit. If not needed, connect the unlock output to the wires shown
on terminal #30.