Robotics MSE · OpenFlexure Platform

How far from the lab bench can a microscope go and still hold focus?

A field-deployable open-source microscope is really a three-axis robotic stage. This project measures its operating envelope — the range of temperature and vibration over which it still meets its performance targets — then builds and tests fabrication that pushes that boundary outward.

PRECISION METROLOGY MECHANICAL FABRICATION THERMAL COMPENSATION
OPERATING ENVELOPESTOCK → MODIFIED
TEMPERATURE (°C, and rate of change) → VIBRATION → PERFORMANCE BUDGET = "still working" stock modified
stock boundary modified boundary the contribution
Design approach

You can't design for field conditions you don't know. So measure the envelope instead.

Normally a field instrument is designed against a known spec — the temperatures, vibration, and handling it must survive. Here that spec doesn't exist. Rather than guess, the project never claims the microscope "works in the field." It makes a measured statement: it meets its targets up to certain conditions, and fails beyond them.

The ceiling

Performance budget

The pass/fail lines that define "still working" — the stage returning within tolerance, focus error inside the depth of field, a scan that completes. Fixed by the imaging task, not the field.

The axes

Environmental stress

The conditions deliberately turned up and down on the bench: temperature, its rate of change, and vibration. Dust, humidity, and unreliable power are named and left out, honestly.

The deliverable

Envelope boundary

For each axis, push the stress until a target is crossed and record where. Measured for the stock microscope, then again for the modified one — the gap between them is the contribution.

The reality check

Anchoring

The measured envelope is compared against rough real-world ranges from published climate data and field reports — used to sanity-check coverage, never as design targets.

The engineering loop

Diagnose the problem, fix it, then make it hold up

Three interim deliverables follow one loop. Each produces matching before-and-after numbers using the same procedures, so every later claim is judged against the baseline that came before it.

Baseline the stock stage

Measure repeatability, backlash, focus-axis accuracy, and how motor steps map to micrometres and pixels — the "before" picture every improvement is measured against.

Out: baseline report · raw data (CSV) · calibration record

Fix the Z-axis

Design, build, and fit one intervention to the focus axis — a mechanical fix, a position encoder, or both — chosen to address the biggest weakness the baseline revealed.

Out: design report · CAD (source + STL) · BOM · before/after data

Compensate & integrate

Instrument the stage with temperature sensors, model how it drifts with heat, cancel most of that drift in software, and prove it with one full automated scan end to end.

Out: drift report · sensor-mount CAD · model code · operating notes

The final report ties all three into a single engineering story — not three reports stapled together — and carries the most weight.

What each deliverable contains

Four deliverables, one repository

Every claim is backed by before-and-after evidence and honest error bars; every fabricated part ships with files clear enough that someone else could rebuild it.

ID-1End of Wk 5

Baseline performance of the stock microscope

Send the XY stage to target positions in random order and measure how closely it returns, including direction-dependent backlash. Step Z to find best focus, comparing image-sharpness metrics (Laplacian variance, Brenner, Tenengrad, normalised variance) to see which is most reliable on this hardware. Record the step→mm→pixel conversions.

≈ 5–8 pp PDF · results table vs targets · raw CSV · analysis code
ID-2End of Wk 9

Focused fabrication intervention on the Z-axis

The Z axis gets the attention because the tightest target is on it. Pick a mechanical fix (anti-backlash preload spring, counterbalance), a sensor fix (linear encoder for an independent position reading), or both — then re-run the ID-1 Z tests on the changed instrument for matching before/after numbers.

design report PDF · editable CAD + STL · parts list · assembly steps
ID-3End of Wk 11

Thermal monitoring, compensation & integration

Mount temperature sensors where thermal expansion most moves the stage, log temperature and drift together over a one-hour scan, fit a correction model, and show the corrected drift is smaller than the uncorrected. Closes with a full automated scan proving the three deliverables work as one system.

report PDF · sensor-mount CAD + STL · logging CSV · model code · objective-swap procedure
D4End of Wk 12

Final report — the synthesis

One narrative: the question raised by deploying in unknown conditions, what the baseline found, which fix was chosen and why, the evidence it worked, the limits hit along the way, and what should come next — with a complete archive that lets someone else reproduce or build on the work.

data · code · CAD · BOM · calibration steps · operating manual
Three acceptable finish lines

Minimum, Target, Maximum — scope that grows

Each endpoint sets how much work the three interim deliverables involve. Target includes everything in Minimum and adds to it; Maximum includes everything in Target and adds more. The final report is required at all three.

