title: Using Arduino microcontroller boards to measure response latencies.
abstract: Latencies of buttonpresses are a staple of cognitive science paradigms. Often keyboards are employed to collect buttonpresses, but their imprecision and variability decreases test power and increases the risk of false positives. Response boxes and data acquisition cards are precise, but expensive and inflexible, alternatives. We propose using open-source Arduino microcontroller boards as an inexpensive and flexible alternative. These boards connect to standard experimental software using a USB connection and a virtual serial port, or by emulating a keyboard. In our solution, an Arduino measures response latencies after being signaled the start of a trial, and communicates the latency and response back to the PC over a USB connection. We demonstrated the reliability, robustness, and precision of this communication in six studies. Test measures confirmed that the error added to the measurement had an SD of less than 1 ms. Alternatively, emulation of a keyboard results in similarly precise measurement. The Arduino performs as well as a serial response box, and better than a keyboard. In addition, our setup allows for the flexible integration of other sensors, and even actuators, to extend the cognitive science toolbox.
authors.affiliation: Instituto Universitário de Lisboa (ISCTE-IUL), Centro de Investigação e Intervenção Social, Av. Forças Armadas, Ed. ISCTE-IUL, 1649-026, Lisbon, Portugal, schubert@igroup.org.
authors.forename: Thomas W
authors.initials: TW
authors.lastname: Schubert
authors.forename: Alessandro
authors.initials: A
authors.lastname: D'Ausilio
authors.forename: Rosario
authors.initials: R
authors.lastname: Canto
mesh_terms: D016287:Computer Peripherals; D003626:Data Display; D004867:Equipment Design; D006801:Humans; D008838:Microcomputers; D011603:Psychophysiology / Q000295:instrumentation*; D011930:Reaction Time / Q000502:physiology*; D015203:Reproducibility of Results; D012984:Software; D014584:User-Computer Interface