0
\$\begingroup\$

I am trying to make a contactless doorbell through a tutorial on YouTube.

I have a question about the circuit diagram. Won't the current polarity of the IR Tx and Rx cause the transistor to be in the cut-off state?

In other words, will the device work in the opposite way than it should?

enter image description here

\$\endgroup\$
3
  • \$\begingroup\$ You say LEDs but, I only see one LED (TX). I don't know why RX is shown as an LED when it's used as a photodiode. This is why we use symbols in schematics; to indicate functionality. The BJT needs a base resistor. Does touching the doorbell remove a block between TX and Rx or, does it introduce one? Maybe it works by IR reflection somehow? \$\endgroup\$
    – Andy aka
    Commented Mar 7, 2023 at 15:36
  • \$\begingroup\$ The infrared detector is incorrectly drawn as an LED. The arrows should be pointing at the diode to indicate that it is a photodiode. \$\endgroup\$
    – JRE
    Commented Mar 7, 2023 at 15:54
  • \$\begingroup\$ The + and - symbols on the photodiode are backwards. Actually diode labels if needed should be A and K. The polarity of the diode voltage is circuit dependent. \$\endgroup\$
    – user319836
    Commented Mar 7, 2023 at 16:28

2 Answers 2

2
\$\begingroup\$

In other words, will the device work in the opposite way than it should?

I realize that this is not your schematic, and you are stuck with its imperfections. Another one is the lack of reference designators, and the opamp needs a decoupling capacitor. But let's move on to answering your question . . .

The circuit as shown will work. Ignoring the + and - indications, both diode bodies are connected correctly as shown.

When there is no reflection to couple IR energy from the TX part to the RX part, current through the RX part will be so low that the voltage across the 10K resistor is lower than the voltage at the wiper of the sensitivity adjustment pot. In this condition, the opamp output is saturated low, and the driver transistor is off. This is how the circuit ignores ambient IR energy.

When reflection happens, current through the RX device increases, the voltage at the opamp non-inverting input increases until it is above the voltage at the inverting input, and the opamp output saturates high. This turns on the driver transistor.

To further improve the circuit, add hysteresis around the opamp to improve its immunity to changing ambient IR levels. Also, the unused opamp in the package should have its inputs terminated so it doesn't break into oscillation.

The LM358 output stage has build-in current limiting, and is rated to drive a short circuit continuously. The circuit relies on this current limiting to protect both the opamp and the driver transistor. This is very bad design practice.

  1. Add a 4.7 K resistor between the opamp output pin 1 and the transistor base.

  2. Add a 0.1 uF capacitor across the opamp power pins. Keep the capacitor leads as short as possible.

\$\endgroup\$
0
\$\begingroup\$

RX in this case is not an LED but a photodiode that goes into conduction when it is hit by a beam of light. In the Rx scheme it is represented wrong.

enter image description here

Probably on the protoboard it was mounted with the correct polarity, but in the schematic it was represented with the pins inverted.

\$\endgroup\$
1
  • \$\begingroup\$ Additionally the photo diode current passes through the diode from cathode to anode. \$\endgroup\$
    – user319836
    Commented Mar 7, 2023 at 16:24

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.