the transistor is pnp. the emitter is connected through a relay coil to a neutral ground. the positive voltage is 5 volt. the negative voltage will ether be 12 or 5.
the transistor is pnp. the emitter is connected through a relay coil to a neutral ground. the positive voltage is 5 volt. the negative voltage will ether be 12 or 5.
Your connection seems strange to me. Here is what will happen. Your method works like an emitter-follower, with no gain. I think you want the second circuit, which switches with some gain...