Lamp contol with logic circuit

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
hi,
I have simulated this circuit in Multisim and it works... but when i build it did work.. I have several question about this circuit.
1) do i need to add any other component for the real circuit (hardware)
2) i already put together the circuit using  SN74LS21N (AND gate), SN745LS04N (NOT gate), SN745LS32N (OR gate) .. but there is no output.
3) the output (pin 8 and 6) is high when only the Vcc and Gnd of the SN74LS21N is connected... the same happens with the OR ic.
4) do i need a different supply for the Vcc? or can i use the same 5V supply for the input and Vcc...

Thanx

View attachment 38549

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Circuity,
Your inputs are always high. Nothing in your circuit makes an input a logic low!
Learn about the inputs of TTL logic ICs that are at a logic high unless something pulls them to a low.

 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
thanx audioguru for the fast reply.
but i dont understand what you are trying to say....
does it mean that i need to add other components..
what should i add...?
i dont have any clues..
im a newbie in electronics.... ???

thanx....

 
K

Kasamiko

Jan 1, 1970
0
He means to put some PULLDOWN resistors at the other side of the switches to put that side near at ground potential whenever the switches are open..a 10k resistors is enough I think..

rhonn  ;) ;)

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
A resistor can be used to "pull-down" the input of a TTL logic gate. Each input when a few are in parallel needs 0.4mA at about 0.4V for a 74LSxx input, which is 1k ohm. An ordinary 74xx input needs 1.6mA at about 0.4V which is 250 ohms.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Most of your 10k resistors have two 74LS inputs, each with up to 0.4mA. Therefore the voltage across the 10k resistor is 2 x 0.4mA x 10k= way too high!
If you use a 1k resistor then two inputs with a 1k resistor will be at 2 x 0.4mA x 1k= 0.8V which is the threshold voltage of a logic low and might not work.
Each logic input needs a 1k resistor, so use 470 ohms where you have two logic inputs connected together.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Circuity,
Now that you have learned about the input currents of 74LS logic gates, you need to learn about the output currents.
The output is guaranteed to be a logic high of 2.7V or more when driving a load resistance to ground of 6.8k or more. The max recommended output high current is only 0.4mA!

Therefore the outputs probably won't drive the 1k resistors and certainly won't drive 200mA into your lightbulbs.

 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
is this circuit ok?
im also thinking about adding a relay at the output (where the lamp is)..
relay with rating should i use...?

wht else should i do to make this circuit work...?
sorry... im not tht good in logic circuits... ???

thanx

View attachment 38561

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Circuity,
Logic gates don't need pull-down resistors at their outputs. The output of a 74LSxx TTL gate is guaranteed to drive an 8mA load from a positive source down to 0.4V.

Your circuit still has very high current lightbulbs. A 74LSxx TTL output can drive the base of a transistor through a current-limiting resistor, but not a lightbulb nor a relay.

 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
does this mean that the resistors that i added are correct?

can i use BC547 and connect the base BC547 to the output of the circuit with 5.6k resistor in series?

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
circuity said:
does this mean that the resistors that i added are correct?
No. The resistors at the outputs of the gates are not required since they don't do anything.

can i use BC547 and connect the base BC547 to the output of the circuit with 5.6k resistor in series?
Yes, but the BC547 won't have enough base current to drive a lightbulb or a relay.
 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
do i need to remove all the 6.8k and 20k resistors or only the 20k resistors?

what resistor value should i use then?....or do i need to find another type of transistor...?... how about BC107?

 

Staigen1

Oct 26, 2003
695
Joined
Oct 26, 2003
Messages
695
Hi circuity

Try to get a copy of the book "TTL COOKBOOK" by Don Lancaster, and read it, specially the chapter about intefaceing to real world. :)
I belive amason.com have it, or at least a used one.
You can also try to borrow it from your local library.
If you found it as an E-book, please let us share it!

//Staigen

 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
i couldnt find the book with the info i needed..... the one with the info has not been returned to the library...
and i need this circuit as soon as possible...
that's y i asked here...

sorry guys....
i really need ur help....

 

circuity

Feb 23, 2006
15
Joined
Feb 23, 2006
Messages
15
so do i need to remove all the 6.8k and 20k resistors or only the 20k resistors?

for the BASE of BC547 what resistor value should i use then?....or do i need to find another type of transistor...?... how about BC107?
???

thanx

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
circuity said:
so do i need to remove all the 6.8k and 20k resistors or only the 20k resistors?
I repeat: "The resistors at the outputs of the gates are not required since they don't do anything."

for the BASE of BC547 what resistor value should i use then?....or do i need to find another type of transistor...?... how about BC107?
A BC107 has the same chip as a BC547 but is in a metal case. They don't have enough current gain and aren't powerful enough to drive your high-power light bulbs. A BC547 could use a 6.8k resistor in series with its base from a TTL output and could drive a more powerful transistor to drive your lightbulb.
 
Top