NPN transistor circuit - Is this right? I doubt it...

bobleny

Oct 3, 2006
141
Joined
Oct 3, 2006
Messages
141
Hi, I drew this circuit in hopes it will replace my reed relay, but I do believe this is wrong... The idea, is to make a positive signal control a negative signal.

somethingwrongoe7.png



Thanks!

 

Cabwood

May 31, 2006
86
Joined
May 31, 2006
Messages
86
You need a resistor in series with the LED. 220 Ohms will do.

Without this modification, your circuit will kill the LED when the switch is closed.
With the modification, your circuit will light the LED when the switch is closed.

Positive signal? Controls a negative signal? What does that mean?

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Without the current-limiting resistor in series with the LED then the LED, the transistor and maybe even the 5V power supply will all blow up.

A logic high at the input produces a logic low at the output. Nothing is negative in that circuit.
The input uses a low current and the transistor's output current can be much higher.

 

bobleny

Oct 3, 2006
141
Joined
Oct 3, 2006
Messages
141
Point taken, I forgot about the resistor in series with the LED...

By a positive signal that controls a negative signal, I mean, I want to take the logic high signal from a ship, and use that to connect the ground, or the negative terminal on my battery, to a device.

I really cant explain it well....

But if you guys say the circuit is right, with the exception of the led, which wont actually be their, then it should do what I want it to do.

Thanks!

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Did you select a transistor that has a high enough current rating so it can pass the amount of current for the device? Which transistor? How much max current?

Can the "ship" drive the 1k resistor in series with the base of the transistor with at least 3.5V/1k= 3.5mA?

Is the current gain of the transistor high enough for only 3.5mA input?

 

bobleny

Oct 3, 2006
141
Joined
Oct 3, 2006
Messages
141
The "ship"!? What is a "ship"?

I have no idea what transistor I need to do this. I only have a couple of them... I know I need a NPN, but other than that, I know not.

Here's my circuit:

mouseclickwx0.png


Problem with this circuit, with the 5v power supply out of my PS2 mouse controller in my computer, I don't have enough juice at the end to close the relay. I'm hoping that the the transistor wont need so much juice to close... Not that it really closes.

What would you suggest for a transistor in this case?

I have two transistors...
2N3904
MPSA20

I can get others from radio shack too...

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
You need to know how much current is used by "the device" that will have one wire grounded by the transistor, so you can use a suitable transistor.

The 4017 has a minimum output current of only 2mA when it has a 5V supply. A 2N3904 transistor will turn on pretty well with only 2mA of base current if its load current is only 100ma or less.

 

bobleny

Oct 3, 2006
141
Joined
Oct 3, 2006
Messages
141
Well, how much current do you think is passed when a mouse clicks? I will check...

Ok, This meter reads .1mA...

I don't know if it is right. I don't know how to test a meter to see if the amp setting is correct. My multi meter is correct, but sadly, it is at school. :(

Just real quick how do I make sure my meter is reading amps accurately?

Does .1mA sound right to you?

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
So your transistor is not turning on a powerful motor nor a lightblb. It is the low current output of a pc's mouse?
I never looked, but I would think that a mouse has a logic output that is either high or is low. Your transistor will make an output that is only low, never high. Connect a 1k pullup resistor from the collector of the transistor to +5V. Then the output will be high when the transistor is turned off.

 

bobleny

Oct 3, 2006
141
Joined
Oct 3, 2006
Messages
141
Well, I don't know what you just said..  ???  :-\

However, when the mouse button is suppressed, one of the pins of the IC is connected directly to ground. What I am trying to do is create a signal (done, with your help...) and use it to connect that pin of the chip (not "ship"  :-[) to ground.

So, because I don't know what you just said, I don't know if it is needed?

Oh, and what value resistor do I need at the base of my transistor, if any?

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
It looks like you are going to connect the collector of your transistor to a button on a PC's mouse. Then it will already have a pullup resistor so a collector resistor won't be needed.
A resistor in series with the base isn't needed but use a 10k resistor anyway in case you want to measure the output of your circuit or use it to drive something else.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
bobleny said:
Will the resistor at the base effect the circuit any?
The output current of a 4017 is only about 2mA when it has a 5V supply so no base resistor won't hurt anything. The circuit will still work fine if the transistor has a 10k base resistor.
 
Top