Other Parts Discussed in Thread: PGA460
Hi,
Im trying to understand why I get an offset for short range measurements using PGA450Q1.
Im using the demo firmware supplied by TI. settings are as follows:
register | value |
0x00 | 0xFF |
0x01 | 0xF7 |
0x02 | 0xF5 |
0x03 | 0xF5 |
0x04 | 0xF4 |
0x05 | 0xD3 |
0x06 | 0xA2 |
0x07 | 0x76 |
0x08 | 0x64 |
0x09 | 0x00 |
0x0A | 0x44 |
0x0B | 0x02 |
0x0C | 0x00 |
0x0D | 0x05 |
0x0E | 0x19 |
0x0F | 0x01 |
0x10 | 0x00 |
0x11 | 0x8A |
0x12 | 0x8A |
0x13 | 0x01 |
0x14 | 0x01 |
0x15 | 0x03 |
0x16 | 0x2D |
0x17 | 0xEC |
0x18 | 0x3D |
0x19 | 0xF9 |
0x1A | 0xA5 |
0x1B | 0x1F |
0x1C | 0x64 |
0x1D | 0x14 |
0x1E | 0x46 |
0x1F | 0x01 |
I calculate the distance according to the TOF returned by command(5) and it seems that for less then 40cm measurements, the error is about +5cm.
I printed the fifo and defined thresholds, drew the graphs in excel and compared to the extracted fifo location from TOF (fifo location = TOF / down sample value / 1us).
when I look and the excel graph and look for a cross point according to the thresholds, I can see the correct fifo location (according to actual measured distance) but from returned TOF I get the an offset of about 10 fifo locations.
using the same setup but measuring a distance of 100cm, I can see about 2cm error.
do I need to reduce anything from TOF to get a more accurate result?
from the demo code, I see a recording time before decay is done. perhaps I need to log the time after decay to get a better accuracy?
Thanks,
Eyal