The QT831J was meant to provide an early
detection of reaching the stop (early detector) so you could slow down the
motion then using the second detector (inner) to actually stop. In this
mode, it can detect an object as small as 1 mm. It is possible to use it
as a quadrature detector, but each opening/blockage on the disk has to be
larger, like about 2mm. A quadrature disk for this unit has to be designed
like we talked about yesterday, as two concentric rows of holes.
The pin out is as follows: Pin 1 is marked
with a number 2 on the PCB of the unit.
1 VCC, use +5V +/- 10% as a supply to power
the LED and the two sensors.
2. Outer detect, open collector, so you need a
pullup resistor, 10K, to VCC or less (like 3.3V) so you can use this with 3.3V
microcontroller inputs. Goes high when blocked.
3. Inner detect, open collector, so you need a
pullup resistor, 10K, to VCC or less (like 3.3V) so you can use this with 3.3V
microcontroller inputs. Goes high when blocked.
4. GND ground reference, internally tied to
pin 5.
5. GND ground reference, internally tied to
pin 5.
Output is open collector, so it needs a pullup
resistor like 10K to +5V.
Output is high (pullup voltage) when blocked,
low when unblocked (<0.3V).