https://github.com/davidramiro/e2e-latency
⌛ measure e2e system latency with an arduino and a photo diode
https://github.com/davidramiro/e2e-latency
arduino atmega latency-tester
Last synced: over 1 year ago
JSON representation
⌛ measure e2e system latency with an arduino and a photo diode
- Host: GitHub
- URL: https://github.com/davidramiro/e2e-latency
- Owner: davidramiro
- Created: 2024-03-09T18:25:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T11:59:46.000Z (over 2 years ago)
- Last Synced: 2025-03-24T06:56:41.681Z (over 1 year ago)
- Topics: arduino, atmega, latency-tester
- Language: C++
- Homepage:
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# e2e-latency
Get a rough estimate on end-to-end (mouse-to-screen) system latency by attaching a photo resistor to your screen and measuring response time with an Arduino.
## BoM
- Arduino Pro Micro (ATmega32U4)
- SSD1306 I2C OLED screen
- Photoresistor module with analog output, e.g. KY-018 or G5516/LM393
## Wiring

## Usage
- Set up a repeatable test scenario where a mouse movement would cause a screen change (e.g. FPS game)
- Tape the photo resistor to the screen
- Connect USB
- Open a serial monitor with 115200 baud, e.g. `screen /dev/ttyACM0 115200`
Test starts 5 seconds after connecting USB. It will do 10 cycles, print the average latency and repeat until disconnected.