Operation

Capturing Images

The PiAutoStage captures images by integrating Python, Raspberry Pi HQ Camera, and Arduino technology. The system is controlled by a central Raspberry Pi computer running a Python script.

Python Code

The Python script is the main control code for the PiAutoStage. The Python script sends stage coordinates to the Arduino Microcontroller which then instructs the servos to move the sample into position. The Python script then captures an image with the HQ Camera. This process repeats until all the sample is imaged. See the GitHub repository for the script.

Arduino Sketch

Our Arduino sketch (script) interprets instructions from the Python code then delivers coordinates to the servo motors. An important feature of our script is a GoCode that prevents the servos from moving unless specific instructions are given. This prevents unintended movement during startup that may damage the stage or microscope. See the GitHub repository for the script.

The PiAutoStage device mounted to a microscope stage. A thin section slide sits in the carriage. Wires connect to computer that is out of frame.
The first PiAutoStage
Time-lapse of the PiAutoStage collecting images.