Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Using BJT as a switch for negative voltage

Solved!
Go to solution

Hi,

 

I am using a NI-USB 6009 to control a pump which requires +12V at one terminal and -12V at the other. My plan was to use a BJT to switch the pump on and off by switching each terminal to ground. In this circuit when the voltage from the DAQ is high, the output is low and when the voltage from the DAQ is low,  the output is high(+12V).

 

12v-bjt-switch.png

My question is how would I replicate this switch for -12V? Thanks

0 Kudos
Message 1 of 2
(7,078 Views)
Solution
Accepted by topic author Scall93

Two issues:

1. The USB-6009 has an internal pull-up resistor of 4700 ohms to +5 V. When power is first applied to the device (before any software has run), all the digital lines will be at 5 V. Thus, it is better to set the external circuit so that +5 V at V2 (the USB-6009 output) causes the motor to be off and 0 V turns the motor on.  If the +/-12 V power supply can be on while the computer/USB hub is off, then you must be sure the motor will not run under that condition.

2. Unless the motor power is very low, it is probably better to switch the power at the +12 V and -12 V buses rather than ground. Shunt switching is not power efficient and relies on the switch transistors being kept on anytime the motor must be off. It is usually more difficult to design BJT circuits which are always on than always off.

 

I think this configuration may work.  I have not checked it thoroughly for all possible modes.  At V2 = +5 V Q1 conducts and all other transistors are off. At V2 = 0 V Q1 is off and the others conduct.

 

Lynn

 

Motor switches.png

Message 2 of 2
(7,042 Views)