Measure how long your mouse actually takes to click โ to the microsecond.
A Teensy 2.0 watches a probe touch the switch, the dashboard watches Windows report the click,
and the difference is your real input latency. Archive it, chart it, compare it.
No hardware yet? The app ships a built-in simulator โ Settings โ Demo mode.
Prototype A1 PCB
The compact BPV10 PCB documentation includes the KiCad design,
schematic, fabrication files, BOM and assembly instructions. The new optical board is an
unbuilt prototype: electrical/layout checks pass, but physical validation, comparator
firmware and the enclosure are still pending. This is separate from the existing assembled
tester described below.

Top โ OPA380 TIA, TLV3501 comparator, threshold trimmer, BTN1/BTN2
|

Bottom โ the BPV10 photodiode faces the monitor
|
KiCad 3D render of the A1b design (56 ร 48 mm), not a photo: the board has not been built or tested yet.
The Teensy 2.0 has no 3D model, so only its header pads show; the photodiode is drawn with a generic 5 mm LED model.
Flat top and bottom views and a
STEP model for the enclosure are in the repo.
Gallery
Live test โ mean, median, P5/P95/P99, IQR, MAD and jitter, with outliers ringed on the chart.

Compare โ box plot with baseline deltas in ms and %
|

ECDF โ where the slow clicks actually live
|

Test mode โ ๐ฉ armed, press now
|

Test mode โ ๐ฅ wait / release
|
More screenshots โ light theme, sessions, devices, settings, raw samples, histogram

Live test โ light theme
|

Sessions โ searchable archive
|

Compare โ raw samples
|

Compare โ histogram
|

Devices โ one profile per mouse
|

Settings โ theme, language, one-click update
|

Test mode โ ๐ฆ target reached
|
Screenshots are taken in demo mode, which is why they carry the simulated-data banner.
What this actually measures
A metal probe is clamped so that it touches a strip of copper tape on the mouse button at the exact
instant the switch actuates. That contact closure is tโ, taken inside an interrupt on the Teensy.
The mouse then sends its HID report, Windows delivers the click, and the dashboard answers the
Teensy โ tโ. The calibrated serial round-trip is subtracted from tโ โ tโ.
The result covers switch debounce, the mouse's internal processing, the wireless or USB link, the
polling interval and the OS input stack. It does not cover display or render latency.
Important
The method is completely non-invasive. The mouse is never opened, nothing is soldered to its
PCB, and no transistor is wired across its microswitch. The only mouse-side modification is a
strip of removable conductive copper tape on the outside of the left button. Peel it off and
the mouse is exactly as it was.
Where the project is
The KY-018 build is finished and it works. Every part of it is built, wired and verified on the
bench, and every release ships against it. Nothing in the table below is waiting on hardware.
A second front-end is being built โ a BPV10 photodiode with a transimpedance amplifier and a
comparator, replacing the photoresistor. It is designed, not assembled: no firmware talks to it
yet and no measurement in this repository comes from it. It matters because it moves tโ from a
software threshold on a sampled ADC value to a hardware interrupt, which takes the sensor's own
response out of the measurement โ on a 360 Hz OLED the KY-018 is now the largest unknown left in
the chain. Design and BOM: docs/optical_front_end.md.
An enclosure is the other open item: a 3D-printed box for the whole thing, with a mount that
holds the probe steady. That one changes no measurement. The compact board's
STEP model is its starting point.
Feature maturity
|
Feature |
Status |
| 1 |
Probe method โ the measurement above |
โ
Working and verified on real hardware. Every number the app produces comes from this path |
| 2 |
OLED SH1106 |
โ
Working. Frozen during test mode so IยฒC traffic cannot disturb the timing |
| 3 |
KY-018 light sensor |
โ
Working, but telemetry only. Recorded with each run; it plays no part in any measurement |
| 4 |
BTN1 / BTN2 buttons |
โ
Working. 10/10 acceptance test passed on hardware. BTN1 enters/leaves test mode, BTN2 clears the live run outside test mode. Presses are still counted and logged |
| 5 |
Probe-to-Photon mode |
โ
Working, firmware v1.5. Separate mode, own calibration, own metric. Verified on hardware: 40 clicks, ~16 ms median against ~3 ms on the same mouse in Probe-to-PC. Accuracy is limited by the KY-018 โ read this before quoting a number |
| 6 |
Frame cap on the optical target |
โ
Working. 30 / 60 / 120 / 240 / 360 / 500 / 1000 fps, or follow the monitor. Recorded with the run |
| 7 |
Photodiode front-end (BPV10 + OPA380 + TLV3501) |
๐ง Designed, not built. Would make tโ a hardware interrupt instead of a sampled threshold โ design |
| 8 |
In-game measurement |
๐ Planned, and it needs row 7 first. Visible but disabled in the mode picker |
Rows 1โ6 are built and verified. There is no component in this project that is wired but unused, and
none that is listed but unwired.
Install
Windows installer ย recommended
Grab LatencyTester-<version>-Setup.exe from the
latest release.
It installs the dashboard, the firmware sketches and the full documentation
into a single folder, so you can flash the Teensy without cloning anything.
- Per-user install by default โ no admin rights needed
- Your archive lives in
Documents\LatencyTester\ and is never touched by the uninstaller
- Built-in one-click updater: Settings โ Check for updates
The installer is not code-signed, so SmartScreen warns on first run.
Verify SHA256SUMS.txt from the release.
|
From source
git clone https://github.com/PrimeBuild-pc/MouseLatencyTester.git
cd MouseLatencyTester
pip install -r requirements.txt
python run_dashboard.py
No hardware?
Settings โ Demo mode โ Start demo device.
A simulator that speaks the real serial protocol drives the whole interface,
the charts and the archive. Runs saved that way are flagged [DEMO] and never
mixed with real measurements.
|
Languages
๐ฌ๐ง English ย ยทย ๐ฎ๐น Italiano ย ยทย ๐ฉ๐ช Deutsch ย ยทย ๐ช๐ธ Espaรฑol ย ยทย ๐ซ๐ท Franรงais ย ยทย ๐ฏ๐ต ๆฅๆฌ่ช ย ยทย ๐ท๐บ ะ ัััะบะธะน ย ยทย ๐จ๐ณ ไธญๆ
Switch under Settings โ Language