I have a raspberry pi 2 model b and I am trying to build a digital on of switch, which means that I would like to get rid of this physical one ( Currently it controls a police type flashing light)
and Id like the light to switched on/off using software and GPIO pins. I have a breadboard with all the necessary equipment (wires, resistor and etc) . Could anyone please draw or show me basic circuit of how I could build it?
The power comes from a battery pack inside the light itself