logo elektroda
logo elektroda
X
logo elektroda

PDB-C134 Photodiode Always Conducting—Why Won't It Turn Off in My IR Circuit?

231 19
ADVERTISEMENT
  • #1 21665563
    Nick Durkin
    Anonymous  
  • ADVERTISEMENT
  • #2 21665564
    Stephen Van Buskirk
    Anonymous  
  • ADVERTISEMENT
  • #3 21665565
    Nick Durkin
    Anonymous  
  • ADVERTISEMENT
  • #4 21665566
    Mark Harrington
    Anonymous  
  • #5 21665567
    Stephen Van Buskirk
    Anonymous  
  • ADVERTISEMENT
  • #6 21665568
    Nick Durkin
    Anonymous  
  • #7 21665569
    Mark Harrington
    Anonymous  
  • #8 21665570
    Mark Harrington
    Anonymous  
  • #9 21665571
    Stephen Van Buskirk
    Anonymous  
  • #10 21665572
    Mark Harrington
    Anonymous  
  • #11 21665573
    Nick Durkin
    Anonymous  
  • #12 21665574
    Mark Harrington
    Anonymous  
  • #13 21665575
    Stephen Van Buskirk
    Anonymous  
  • #14 21665576
    Mark Harrington
    Anonymous  
  • #15 21665577
    Mark Harrington
    Anonymous  
  • #16 21665578
    Nick Durkin
    Anonymous  
  • #17 21665579
    Stephen Van Buskirk
    Anonymous  
  • #18 21665580
    Nick Durkin
    Anonymous  
  • #19 21665581
    Stephen Van Buskirk
    Anonymous  
  • #20 21665582
    Stephen Van Buskirk
    Anonymous  

Topic summary

✨ The discussion addresses an issue with the PDB-C134 photodiode in an IR emitter-detector circuit where the photodiode continuously conducts current, causing an LED to remain lit even when the photodiode is covered. The photodiode datasheet indicates a very low dark current (30 nA) and a maximum reverse voltage of 5 V, suggesting the device should not conduct significantly without IR illumination. Possible causes include incorrect circuit wiring, reversed polarity, exceeding voltage limits, or the need for an amplifier due to the photodiode's low output current (up to 30 µA when lit). Fault-finding steps include removing the photodiode to check if the LED remains lit, verifying component orientation, and covering the photodiode with opaque material. The conversation also covers the design of a simple IR interrupter circuit interfaced with a microcontroller, resistor sizing for the IR LED emitter (suggesting starting values around 470 Ω for about 10 mA current rather than 150 Ω), and the potential use of modulated IR signals at 38 kHz to reduce interference from ambient IR sources. The application context involves detecting mechanical positions, such as gear selection in a manual transmission, using multiple IR emitter-receiver pairs with considerations for sensor placement, cross-talk, and signal processing. The discussion highlights the importance of proper circuit design, modulation techniques, and microcontroller interrupt handling for reliable IR sensing.

FAQ

