Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 2.38 KB

README.md

File metadata and controls

22 lines (12 loc) · 2.38 KB

OpenBCI_32bit_Serial_Trigger

Code that receives a signal on the Serial port, and inserts a trigger into the data stream.

When the controlling program sends a '`' character, the OpenBCI 32bit Board will insert aux values into the data stream. The aux values in this code are 0x6620, and it is placed in the last 6 bytes of the data packet when it happenes. This example is in beta, and we are testing the latency between the controlling programs SEND and RECEIVE of the trigger. Also, when the trigger happens, the blue LED on the OpenBCI 32Bit Board will blink for 1/2 second.


Note that to USE the OpenBCI system, you will generally use the OpenBCI USB Dongle. The dongle requries that you install the FTDI drivers for your particular operating system: http://www.ftdichip.com/FTDrivers.htm

Download the latest Arduino IDE software from the Arduino site www.arduino.cc

Follow the instructions to download and install the latest chipKIT-core hardware files from the chipKIT-core wiki http://chipkit.net/wiki/index.php?title=ChipKIT_core

Before you can get started with programming or re-programming the OpenBCI 32bit Board, you will need to insall the libraries specific to it. These can be found here https://github.com/OpenBCI/OpenBCI_32bit_Libraries Put the OpenBCI_32_Daisy and OBCI_SD folders into your Documents/Arduino folder and restart Arduino to be able to select the sketch.

When you upload the firmware, select the 'OpenBCI 32' from the Tools -> Board menu, select the serial port of the dongle in the Tools -> Port menu. On a Mac, it should be something like /dev/cu/OpenBCI-XXXXXX. On a Windows, it will be an enumerated COM port.

The next step is to put the OpenBCI 32bit board into Bootloader mode, so that it can receive the code. To do this, press the RST and PROG buttons on the OpenBCI 32bit Board, then hold the PROG button while you release the RST button. If you do this right, the blue LED on the board will blink like crazy. Now you're ready to upload!

We are uploading the sketch over air! There is a chance that the process will fail! If you ever unplug the Dongle, you MUST turn on the OpenBCI Board AFTER you plug the Dongle back in. This is to be nice to the radios as it is best that the Board radio comes on line after the dongle radio.

If you have any questions, or need other help, go to the forum http://openbci.com/index.php/forum/