How do you use a transistor in place of a switch/button?
By Anonymous
July 22, 2009
July 22, 2009
http://www.kpsec.freeuk.com/index.htm
Here ya go!
Now how do you use a transistor in place of a switch/button?
So I can use this with my Basic Stamp 2?
http://www.makershed.com/ProductDetails.asp?ProductCode=MKAD4
Admin Edit: Changed post title and removed useless posts.



@ Thu, 2009-11-26 15:46
The circuit i made was
The circuit i made was simply a "fast mouse clicker". It basically goes high output, pause 100, low output. The mouse's switch is simply its left mouse button.
And...it's a BJT. And it works normally.
I too did not expect it to work since it wasn't a FET, in fact the first thing i did was to connect tie grounds together. But once i untied them it worked. If you want i can take a photo of it.
@ Mon, 2009-11-23 23:29
Here's the circuit. As you
Here's the circuit. As you can see the two power supplies are isolated from each other. What i don't get is: shouldn't current A (marked in red), given out by the picaxe's batteries get back to them(picaxe's batteries), somehow?
PS: i wrote anode and cathode between commas (") because they aren't actaully anode and cathode. I was just trying to refer to the different contacts on the mouse's switch.
@ Tue, 2009-11-24 20:24
Yes, the small current A you
@ Tue, 2009-11-24 22:16
Exactly...but the point is
@ Wed, 2009-11-25 17:05
How exactly is it supposed
@ Wed, 2009-11-25 20:39
Also, what type of
@ Sun, 2009-11-22 13:22
I know this is quite old,
@ Sun, 2009-11-22 18:53
Many circuits will not work
Many circuits will not work unless the grounds are connected between them. Exceptions are those that have been opto-isolated or isolated in some other form. Voltages generally need a reference point, and that is typically ground. Essentially, it means that the above circuit assumes that the transistor ground is also the BS2 ground, in order to work. The relay switch can be isolated completely from the BS2 and transistor.
@ Mon, 2009-11-23 18:06
but i managed to to this
but i managed to to this with an USB mouse (don't think it is opto-isolated in any way). I just connected collector to the switch's "anode" and the emitter to the "cathode" and the base to my picaxe without connecting GNDs....how come?
I can understand why this happens with a relay, but in every tutorial i've read they say current enters the base and ends up through the emitter.
@ Mon, 2009-11-23 20:59
Want to post the full