PWM3901_SoftSPI is an Arduino library for the Pixart PMW3901 optical flow sensor. The driver is developed to support the breakout boards from Bitcraze and Pesky Products. It communicates with the sensor using Software SPI. PMW3901 is an optical flow ASIC that computes the flow internally and provides a difference in pixels between each frame. Manufactured by Pimoroni Ltd, this sensor leverages advanced algorithms to provide precise motion data, making it an essential component for robotics, drones, and other autonomous systems. This makes it an excellent choice for applications requiring precise motion tracking. The materials used are as follows STM32F103 minimum system board and a PMW3901 optical flow module By reviewing the PMW3901 data sheet can be known that the chip uses SPI. To enable the Holybro PMW3901 optical flow sensor in Ardupilot, set FLOW_TYPE to 4 and SERIALx_PROTOCOL to 18. If you are not sure which serial port you are using, here is a list of serial mapping for the Pixhawk 6 family: Once the sensor is correctly configured, check the opt related values from.
[PDF Version]