r/arduino • u/CommandShot1398 • 22d ago
How can I make sure an IR break beam sensor is actually working?
Hello everyone.
I have a custom-made IR break beam sensor (PyController Nosepoke v2.3), which is on a board connected to another board with an RJ45 cable. Now, I need to make sure that the sensor is working in a manner that it can actually emit and receive light.
For receiving, I think it's easy: if the receiver is broken, I guess we'll get floating values.
As for the emitter, it's not that easy. It can be broken, or it can be blocked.
PS: I mean making sure it works without supervision, so we can detect failure in a long-running session with no human intervention.
What do you think? My initial idea was to do a periodic check in which I put an electrical switch on the emitter pin, which disconnects the power so no light would travel, and the changes in the receiver would tell me if the emitter is actually emitting or not.





