A Schmitt trigger is just a switching device that responds to a slowly changing input with a clean turn on or off at a certain point in the input slope.

With photo detectors, an op amp is a pretty good way to accomplish this, using a feedback resistor to square the output up.


Greg Fretwell