TL;DR: Your PDB‑C134 “always on” issue is wiring/biassing, not part failure. Use ~470 Ω on the IR LED for ~10 mA and add a pull‑down on the receiver; “I see no reason to drive parts near their limit.” [Elektroda, Stephen Van Buskirk, post #21665571]

Why it matters: This FAQ helps beginners build a reliable IR trip‑wire for microcontrollers without overdriving components or chasing noise.

Quick Facts

Why is my PDB‑C134 photodiode always conducting?

It’s likely biased incorrectly or wired so the microcontroller input floats high. Add a pull‑down on the receiver side and verify LED current is modest (~10 mA with 470 Ω at 5 V). The detector’s normal lit current is microamps, so you need proper loading, not heavy drive. “I see no reason to drive parts near their limit.” [Elektroda, Stephen Van Buskirk, post #21665571]

How should I wire a simple IR trip‑wire to a microcontroller?

Drive the IR LED from 5 V through ~470 Ω. Connect the photoreceiver to Vcc and route its output to the MCU pin. Add a 1–5 kΩ pull‑down from the MCU pin to ground so the input reads low when the beam is blocked. Disable any internal pull‑ups. [Elektroda, Stephen Van Buskirk, post #21665571]

What resistor values should I start with on the emitter and receiver?

Start with 470 Ω on the emitter for about 10 mA at 5 V. Use 1–5 kΩ as the pull‑down on the receiver output. Increase the pull‑down (smaller value) if the input is too sensitive to noise. Avoid pushing LED current near its limits. [Elektroda, Stephen Van Buskirk, post #21665571]

Do I need to modulate at 38 kHz for a 6-inch beam break?

Not for a basic, short‑range interrupter without strong ambient IR. Modulation adds hardware and software complexity. It prevents false triggers from other IR sources but does not increase optical power. Use modulation only if ambient light causes issues. [Elektroda, Stephen Van Buskirk, post #21665575]

Why does my 6-inch gap barely work with QSE113/QEE113?

These parts have a wide ~50° half‑angle. Coupling falls fast with distance. At ~6 inches it’s near zero even when pulsed at 100 mA with 0.1% duty. Narrower‑angle emitters/receivers or shorter gaps improve SNR. Align carefully to maximize overlap. [Elektroda, Stephen Van Buskirk, post #21665575]

What’s the maximum safe reverse voltage for the photodiode?

Keep reverse voltage at or below 5 V. Exceeding this can damage the detector or cause leakage that mimics light. If you suspect damage, replace the device and retest biasing with limits observed. [Elektroda, Stephen Van Buskirk, post #21665564]

How can I debug an IR beam that never turns off? (3 steps)

  1. Remove the photodetector; if the LED still lights, the fault is elsewhere.
  2. If it goes off, cover the detector with opaque tape and retest.
  3. If still stuck on, replace the detector and verify orientation and bias. [Elektroda, Mark Harrington, post #21665566]

Can I run multiple emitter/receiver pairs without crosstalk?

Yes. Stagger directions (some horizontal, some vertical) to reduce overlap. Keep gaps short and use narrower beams. If your MCU has I/O to spare, power one emitter at a time and read a single receiver to eliminate optical crosstalk. [Elektroda, Stephen Van Buskirk, post #21665579]

Will pulsing the LED increase range without modulation?

Short, high‑current pulses do not overcome poor optical coupling at long gaps for wide‑angle parts. Even at 100 mA and 0.1% duty, the coupling is near zero at ~6 inches with QSE/QEE geometry. Improve alignment or reduce distance. [Elektroda, Stephen Van Buskirk, post #21665575]

What if my MCU input has an internal pull‑up?

Turn it off. Internal pull‑ups can mask the receiver signal and hold the pin high. Use an external pull‑down so the input reads low when the beam is blocked and high when the receiver conducts. [Elektroda, Stephen Van Buskirk, post #21665571]

Is a visible LED or a laser better than IR here?

Visible LEDs simplify aiming; lasers give a strong, narrow beam and high contrast. Lasers cost more and need careful handling. For short gaps and low cost, a visible emitter/receiver with shielding is a practical alternative to wide‑angle IR pairs. [Elektroda, Stephen Van Buskirk, post #21665575]

How can I sense manual transmission gear position with optics?

Place short‑range beams near the shifter path (1–3 inches). Arrange emitters and receivers to map positions and avoid direct overlap. If you have I/O headroom, activate one emitter at a time to prevent crosstalk and read clean patterns. [Elektroda, Stephen Van Buskirk, post #21665579]

What current does the photodiode actually provide? Do I need an amplifier?

Expect microamp‑level photocurrent (~30 µA lit; ~30 nA dark). Use it to switch a logic‑level input via pull‑downs, not to drive loads directly. If you need analog levels or distance sensing, add a transimpedance amplifier. [Elektroda, Stephen Van Buskirk, post #21665564]

What edge cases can break a working IR trip‑wire?

Excess reverse bias (>5 V) can cause permanent leakage. Strong sunlight or reflections introduce false triggers. Wide‑angle parts lose coupling at longer gaps. Fix with proper bias limits, shielding, narrower beams, or emitter sequencing. [Elektroda, Stephen Van Buskirk, post #21665564]

Any quick aiming tip during assembly?

Include a small indicator LED on the receiver output. Aim the emitter while watching indicator brightness. Peak it, then secure mounts to maintain alignment against vibration and temperature shifts. [Elektroda, Stephen Van Buskirk, post #21665571]
ADVERTISEMENT