Need help about debugging!
I have IR barrier setup of Arduino Pro mini, Vishay TSSP4038 sensor and Vishay TSAL6100 infrared diode. TSSP4038 is connected to IRQ pin 2 (also use resistor and capacitor as in datasheet) and diode is driven on 38 KHz @ 40mW 50% duty cycle. Distance from sensor to diode is 3m. This setup is used for precise timing system based on DS3231 clock to detect object crossing IR line. Setup has stable power from AMS1117 3.3V
Everything is working fine, but sometimes sensor false detect IR barrier brake. False detect interval is from couple hours till couple days. As it is used for timing system I definitely don’t need false brakes.
-diode should be driven at higher power level (I could use setup of 2N2222 transistor, diode can keep 100mW) to get more radiating power (this is outdoor setup – sun/rain)
-arduino generating 38 KHz for diode in long term could have some oscillating error, which cause sensor to detect brake (maybe I should put diode in simple 555 timer)
Any thoughts how to debug this situation? Anyone knows about industrial IR barriers precision - do they have false brakes?