OK but just to clarify, can I connect the ground of the capacitor and 5v signal together and the signal to base to switch a high voltage?What??? That makes no sense whatsoever. Provided you include a resistor which will limit the current to a safe value, my advice to you would be to stick with the relay.