Electronic – Using transistor as switch in the “middle” of the circuit

circuit-designnpnswitchestransistors

I have an rather complex circuit with button micro-switch in the middle (actually, it's RF remote control with 3 buttons).

I would like to be able to simulate the micro-switch click on it with one of the pins from my micro-controller.

To do so, I decided to install transistor in parallel manner. The problem is, micro-switch is neither the last nor the first element in circuit. And as I recall transistor needs to be connected to ground (NPN) and not just "somewhere in the middle".

My non-modified circuit with switch in the middle, between two LEDs (they are there just to make a concept of some "black box" before and after the micro-switch):
enter image description here

When I add an NPN transistor and tries to simulate the switch with it, the current is different:
enter image description here
enter image description here

If remove the part of the circuit that is "behind" switch (to GND), it works as switch simulator just fine:
enter image description here
enter image description here

What should I do in such case, when the circuit is already built, and I want to simulate switch "click" without moving the switch from it's place?

Best Answer

It's ok to use an NPN in the 'middle' of the circuit. If you were to use mosfets, there could be problems with Vgs if used in the 'middle', the gate needs to be higher than the source or the mosfet will not turn on.

An NPN transistor will function like a mechanical switch, but will have a voltage drop across it similar to a diode. The NPN transistor most likely needs more current, with the 1k current limiter resistor, it would be wise to either lower the resistance or increase the voltage from 1.1V to 5V so the transistor can be fully on.