Can i convert TTL square wave to DC voltage in order to drive a 5V relay switch? My project requires me not to use any external power supply. So the this is perhaps the only way to derive power from the input signal itself. I think a RC circuit should work. Please help me with a circuit diagram. assume frequency to be anything (say 5 khz).