Ken,But, that's not the problem that I now see. If you were to try my common-emitter arrangement (just the 10K load resistor...ignore the delay part) for the opto-coupler, what collector voltages do you see when the cylinder is present at minimum and maximum distances and absent?
Ken
Ken,A lot is going to depend on the diameter, the surface, the speed, and distance of the cylinder. Can you spell those out?
This will be a problem. The circuit ideas so far do not account for a variety of ambient light levels.The opto sensor could be exposed to sunlight (although not pointed directly at it). It would be exposed to regular ambient light in a typically lit room if used indoors or exposed to natural ambient light if used outdoors
I have seen some of the reflective sensors that have an ambient light filter on them, would this help the situation?This will be a problem. The circuit ideas so far do not account for a variety of ambient light levels.
Ken