Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgladwin committed Aug 15, 2017
1 parent b694a8c commit 2f6c509
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
@@ -1,11 +1,13 @@
# lebab
Send markers via USB and an Arduino for psychophysiological experiments. The current version is very basic and shouldn't be used if time precision is necessary - there's at least a 5 ms uncertainty. Good enough for some purposes though.
Send markers via USB and an Arduino for psychophysiological experiments.

# Hardware
An Arduino or clone; I used an Elegoo Nano. This included the USB cable and header pins. Breadboard and jumper wires for prototyping, with a LED and resistor for testing. Lab-specific cables.

# Software for the Arduino
The Processing code to be uploaded to the Arduino is in lebab.ino. What this does is check whether a character representing a digit from ‘0’ to ‘7’ is sent via USB to the Arduino. If so, the corresponding digital pin is set to HIGH for 5 ms. The characters ‘1’ through ‘8’ are mapped to digital pins 12 through 5. Note that if you take an Arduino Nano and attach it to the top of a breadboad via header pins, its digital pins 12 through 5 are connected to lines 1 (the top line) down to 8.

This allows you to control pins from task presentation software such as EPrime or Presentation (see below).
This allows you to control pins from task presentation software such as EPrime or Presentation (see below). You can test things via the Serial Monitor.

The Arduino’s ground and the digital pins can be attached to further cables as desired, such as a BNC cable or DB25 parallel port.

Expand Down

0 comments on commit 2f6c509

Please sign in to comment.