Skip to content

⌛ measure e2e system latency with an arduino and a photo diode

Notifications You must be signed in to change notification settings

davidramiro/e2e-latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

⌛ measure e2e system latency with an arduino and a photo diode

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published