Jump to content
Electronics-Lab.com Community

Lamp contol with logic circuit


Recommended Posts

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

post-17735-14279142700524_thumb.jpg

Link to comment
Share on other sites


Guest Kasamiko

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  ;) ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites


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.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...