Logic OR Gate?

crutschow

Joined Mar 14, 2008
38,503
Yes, you need a resistor in series with LED3.

You won't get much voltage out of the transistors with that connection since the voltage across the bottom resistors is only about 1.5V from the 9V battery when on, and the transistor emitter will be about 0.7V below that.

Why not just use a diode from each switch to LED3?
That will give you the OR function.
 

Thread Starter

Octain

Joined Feb 12, 2019
20
Yes, you need a resistor in series with LED3.

You won't get much voltage out of the transistors with that connection since the voltage across the bottom resistors is only about 1.5V from the 9V battery when on, and the transistor emitter will be about 0.7V below that.

Why not just use a diode from each switch to LED3?
That will give you the OR function.
Thank you, i haven´t thought of this..
 

WBahn

Joined Mar 31, 2012
32,823
What is it you are trying to do?

Is the goal to turn on an LED whenever at least one of the switches is on?

Or is the goal to understand how to make logic gates using transistors?

Or is the goal something else entirely?

What is reasonable to do depends on what it is you are trying to do.
 

Thread Starter

Octain

Joined Feb 12, 2019
20
What is it you are trying to do?

Is the goal to turn on an LED whenever at least one of the switches is on?

Or is the goal to understand how to make logic gates using transistors?

Or is the goal something else entirely?

What is reasonable to do depends on what it is you are trying to do.
The main goal is to turn the LED on, the second goal is to make logic gates using transistors and all logic gates should be based on a simple NAND gate.
 

Thread Starter

Octain

Joined Feb 12, 2019
20
Sorry, I don't see a NAND gate in your original post. Can you highlight it?
nand.gif

this is the NAND template that i try to implement in the logic gates. It does not directly have to be a NAND but you only should be able to see the basic structure
 

WBahn

Joined Mar 31, 2012
32,823
The main goal is to turn the LED on, the second goal is to make logic gates using transistors and all logic gates should be based on a simple NAND gate.
Then why aren't you using anything that even approaches a NAND gate?

Start with that.
 

dl324

Joined Mar 30, 2015
18,326
The main goal is to turn the LED on, the second goal is to make logic gates using transistors and all logic gates should be based on a simple NAND gate.
Then why are you fiddling with OR gates?

To get an OR function from a NAND gate, you just DeMorganize the (NAND) gate.
 
Top