Detect motion of close-up surfaces with this Breakout Garden compatible optical navigation breakout - great for floor tracking for ground dwelling robots!
The PAA5100JE sensor is used in robot vacuum cleaners and uses a low-resolution camera and some clever algorithms to detect motion of surfaces. This sensor has a super close range of 15-35mm so it's suitable for use with a variety of different surfaces. If you're looking for a similar sensor with a bigger range (for attaching to something like a drone) check out our PMW3901 breakout. You can use this breakout completely solder-free with any Breakout Garden with an SPI slot, for ease of prototyping.
We've adapted our PWM3901 Python library to work with this sensor as well. It makes reading the x/y motion values and their magnitude really straightforward. Use the following line at the beginning of your code to make sure it's set up correctly:from pmw3901 import PAA5100
Connecting to your Raspberry Pi
If you're not using a Breakout Garden, this is how to connect your Near Optical Flow Sensor Breakout up to your Raspberry Pi. Our library is set up to use the front SPI slot by default: BCM 7 for CS, BCM 11 for SCK, BCM 10 for MOSI, BCM 9 for MISO, and BCM 19 for the INT pin.
Here's which pins to connect between your Near Optical Flow Sensor Breakout and your Pi's GPIO (note that it's BCM pin numbering):
You can of course use other pins but you'll have to change them accordingly when you instantiate the sensor in your code.