Got the sensor up and running by using:
- Arduino Micro
- PAA5100JE
Connecting it like this:
| PAA5100JE | Arduino |
|---|---|
| 3-5V | 3V |
| CS | Digital 4 |
| SCK | SCK |
| MOSI | MO |
| MISO | MI |
| INT | - |
| GND | GND |
Used code from GitHub to test the connections, and got this result:
Also got a code to work that measures movement of surface or object within 3mm of the sensor in X- and Y-directions (deltax,deltay). This data is quite good and could be used to measure how one surface moves, but would like for it to see difference between two surfaces without needing two sensors placed on the surfaces.
Spent time making plots of movement in python, before exploring ways of using optical flow to capture movement in video using Lucas-Kanade approach.
Results of plotting of random movements in front of sensor:
Lucas Kanade (sparse), general dense optical flow and sparse optical flow are all explored now.

