This Arduino project emulates the famous 5-buttons / 5-lamps Serial Response Box model 200A from PST.
The PST Serial Response Box (sr-box) is famous in psychology research and is often used with E-prime or OpenSesame. This cheap Arduino (UNO) sr-box is compatible with the PST model 200A sr-box, but has no voice key functionality.
With arduino-srbox it is possible to connect up to five switches with normally-open contacts to inputs A0 to A4. Each switch connects to GND and one input.
When using normally-closed contacts, please change the code en set ncSwitch = true (unused inputs must be tied to GND).
Use LED's with 330E to 1K series resistors on outputs 2-6. Please refer to the Arduino website on how to connect LED's to digital ports.
When using transistor logic at the lamp outputs, the logic levels can be inverted by setting outputInvert = true in the code.
For using the arduino-srbox in OpenSesame, drag the srbox plugin into the experiment. Use port /dev/ttyACMx, /dev/ttyUSBx or COMx on Windows.
In OpenSesame 4.1 it seems not possible to control the lamps from the plugin panel by sending a character (e.g. 'a') or an integer number. To control the lamps, use the inline python block to execute: srbox.send('d'), for example here to turn on lamp 3.
The OpenSesame srbox documentation can be found here:

