transistor as switch for 2 condition

Thread Starter

embpic

Joined May 29, 2013
189
i need a logic using transistor (as a switch) for 1 input and 2 output. if i provide input of 5 volt then one end should be 5 volt and other end should be 0 volt.
likewise when input is 0 volt then one should be zero ande other will be 5 volt.

i think 2 transistor are require one is NPN and other one is PNP.
 

Thread Starter

embpic

Joined May 29, 2013
189
output is one stepper driver and my condition are as follows.

input output1 output2
1 5 Volt 0 Volt
0 0 Volt 5 Volt
 

djsfantasi

Joined Apr 11, 2010
9,163
DickCappels provided a simple circuit, and he asked for details of the load. I am also curious as to what is providing the input. You did state that a logic 1 is 5V and a logic 0 is 0V.

If you can drive a load from your input, his circuit is the simplest that I can imagine. Check it with your truth table and confirm for yourself that it works.

If you cannot drive the load directly from your input (hence Dick's circuit may not work), you can add another transistor for the second output. I have tested in a simulator the following circuit. Note that both transistors are of type NPN. The values shown are simply for the simulation and would need to be calculated for your specific application.

The first NPN transistor inverts the input, while driving the second transistor and the load. The second transistor then inverts the signal once again and drives the second load. If you examine your truth table, this satisfies your conditions. Note that "output 1" follows the input and "output 2" is the inverse of the input.

.


(The second attachment shows the logic in the opposite state)
 

Attachments

DickCappels

Joined Aug 21, 2008
10,187
Please post a description, datasheet, or part number and manufacturer for your stepper motor when you post your description of the signal source.
 
Top