This is an Arduino library for ADNS3080 mouse sensor. It provides a simple interface to retrieve motion and frame data from the sensor. It is generally sold as a module with a lens attached. This code was written for such a module. The following schematic shows how to connect the module to an arduino uno. It’s the same for other boards except the SPI spins change.

image

To focus the camera see the following repo: ADNS3080_frame_capture. It contains an arduino sketch and a python script that work in conjunction with this library.

References:

Credit goes to Lauszus and Neumi for on their code to get the sensor to work with arduino. This library is essentially a repackaging of their code into a neater form.
https://github.com/Lauszus/ADNS3080
https://github.com/Neumi/OpticalFlowA3080ArduinoProcessing

For more information on this sensor see the datasheet

The schematic was found on this forum post (the page also contains another library).

Github Repo:

ADNS3080