I am building an installation where people drop a small round object into a tube, which will trigger a video on a brightsign via GPIO. The ball is detected by a IR barrier, and that is where my problem lies.
I connected the IR Sender to 13 which is on continuously. The IR Receiver is connected to 7, and there are two LEDs for testing, which light up when the IR receiver is receiving signal or not.
My problem: When the IR signal is not interrupted by anything, there does not seem to be a constant signal from the receiver, but a incontinuous blinking. When the signal is interrupted, no problem. Is my wiring wrong? Am I using the hardware wrong?
Your drawing shows nothing connected to pin 13 (okay if the drawing is not accurate).
Does the RXIR show "received" when no TXIR is present? (unplug TXIR to test for false RX)
And that 38kHz thing...
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.
Thanks for providing a schematic and using code tags in your first post; we do not see it often.
You can also use the tone() library to generate the 38kHz carrier. The IR sender (LED) needs also a current limiting resistor.
Some of those similar looking receivers, especially those intended for TV remote controls, have built-in interference suppression and don't tolerate extended carrier bursts. The TSSP58038, which is specifically a light barrier sensor, appears not to have such a limitation.
The resistor in series with the LED can be a rather high value when LED and sensor are close.
100 ohms, which is in the sketch I posted, could bridge 25m (75ft).
10k could already be ok for a small distance.
Leo..