I develop a DIY laserWar system based on AVR (arduino Nano Every too).
The key parts to send/receive IR signal is TSAL6100 & TSOP4840.
They works well during developing.
But problem rasied while testing on actual environment.
The distance between TSAL6100(called sender) & TSOP4840(called receiver) vary distinctly against intensity of illumination.
The lower intensity,the longer distance.
The reason is that IR signal is interfered by the environment light, I think.
How to overcome this problem?
What I thought of is to provide a steady IR light source to TSOP4840.
That will set a threshold value of input signal, the intensity of signal lower than threshold will be missed.