Minimum

Diagnose & fix once

  • 30-position repeatability at one site; two sharpness measures across three sites
  • One Z-axis fix (mechanical or sensor) with before/after numbers
  • Two temperature sensors, one 60-min session, post-hoc correction, one full scan
Target

Add rigour & ablation

  • Repeatability at 2–3 sites with cross-axis check; third metric vs z-stack ground truth
  • Ablation of a combined fix; statistical tests with error bars
  • Third sensor; multiple sessions; multi-input model; objective swap over 5+ cycles
Maximum

Independent & live

  • Independent Z measurement; four metrics in full; image-based vibration breakdown
  • Combined mechanical + sensor fix; accelerometer resonances before/after
  • Heater-driven test point; live in-scan compensation; an independent-user handoff test

↻ The final report is required at every endpoint — it ties together whatever interim work was completed.

Twelve weeks · May 18 – Aug 13, 2026

Setup, then the loop, then synthesis

Week one has already passed at the time of the agreement. Weeks 1–2 are reading and procurement (long-lead encoders and sensors are ordered early); the remaining ten weeks run the three deliverables and the final report.

W1–2 Setup & Procurement W3–5 ID-1 Baseline W6–9 ID-2 Fabrication W10–11 ID-3 Thermal W12 Final
W1–2
Read & procureOpenFlexure handbook, literature review, place all orders, initialise the Git repository.
W3
Microscope operationalAssemble, run the calibration wizard, first stitched mosaic, begin coordinate-frame docs.
W4
XY baselineFiducial grid, repeatability run, backlash (+Δ vs −Δ), between-run variability.
W5
ID-1 submittedZ-stacks, sharpness metrics benchmarked, baseline table vs targets, intervention candidates flagged.
W6
Choose & designConfirm intervention path with advisor; CAD the Z-axis brackets and mounts; first prints.
W7
Fabricate & fitBuild parts, assemble into the microscope, integrate encoder or install preload/counterbalance.
W8
Re-test ZRe-run the ID-1 focus protocol on the modified stage; begin paired before/after analysis.
W9
ID-2 submittedPaired stats with uncertainty, ablation if required, failure modes documented, report committed.
W10
Instrument for heatPrint sensor mounts, calibrate against a reference thermometer, set up position+temperature logging.
W11
ID-3 submittedThermal sessions, compensation model, (Max: heater + live correction + handoff), end-to-end scan.
W12
Final report submittedSynthesise ID-1→ID-2→ID-3 into one engineering narrative, complete the operating manual, tag the repository v1.0, final supervision meeting.
How the work is judged

The final report carries the most weight

The three interim deliverables build the engineering record; the final report is where it all comes together. Each interim deliverable uses the same six-part rubric.

Course weighting

ID-1 · Baseline10%
ID-2 · Fabrication10%
ID-3 · Thermal & integration10%
Final report · synthesis70%

Interim rubric (each deliverable)

  • Engineering rationale20%
  • Technical execution20%
  • Quantitative analysis20%
  • Evidence-based outcomes20%
  • Documentation & reproducibility10%
  • Integration & engineering judgment10%
Bill of materials

About $590 in parts

Rough estimates from the project's reference documents. Shipping, taxes, purchasing fees, and optional extras are not included.

ItemRolePhaseEst.
OpenFlexure motorised kitBase instrument: 3-axis flexure stage, Pi, camera, softwareCORE$250
USAF 1951 resolution targetSpatial reference & autofocus benchmark subjectID-1$45
Stage micrometer / fiducial gridGround truth for XY repeatabilityID-1$60
Histology teaching-slide setFeature-dense focus & integration samplesID-1$60
Blank slides & coverslipsCamera-calibration baselineID-1$20
Magnetic linear encoder + stripIndependent Z position measurementID-2$40
Arduino / breakout + cablingSensor interfacing & loggingID-2$25
Springs, brackets, fastenersAnti-backlash preload & counterbalanceID-2$20
3D-printer filament (PLA, PETG)Custom brackets & sensor mountsID-2/3$30
Temperature sensors (DS18B20 ×3)Multi-point thermal monitoringID-3$25
MEMS accelerometer (optional)Instrumented vibration readoutID-2 MAX$15
Total estimateAll categories combined$590

Learning objectives covered: precision metrology · experimental design & uncertainty · coordinate frames & transformations · mechanical design for precision · sensor integration · empirical compensation · engineering documentation.