A2P Pulse Duty
Instead of connecting the analog output to an AD converter to get the GP2Y0A02YK analog
voltage value, use the A2P Converter module to measure the pulse width directly. The pulse
is emitted every 10ms (1ms=1/1000 sec). The low pulse width represents the analog voltage
value. Its width varies from 0 to 4096 us (1us=1/1000 ms) with 2us resolution.
Figure 6 A2P Pulse Duty
The conversion formula is:
Width = Vi(analog input) / Vdd x 4096 (us)
Assuming the analog voltage output from GP2Y0A02YK is 3V and the supplied voltage is
5V. Applying the above formula:
3 / 5 x 4096 = 2457.6
≒
≒
≒
≒
2458 (us)
the low pulse width will be 2458us.
Dimensions
Figure 7 GP2Y0A02YK Dimensions