Skip to content

RCmags/ADNS3080_frame_capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ADNS3080 - frame Capture

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:

Requirements

  • 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.

References

Credit goes to Lauszus for the inspiration. The script is largely based on his work.