And I can't find any code or circuit info to set these up in a simple break beam configuration. Everything I found is for ir pairs that include some sort of board or breakout or are otherwise already built and ready to use.
Can anyone point me to some resources to figure out how to build a break beam sensor across about a 5" span?
Those links won't work for the 3-pin 38kHz receivers that OP has.
Sketch attached to generate the 38kHz for the IR transmit LED.
A second Arduino can be used for the 3-pin receiver.
The receiver outputs a LOW when modulated IR light falls on it, and a HIGH when not.
Leo..
The 3-pin sensors from the link (VS1838B) might or might not work with continuous 38kHz IR.
If they don't, modulated (interrupted) modulated (38kHz) must be used.
That also requires more code on the receiver side.
I currently use TSSP4038 (not TSOPxxxx) sensors for my beam-break poject.
They seem to be made for uninterrupted modulated IR.
Leo..
Thanks for your replies to an admittedly sketchy question. I was hoping to emulate the break beam pairs being sold by adafruit et al, using a single arduino mega for a pair of them.
I'm building a device that measures the initial speed of a golf ball when hit with a putter. Was hoping to have a pair of beams a couple of centimeters apart as the timing mechanism, the golf ball breaking one then the other and measuring the elapsed time.
Should I just buy a much more expensive pair of break beams or is there hope for copying it with just the ir leds and receivers I already bought?