Assembly instructions

In order to use the mice sensors, the PCB and the lens must be removed from the optical mouse and the VDD, GND, MISO, MOSI, NCS and SCLK must be soldered with wires to be connected to the microcontroller with the microcontroller 3.3V power supply output. These pins are the pins for SPI communication, the SCLK is the clock selected on the ADNS-3050.h C++ library in our case the Arduino DUE internal clock divided by 21 (4 MHz). The NCS is the pin which allows communication with more than one device by changing the state of this pin to HIGH or LOW. The MOSI and MISO pins are to send the data in both directions.

Figure1
Figure 1. Soldered pins on the ADNS-3050

The lens and the PCB are assembled with the PCB holder part 1 and 2 placing the lens as in Figure 1 and inserting the screws to attach both parts together.

Figure2
Figure 2. ADNS-3050 assembled with the lens.

The provided library is the library created by Tom Wiggins on GitHub [1] for a 3D printable gaming optical mouse, a project also published on Hackaday [2]. The library has been modified duplicating the functions needed to control and get data from two optical mice.

References

[1] https://github.com/Tom101222/Adns-3050-Optical-Sensor

[2] https://hackaday.io/project/18344-adns-3050-optical-sensor-mouse