Start on a stationary bench. The budget excludes a centrifuge and atomic clock. No measured results yet.
Stationary bench schematic
Inspect the proposed calibration fixture and signal paths. Final dimensions, components and qualification remain pending; the poster is not an authoritative wiring or fabrication drawing.
Open full-resolution schematic · Zoom & panStationary bench prototype — first calibration stage. Motor and optical sensor move together; the quartz reference stays fixed. This fixture is not centrifuge-rated.
Selected board: XIAO RP2040 (21 × 17.5 mm), USB-C, 3.3 V logic. Official pinout.
Component
Planning allowance
Board
$10
Motor and encoder
$25
Reference source
$15
Independent power
$15
Sensors
$15
Guard, wiring, conditioning
$20
Historical $100 target allocations; see the revised $200 ceiling below. Actual compatibility and pricing remain to be verified.
Physical event counter
Two PWM B counters: D5/GPIO7 encoder and D7/GPIO1 reference. Common ground; conditioned 0–3.3 V pulses. USB board supply, separate motor supply. No clock-derived motor speed regulation.
Prototype source only: uncompiled, untested on hardware, limited to initial 1 kHz trials. Stop both streams externally before reading final counts. Continuous snapshots are sequential in v0.1; shared gating is available in v0.2 below. Direct 10 MHz qualification remains future work.
The tiny XIAO remains our selected board. A dual 3.3 V AND gate enables both independent pulse streams together; the final counts are read after the gate closes. D0/GPIO26 is the enable, D5/GPIO7 and D7/GPIO1 receive the gated pulses. The motor is never controlled by this gate.
Qualification limit: 1 kHz. Gate-boundary pulses, electrical noise, missed edges and wrap handling must be measured. A 10 MHz source is not yet supported directly. No target compilation or hardware verification has been performed.
Enter counts from two runs. No hardware connected; no measured data.
R = 1.000000000
R = (test encoder/reference)/(baseline encoder/reference). Equal encoder resolution assumed. A ratio shift requires conventional instrument-effect calibration.
Desktop capture — prototype 0.3
Capture raw counts using USB serial and save append-only CSV logs. Simulation mode requires only Python; hardware mode requires pyserial and a qualified v0.2 counter. Hardware rows are marked unqualified. No hardware testing has been performed.
A continuously running divide-by-16,384 circuit would reduce 10 MHz to 610.3515625 Hz. This is a candidate design, not qualified hardware. Divided counts do not recover exact raw cycles; at one hour a provisional two-period boundary allowance is 9.10 × 10⁻⁷ per run, before other errors. Direct 10 MHz input remains unsupported. Keep encoder inputs within the initial 1 kHz limit.
Desktop laboratory dashboard — prototype 0.4
Local graphical Python application with simulation default, raw integer count logging and explicit unqualified hardware mode. No motor control or environmental sensor connection. Keep the two Python files together.
Encoder CPR is not necessarily single-channel rising-edge counts. Calibrate actual edges per output revolution. The $100 budget remains a target, not a confirmed shopping cart.
Environmental sensor module — prototype 0.5
Monitor local temperature, motor supply voltage and current with an optional second miniature XIAO. The default I²C clock pin conflicts with the existing encoder input, so the counter wiring remains unchanged. Snapshots before and after a run are stored alongside exact raw counts; they are not continuous measurements. No physical sensors or firmware have been qualified.
Provisional sensor allowance: $15 for second controller, voltage/current monitor and temperature sensor; not verified prices. Acceleration sensor and continuous logging remain future work.
Free-running motor and stationary baseline — prototype 0.6
Regulate voltage, never RPM. Prefer a simple direct-drive brushed DC motor, powered independently at fixed rated voltage. No PWM speed controller, speed feedback or clock synchronization. One optical marker per revolution provides a non-contact count. The microcontroller observes only. The earlier geared motor is an alternative, not the preferred design.
After hardware qualification and warm-up, collect ten stationary runs of nominally ten minutes. Record raw counts, motor-terminal voltage, current, temperature and configuration. Analyze wheel revolutions per reference cycle, repeatability and drift before changing orientation. No physical results yet; sample records are synthetic. Variability is not a detection threshold.
Superseded for precision motor selection by prototype 0.8 below.
Direct-drive motor, no RPM control. Prices checked 2026-11-27 where listed; other entries are allowances. Stationary commissioning only.
Part
USD
Price status
XIAO RP2040 counter
$6.20
listed
Pololu 1117 brushed motor
$2.95
listed reseller
QTRX-HD-01A optical sensor
$3.75
listed
DS3231 breakout, calibration reference
$17.50
listed
Independent current-limited DC supply
$20.00
allowance
Comparator with hysteresis, dual AND gate, pullups, decoupling
$9.00
allowance
Rated target, mount, enclosure
$20.00
allowance
USB cable, breadboard, wiring
$8.00
allowance
INA219 monitor
$9.95
listed optional
Second XIAO
$6.20
listed optional
TMP102 breakout
$8.00
allowance optional
Core $87.40; with optional automatic sensors $111.55. Excludes tax, shipping, tools and borrowed instruments. DS3231 1 Hz reference is for commissioning, not precision physics. Analog optical sensor requires comparator; rated target and guard required. Full cart and hardware qualification pending.
The earlier $2.95 motor and $87.40 budget are for commissioning only. Precision measurements favor a direct-drive brushed motor with ball bearings and documented load limits. Candidate Maxon DC-max 16 S has documented shaft loads; FingerAct FA-1725R 104B requires a quote and load specifications. Neither is approved for centrifuge use. Revised planning total $109.45–134.45 with a $25–50 motor, before optional sensors and shipping; actual qualified motor price may be higher.
Stationary qualification compares shaft up, down and sideways in balanced blocks while keeping the reference fixed. Record terminal voltage, current, temperatures and raw event counts. This changes gravity projection, not magnitude. Bearing friction and other ordinary effects remain possible.
Our preferred stationary laboratory budget is $100, with a $200 equipment ceiling. Quality and documented mechanical limits take priority. Earlier budgets are historical. Avoid a substantial wheel: first investigate an existing shaft feature or manufacturer-approved optical contrast mark. If contrast is inadequate, use a rated balanced encoder target or passive integrated encoder. No improvised shaft modifications or high-speed targets.
At 10,000 RPM one edge per revolution gives about 167 Hz, within the existing 1 kHz prototype qualification target, not yet hardware validated. Compare against an independent tachometer or calibrated strobe; characterize optical contrast, missed and extra edges, orientation and temperature. The motor remains free-running under constant voltage.
Illustrative loading: 1 g of added target mass at 100 g acceleration contributes about 0.981 N; a 1 g target with 0.1 mm eccentricity at 10,000 RPM contributes about 0.110 N rotating imbalance force. These are not safe operating limits or predicted bearing loads.
One rigid carrier holds the precision motor and optical sensor together. A secured stationary cradle permits shaft up, horizontal and shaft down positions while keeping the independent oscillator fixed. Stop and isolate power before repositioning. This is a concept, not a fabrication drawing or a centrifuge-rated fixture.
Six balanced blocks (18 orientation runs) and four same-orientation sham runs distinguish orientation contrasts from repositioning artifacts. Record all failed runs, gap, terminal voltage, current, temperatures and raw counts. Exact mounting dimensions depend on the chosen motor. The $200 equipment ceiling remains unchanged.
Regulate voltage, never RPM. At a qualified nominal motor voltage V0, compare 0.99 V0, V0 and 1.01 V0 in six balanced blocks (18 runs). All settings must remain within manufacturer limits. Keep orientation and reference configuration fixed. Measure actual motor-terminal voltage, current, motor and reference temperatures. Record raw counts and all failed attempts.
Estimate local logarithmic sensitivity S = d ln(encoder edges/reference edges)/d ln(voltage). Illustrative only: S=1.2, target fractional ratio uncertainty 0.0001 and 20% allocation to voltage imply approximately 100 microvolts allowable variation at 6 V. This is not measured performance. Voltage ripple, temperature, drift and meter uncertainty remain relevant. The ratio alone cannot establish universal time or distinguish relativity without a quantitative residual prediction.
Use a low-voltage current-limited bench supply initially, with no speed feedback. Battery plus linear regulation is a future candidate, not automatically quieter. Select only after motor startup and continuous current requirements are known. Measure voltage at the motor terminals, independently of the supply display. Record current limiting, temperature, ripple and electrical pickup; a slow meter alone cannot establish ripple.
For a local measured upper voltage sensitivity S, use the conditional mean-voltage bound S × (|Vtest − Vbase| + uncertainty of difference) / min(Vtest,Vbase). Example: 6 V, S=1.2, target 0.01%, 20% allocation gives about 100 microvolts allowed difference plus uncertainty. This is not measured performance. A passing screen does not qualify ripple, heating or other effects. $25 supply allowance; $100 preferred, $200 ceiling. Borrow calibrated instruments if possible.
Two RP2040 PWM edge counters accumulate independent pulses into 64-bit totals. A 5 ms read-gap limit flags ambiguous 16-bit wraps assuming no more than 10 MHz input. The existing external gate requires boundary calibration. Direct counting remains uncompiled and unqualified; the older low-frequency prototype remains available. At 10 MHz one hour nominally yields 36 billion cycles. No motor speed feedback.
Before connecting the independent motor and clock, temporarily feed both counters from one calibrated burst source and compare with an independent totalizer. Agreement between the two internal counters alone is insufficient. The 23-run schedule spans 100 Hz to 10 MHz, 16-bit rollover boundaries, counts above 2^32, a nominal one-hour run and deliberate read-stall fault detection.
Test gate transitions separately: an AND gate can introduce an edge when enabled during a high input or truncate a pulse. Measure actual gated waveforms and counts, swap channels and test unequal frequencies. No hardware measurements or firmware compilation yet. The host screen checks exact finite-burst counts and invalid flags; it does not certify hardware. Borrow calibrated instruments where possible. The motor remains free-running, with no RPM feedback.
Direct counter desktop integration — prototype 1.5
New desktop application preserves raw serial rows, firmware invalid flags and exact integer counts. Invalid or missing reference counts suppress the ratio. Simulation is default; all hardware remains unqualified. Existing firmware unchanged; target compiler unavailable. The legacy protocol lacks run IDs and acknowledgments.
Validate with a shared test pulse source, then independently powered motor and reference. Repeat stationary runs and orientation reversal before considering rated rotation equipment. Preserve failures and raw counts. No human riders or improvised rotors.