Maker Pro
Maker Pro

Transistors in logic gates. Basic question.

JooJar

Sep 27, 2011
2
Joined
Sep 27, 2011
Messages
2
Sorry for the basic question.

Basically we're learning about logic gates at university and I have a lot of electronics equipment, prototype boards, and components around the house that I collected some years back when I became interested (but not actively interested) in electronics.

Now, my idea was to build these logic gates so I can get hands on understanding.

I have some NPN transistors, but the problem I am having is understanding the collector, base and emitter.

I tried connecting the positive end of the battery to the collector, and an L.E.D on the emitter. One wire on the L.E.D to emitter, other wire to the negative on the battery. Does this sound right?

What do I put on the base? I just want to use the transistor as a switch. 0 or 1. I assume with an NPN a charge to the base is going to switch the transistor and activate the LED. This would be an AND logic gate?

Thanks for any help.
 

jackorocko

Apr 4, 2010
1,284
Joined
Apr 4, 2010
Messages
1,284
This would be an AND logic gate?

I don't think so, AND gate compares two inputs, when both are the same the output is the same as the input. Turning a transistor on or off doesn't make a gate, Think it is a little more complicated then that.
 

davenn

Moderator
Sep 5, 2009
14,261
Joined
Sep 5, 2009
Messages
14,261
ok you are getting there :)

preferably put the LED and an appropriate resistor in series with it and in then in the collector cct to the battery. take the emitter to 0V (negative of the battery)

With a hi value resistor say 10k Ohms ( 10,000 Ohms) take it from the battery positive and touch the base leg of the transistor and the LED should light :)

see diag below

cheers
Dave

attachment.php
 

Attachments

  • LED SW CCT.GIF
    LED SW CCT.GIF
    2.3 KB · Views: 312

QwertyTSecond

Jul 31, 2011
6
Joined
Jul 31, 2011
Messages
6
This would be an AND gate:
and4.gif


When both inputs are off, both transistors are off. If a voltage is applied to only one of the transistors, only one transistor turns on. The other transistor blocks the current flow.
When voltage is applied to both transistors they both allow current flow, setting the output high.
 

davenn

Moderator
Sep 5, 2009
14,261
Joined
Sep 5, 2009
Messages
14,261
HI Qwerty

indeed it is :)

that diag looks very familiar and one I was thinking of using if the OP pushed for more info on transistor gates
 

JooJar

Sep 27, 2011
2
Joined
Sep 27, 2011
Messages
2
Looking at my lecture notes I got the gates confused. never the less the hands on experience is fun. I'll stick around here.

Thanks for the responses.
 
Top