0
\$\begingroup\$

I have a guide stating that the following diagram represents a DRL AND gate:

enter image description here

Suppose that both A and B have 5-V inputs with a corresponding switch. I tried to simulate it for learning purposes and placed the ammeter right before the LED. The problem is that the current does not change at all. I suspect that the diodes prevent the current from moving through since they are pointing to the left.

\$\endgroup\$

2 Answers 2

0
\$\begingroup\$

"Pointing to the left" is correct, the idea is that if one of your inputs is low, that diode is open and the R + D of the branch take the rest of the 5V voltage drop, giving L on your output. Only when both are high, you get an H output.

Your issue is that when your inputs are not high, they are floating instead of drawing the current through the diodes. Try connecting the R and S junction to the ground with a large resistance.

\$\endgroup\$
3
  • \$\begingroup\$ @romeoPH No, the junction between your R1 and S1 and the one between R2 and S2 \$\endgroup\$
    – DonFusili
    Commented Mar 18, 2021 at 13:05
  • \$\begingroup\$ Wow. I got it! Thanks! \$\endgroup\$
    – romeoPH
    Commented Mar 18, 2021 at 13:08
  • \$\begingroup\$ "open" in the context of electronics tends to mean "not connected", so no current would flow. \$\endgroup\$
    – Hearth
    Commented Mar 18, 2021 at 15:25
1
\$\begingroup\$

This AND gate circuit takes either high (5V) or low (0V) inputs and generates an output.

Due to this circuits construction, an unconnected input behaves as a high, not as a low (like one might think).

So in your simulation you are inputting either high (unconnected) or high (5V) but never inputting a low (0V).

If your inputs are always high you aren't going to ever get anything but high on the output.

Just connect the switches to ground and your simulation will be fixed.

In general the diode needs to point to a lower voltage to get any current flow across it. And the voltage drop needs to be in the 0.6V~0.7V range to get any significant current.

Assuming 2V across the LED and no current in the didoes, the voltage at the left side of R4 is...

2V + (5V - 2V) * 1K / 11K = 2.27V.

Therefore the inputs must be connected to a voltage below 1.57V (2.27 - 0.7V) before you will start to see much change in current at either the diodes or the LED.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ No it won't, connecting the switches to the ground just forces a short circuit. You mean connect them to the ground through a resistor, but with people asking this level of questions you should specify that. \$\endgroup\$
    – DonFusili
    Commented Mar 18, 2021 at 13:07
  • \$\begingroup\$ @DonFusili The circuit already has 1K resistors in series with the didoes. And the output only has a 10K pullup to power it. Even connecting the switches directly to ground only leads to a fraction of a mA of current draw. I was only proposing to connect the switches to 0V instead of 5V and leave the rest as is. \$\endgroup\$
    – user4574
    Commented Mar 18, 2021 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.