This repo contains a python script and an arduino sketch to render the output of an ADNS3080 mouse sensor as a grayscale image. This is ideal for focusing the lens as its obvious when an image is blurry. Doing so greatly improves the SQUAL value and subsequent motion detection.
Both files work in conjunction and must have the same baud rate and begin character. This last value controls when the python script receives information from the arduino.
A properly focused camera should produce these images:
- The script uses python 3
- The script requires the pyserial library.
- The script requires the tkinter library.
- The Arduino sketch makes use of the ADNS3080 library.
Credit goes to Lauszus for the inspiration. The script is largely based on his work.