/PMW3901

Arduino library for PMW3901 optical flow sensor

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Arduino driver for PMW3901 optical flow sensor

This header-only Arduino library is based on on the C driver code for the Crazyflie quadcopter from Bitcraze. It differs in the following ways:

  • Unlike the Bitcraze PMW3901 Arduino repository, their C driver provides a data structure that includes a flag for whether motion was detected, which may be useful to know for sensor fusion. Hence my C++ class returns this flag along with the delta-X and delta-Y motion values.

  • Supports different SPI buses (SPI, SPI1, etc.)