I normally use a switch like in this schematic http://www.rentron.com/Micro-Bot/Schematic.htm