With reference to your schematic of post #14, please note that if you can find a switch with two contacts (common; No & Nc) then connecting the common to ground and the Nc to pic input and No to the gate of Pchan mosfet you can eliminate all the diodes.
All you need now is to assemble the circuit on a proto-board and see if it works.
Cheers
Al.
Bookmarks