No trick to it, the black wire goes to ground, and the red wire to a power source that is on with the ignition switch.