bobleny Posted December 23, 2006 Report Share Posted December 23, 2006 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.Thanks! Quote Link to comment Share on other sites More sharing options...
Cabwood Posted December 24, 2006 Report Share Posted December 24, 2006 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? Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 24, 2006 Report Share Posted December 24, 2006 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. Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 24, 2006 Author Report Share Posted December 24, 2006 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! Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 24, 2006 Report Share Posted December 24, 2006 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? Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 24, 2006 Author Report Share Posted December 24, 2006 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: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...2N3904MPSA20I can get others from radio shack too... Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 25, 2006 Report Share Posted December 25, 2006 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. Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 25, 2006 Author Report Share Posted December 25, 2006 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? Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 25, 2006 Report Share Posted December 25, 2006 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. Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 25, 2006 Author Report Share Posted December 25, 2006 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? Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 25, 2006 Report Share Posted December 25, 2006 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. Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 25, 2006 Author Report Share Posted December 25, 2006 Will the resistor at the base effect the circuit any? Quote Link to comment Share on other sites More sharing options...
audioguru Posted December 25, 2006 Report Share Posted December 25, 2006 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. Quote Link to comment Share on other sites More sharing options...
bobleny Posted December 25, 2006 Author Report Share Posted December 25, 2006 Thanks! I set it up and it clicks my mouse perfectly! thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.