A easy thing to do is to isolate the 2 circuits with optoisolators. Make a board (or use a blank protoboard) and use optoisolators to cross an isolation barrier. Have any controls on one side, and all ther power switching on the other, physically separated. A separate power supply for the power side ( no connection at all, and a separate low voltage supply for the controller) and keep the output wiring separate, in a loom not shared with the controller, and preferably shielded with a woven braided cable sheath connected to the grounded case.