I want to control a 12v line with a 5v TTL voltage. I used a transistor but the problem is, with a 5v input, I only get a 5v output. It seems that the transistor is not amplifiying the voltage as I thought it would do. I have +12v on the collector, the load between emitter and ground, and 5v on the base through a resistor. I only get 5v on the emitter. Is there any way I can do this with a transistor? I want to stay away from relays.