4 ms·
Another good trick here is to do two measurements. Once with a light on your bot aimed at the line on, and once with it off. Taking the difference between these
by Doxin 3y ago
Another good trick here is to do two measurements. Once with a light on your bot aimed at the line on, and once with it off. Taking the difference between these measurements will fairly reliably reject ambient lighting.
Of course getting that to work with all-analog hardware is left as an exercise to the reader.