# Electronics Forum

Electronics Circuits & Projects discussion forum. Get help with electronics.

## Using a BJT Transistor as a DC switch

Discuss all your electronics engineering related technical problems and other questions pertaining to design problems in any field of Electrical/Electronics/Computer Hardware

Moderator: pebe

### Using a BJT Transistor as a DC switch

Dear all,

I have two separate circuits which I want to connect using somewhat of a switch (most probably a BJT), which would either separate the two circuits or join them depending on whether the voltage on the first circuit is an active high (3.3 Volts) or an active low (0V).

ie. an active high should separate the two circuits (BJT in off) and an active low should join the two circuits (BJT in active).

I can not modify anything within the individual circuits, which is why I thought that this transistor should be placed in between the two circuits.

circuit.jpg (50.5 KiB) Viewed 16913 times

Attached you can find a Spice Layout of the two circuits and my idea of using a BJT. The first circuit (which can not be modified) is the scheme up to Resistor 'R1', the transistor Q2 was my idea to act as my switch, after Q2 comes the second circuit. The switch should switch depending on the values of V1 (either 3.3 or 0).

My idea was using an NPN and its emitter followed by the first circuit. In that case when active high is on V1, transistor Q1 is in active mode, which means less resistance to ground which ultimately means less base current, which should set Q1 in off. The vice-versa should happen when V1 is in active low. However, using this scheme I got a Vout of "2 and 0.6" instead of "roughly 3 and 0"

Does anyone have any ideas or could help me out with this problem. I may have also misunderstood the operation behind Q2.
johnnyb7

Posts: 1
Joined: Tue Jul 01, 2014 9:37 am

### Re: Using a BJT Transistor as a DC switch

When you say ‘BJT in active’, do you mean the BJT is switched on and passing current? The circuit as you have drawn it will not work because Q2 is in common-base mode and you are putting a signal into its emitter, which has a very low impedance in that mode. Also, The output circuit is a potential divider made up with R6 (20K) and R5 (100K). So if it is intended that Q2 shorts out R5 then the maximum swing at the output can only be from 0V to 2.5V (3V x 100/120 = 2.5).

I don’t see the purpose of R1 and R3. Am I correct in assuming that you want the 0V-3V pulsed input to appear as a 3V-0V pulse at the output (Q1 will invert the pulse)? And switching Q2 will decide whether or not there is a pulse at the output?

You say the input and output circuits cannot be modified. But can you get to the base of Q1. If you can, there is a simple solution to the problem.
pebe

Posts: 1058
Joined: Tue Dec 09, 2003 11:12 pm
Location: Ellon, Scotland

Return to EE quiz questions & problems

### Who is online

Users browsing this forum: No registered users and 1 guest

 Setra 264 Pressure Transducer (Range 0 - 10.0" WC)\$35.0 GE 3S SECTOR ARRAY TRANSDUCER PROBE FOR VIVID & LOGIQ ULTRASOUND SYSTEMS 2323337\$799.95 Voltage Current Signal Generator Transducer DC 7-30V 4-20mA Constant Current\$21.66 Krautkramer Branson DMS Ultrasonic gauge, with Waygate FH2E transducer\$650.0