This is a 5mm Infrared break-beam sensor. These sensors are great for projects which need a simple and reliable way to detect motion or someone/something passing through an area. We also sell a 3mm version.
The pack includes both parts to create a single 'beam' with a sensor each side (you don't need to buy two of these to create a break-beam)
The sensors work as an emitter-receiver setup - the emitter sends IR light out which is detected by the receiver. When something/someone passes in front of the IR light (breaking the beam), the receiver detects the change and can be used as a trigger for your project.
The emitter and receiver can be around 40-50cm apart - anything further and results can be unreliable.
It's best to power these at 5V to get the best performance and range, however 3.3V works as well. Trial and error testing suggested!
To read a digital signal from the receiver, use a pull-up resistor (10k suggested) between the yellow and red wires on the receiver. You can try lower resistor values if you need to (if you can't achieve the required distance) but ensure no more than 3.3V is sent to your GPIO pin via the signal line.
- Voltage: 5V (3.3V also works)
- Emitter Current Draw: 10mA @ 3.3V, 20mA @ 5V
- Output Current Capability of receiver: 100mA sink
- Distance: ~50cm
- Response: <2 ms
- Angle: 10°
- Dimensions: 20mm x 10mm x 8mm
- Cable: 250mm
- Weight (each): ~3g