Published March 6, 2020 | Version v1
Software Open

Chief Ray Angle Compensation for the Raspberry Pi Camera Module

  • 1. University of Bath
  • 2. University of Cambridge


This repository contains the hardware (OpenSCAD/STL files and build instructions, software (Python scripts and Arduino firmware), data analysis (iPython notebook), and manuscript describing how to calibrate the colour response of a Raspberry Pi camera module.

  • analysis contains the data analysis code.
  • data contains the images that we used for the graphs in the manuscript.
  • neopixel_driver is the arduino firmware.
  • image_acquisition includes the Python code that acquired the images and controlled the neopixel.
  • calibration_jig contains the printable files, source OpenSCAD files, and assembly instructions for the calibration jig.
  • colour_test_sheet contains source Inkscape SVG files and PDF renders of the test target used in the experiments.
  • manuscript contains the source files for the manuscript.

This is an open project, run by the Bath Open Instrumentation Group, part of the University of Bath. Unless otherwise specified, all code is licensed under the GPL v3 or later, hardware is under the CERN open hardware license, and documentation/manuscript is CC-BY 3.0 or later. The repository will be archived along with a published paper once it has been peer reviewed. If you are viewing a static archive of these files, you may want to consult the working repository, which may receive updates in the future.


Files (317.2 MB)

Name Size Download all
317.2 MB Preview Download

Additional details


Open Lab Instrumentation EP/P029426/1
UK Research and Innovation
Parallelised live microscopy for high-throughput behavioural phenotyping in malaria research EP/R011443/1
UK Research and Innovation
Detailed malaria diagnostics with intelligent microscopy EP/R013969/1
UK Research and Innovation