Features
- PMW3901 optical flow sensor
- Two white LEDs on-board for illumination
- Frame rate: 121 FPS (frames per second)
- Speed: 7.4 rad/s (radians per second)
- Field of view: 42°
- Range: ~80mm to infinity
- 6mA typical current draw
- SPI interface
- 3.3V or 5V compatible
- Reverse polarity protection
- Compatible with all models of Raspberry Pi and Arduino
- Python library
Connecting to your Raspberry Pi
If you’re not using our Breakout Garden HAT with SPI, then this is how to connect your 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 Optical Flow Sensor Breakout and your Pi’s GPIO (note that it’s BCM pin numbering):
- 3-5V to any 5V or 3V pin
- CS to BCM 7
- SCK to BCM 11
- MOSI to BCM 10
- MISO to BCM 9
- INT to BCM 19
- GND to any ground pin