OpenBCI / OpenBCI_Cyton_Library

Repository for OpenBCI Cyton Arduino Libraries
MIT License
87 stars 88 forks source link

One marker strategy to rule them all.... #88

Open gerrievanzyl opened 6 years ago

gerrievanzyl commented 6 years ago

Problem

Currently OpenBCI supports two marker strategies, each with its own advantages:

  1. Optosensor connected to a pin on the OpenBCI board - extremely accurate timing
  2. UDP markers - rich annotation of markers

Challenge

Could we support a marker strategy where the best of both mechanisms are combined?

Potential solutions

Solution 1

In Marker mode insert both UDP and the the Opto markers. During post processing the Opto marker can be used for the timing and the UDP marker can be used for the annotation. This solution would work for bluetooth and wifi connections.

The presentation software can be configured to to send the maker 50ms before the stimulus in which case the UDP marker would be assured to arrive before the opto marker. This would enable the firmware to annotate the opto maker with the UDP information.

Solution 2

Send the UDP marker directly to the Cyton board (requires wifi board). In this case the UDP marker could be assured of arriving before the optomarker and this would make matching very easy.

Any thoughts?