Changes

Jump to navigation Jump to search
6,063 bytes added ,  14:33, 28 April 2014
no edit summary
Line 2: Line 2:     
The buttonbox is used for time accurate(1ms) button press registration. We use it to register buttonpresses, soundkey, voicekey signals and to send tone onset, analog output, triggers with the BITSI protocol. It is suitable for Behavioral, EEG, MEG, and fMRI experiments. The buttonbox is connected to a computer with a usb connection.
 
The buttonbox is used for time accurate(1ms) button press registration. We use it to register buttonpresses, soundkey, voicekey signals and to send tone onset, analog output, triggers with the BITSI protocol. It is suitable for Behavioral, EEG, MEG, and fMRI experiments. The buttonbox is connected to a computer with a usb connection.
 +
 +
The output connector has two binary eight bit ports: input and output. The two ports can be used for responses (input) and stimulus triggers (output). Two 8 bits analog outputs and three 8 bits analog inputs. The output connector has a sound and voicekey which triggers when a amplitude reaches a threshold. By using the serial port, the BITSI can be used platform independently: it works on Windows, Linux and Mac OSX. Most programming environments and stimulus packages support serial communication. 
    
== BITSI Protocol ==
 
== BITSI Protocol ==
   −
BITSI stands for Bits to Serial Interface.The hardware design is based on an interface board called Arduino, which is named a BITSI shield or add-on. The shield is designed in a way that it can be duplicated easily. Find the technical design drawings attached.
+
BITSI stands for Bits to Serial Interface. Because the BITSI is designed to interface both in- and output signals, the 'protocol' is asymmetric: the input and output protocols differ. 
 +
 
 +
'''Input'''
 +
 
 +
The input port can be used to interface eight buttons maximally. Button presses are translated to serial output characters/bytes according to the following table:
 +
 
 +
{| border="0" cellspacing="0" cellpadding="0" width="462" style="width:462px;"
 +
|-
 +
| style="width:113px;height:22px;" |
 +
'''Signal / Button'''
 +
 
 +
| style="width:170px;height:22px;" |
 +
'''ASCII''' (rising / falling)
 +
 
 +
| style="width:180px;height:22px;" |
 +
'''Code''' (rising / falling)
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
1
 +
 
 +
| style="width:170px;height:22px;" |
 +
A / a
 +
 
 +
| style="width:180px;height:22px;" |
 +
65 / 97
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
2
 +
 
 +
| style="width:170px;height:22px;" |
 +
B / b
 +
 
 +
| style="width:180px;height:22px;" |
 +
66 / 98
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
3
 +
 
 +
| style="width:170px;height:22px;" |
 +
C / c
 +
 
 +
| style="width:180px;height:22px;" |
 +
67 / 99
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
4
 +
 
 +
| style="width:170px;height:22px;" |
 +
D / d
 +
 
 +
| style="width:180px;height:22px;" |
 +
68 / 100
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
5
 +
 
 +
| style="width:170px;height:22px;" |
 +
E / e
 +
 
 +
| style="width:180px;height:22px;" |
 +
69 / 101
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
6
 +
 
 +
| style="width:170px;height:22px;" |
 +
F / f
 +
 
 +
| style="width:180px;height:22px;" |
 +
70 / 102
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
7
 +
 
 +
| style="width:170px;height:22px;" |
 +
G / g
 +
 
 +
| style="width:180px;height:22px;" |
 +
71 / 103
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
8
 +
 
 +
| style="width:170px;height:22px;" |
 +
H / h
 +
 
 +
| style="width:180px;height:22px;" |
 +
72 / 104
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
SoundKey
 +
 
 +
| style="width:170px;height:22px;" |
 +
S / s
 +
 
 +
| style="width:180px;height:22px;" |
 +
83 / 115
 +
 
 +
|-
 +
| style="width:113px;height:22px;" |
 +
VoiceKey
 +
 
 +
| style="width:170px;height:22px;" |
 +
V / v
 +
 
 +
| style="width:180px;height:22px;" |
 +
86 / 118
 +
 
 +
|}
 +
 
 +
This means that when signal 1 gets /activated?, a capital A will be sent to the serial port. A lowercase 'a' will be sent when the signal is deactivated?. Mechanical buttons can be connected directly.
 +
 
 +
'''Output'''
 +
 
 +
Output knows two protocols: BITSI simple or BITSI extended. To enter a certain protocol two buttons have to be pressed when the BITSIbox is powered. Press button H and A for simple mode and H and B for extended mode.
 +
 
 +
If no button is pressed when powered it boots the last known protocol. In the simple protocol every byte sent to the BITSI over the serial port, is represented at the 8 bit output.
 +
 
 +
The '''extended''' protocol uses two bytes?, this combination can access two analog outputs and a tone generator. The first byte selects the output. The second byte determines the value written to this output.
 +
 
 +
 
 +
{| border="1" cellspacing="0" cellpadding="0" width="434" style="width:434px;"
 +
|-
 +
| style="width:122px;height:22px;" |
 +
'''Function'''
 +
 
 +
| style="width:161px;height:22px;" |
 +
'''Byte 1 (ASCII / code)'''
 +
 
 +
| style="width:151px;height:22px;" |
 +
'''Byte 2'''
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Marker out
 +
 
 +
| style="width:161px;height:22px;" |
 +
M / 77
 +
 
 +
| style="width:151px;height:22px;" |
 +
Marker value
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog out 1
 +
 
 +
| style="width:161px;height:22px;" |
 +
Y / 89
 +
 
 +
| style="width:151px;height:22px;" |
 +
Analog output value
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog out 2
 +
 
 +
| style="width:161px;height:22px;" |
 +
Z / 90
 +
 
 +
| style="width:151px;height:22px;" |
 +
Analog output value
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Tone
 +
 
 +
| style="width:161px;height:22px;" |
 +
T / 84
 +
 
 +
| style="width:151px;height:22px;" |
 +
Start tone
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Detect Sound
 +
 
 +
| style="width:161px;height:22px;" |
 +
D
 +
 
 +
| style="width:151px;height:22px;" |
 +
S / 83
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Detect Voice
 +
 
 +
| style="width:161px;height:22px;" |
 +
D /
 +
 
 +
| style="width:151px;height:22px;" |
 +
V / 83
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Calibrate Sound
 +
 
 +
| style="width:161px;height:22px;" |
 +
C /
 +
 
 +
| style="width:151px;height:22px;" |
 +
S
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Calibrate Voice
 +
 
 +
| style="width:161px;height:22px;" |
 +
C /
 +
 
 +
| style="width:151px;height:22px;" |
 +
V
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog in 1
 +
 
 +
| style="width:161px;height:22px;" |
 +
A /
 +
 
 +
| style="width:151px;height:22px;" |
 +
1
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog in 2
 +
 
 +
| style="width:161px;height:22px;" |
 +
A /
 +
 
 +
| style="width:151px;height:22px;" |
 +
2
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog in 3
 +
 
 +
| style="width:161px;height:22px;" |
 +
A /
 +
 
 +
| style="width:151px;height:22px;" |
 +
3
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
Analog in 4
 +
 
 +
| style="width:161px;height:22px;" |
 +
A /
 +
 
 +
| style="width:151px;height:22px;" |
 +
4
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
LEDs off
 +
 
 +
| style="width:161px;height:22px;" |
 +
L /
 +
 
 +
| style="width:151px;height:22px;" |
 +
X
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
LEDs input
 +
 
 +
| style="width:161px;height:22px;" |
 +
L /
 +
 
 +
| style="width:151px;height:22px;" |
 +
I
 +
 
 +
|-
 +
| style="width:122px;height:22px;" |
 +
LEDs output
 +
 
 +
| style="width:161px;height:22px;" |
 +
L /
 +
 
 +
| style="width:151px;height:22px;" |
 +
O
 +
 
 +
|}
 +
 
 +
==
 +
'''Trigger port settings'''
 +
 
 +
[[File:]]
 +
 
 +
The 25 pins female connector has 8 inputs and 8 outputs, respectively 1-8 are inputs and 9-16 are outputs. Three analog input with an analog to digital convertor of 12 bit, pins 17,18,20 and 21. Two analog outputs with an digital to analog convertor of 12 bits on pins 22 and 23.
 +
 
 +
'''Serial port settings'''
 +
 
 +
Our hardware design allows to be connected to the computers USB and emulates a serial [[port]][[File:file:///Z:/DCC-003-TD/pdwater/project/2013/Buttonbox2013/BITSIExtendedDocumentation2013_editmir.docx#_msocom_1|[mk1]]] .
 +
 
 +
{| border="0" cellpadding="0"
 +
|-
 +
|
 +
'''Baudrate'''
 +
 
 +
| style="width:69px;" |
 +
115200
 +
 
 +
|-
 +
|
 +
'''Parity'''
 +
 
 +
| style="width:69px;" |
 +
none
 +
 
 +
|-
 +
|
 +
'''Data bits'''
 +
 
 +
| style="width:69px;" |
 +
8
 +
 
 +
|-
 +
|
 +
'''Stop bits'''
 +
 
 +
| style="width:69px;" |
 +
1
 +
 
 +
|-
 +
|
 +
'''Flow control'''
 +
 
 +
| style="width:69px;" |
 +
none
 +
 
 +
|}
 +
 
 +
 
 +
'''Presentation settings'''<div>
 +
----
 +
<div><div id="_com_1" uage="JavaScript">
 +
&nbsp;[[File:file:///Z:/DCC-003-TD/pdwater/project/2013/Buttonbox2013/BITSIExtendedDocumentation2013_editmir.docx#_msoanchor_1|[mk1]]]Nog invoegen waar je dit instelt/checkt?
 +
</div></div></div> ==
   −
The output connector has two binary eight bit ports: input and output. The two ports can be used for responses (input) and stimulus triggers (output). Two 8 bits analog outputs and three 8 bits analog inputs. The output connector has a sound and voicekey which triggers when a amplitude reaches a threshold?. The baseline for this treshold is determined for 1 sec when the BITSIbox is powered (no sound should be applied). By using the serial port, the BITSI can be used platform independently: it works on Windows, Linux and Mac OSX. Most programming environments and stimulus packages support serial communication.&nbsp;
+
==  ==
    
== USB-Com port settings ==
 
== USB-Com port settings ==
Anonymous user

Navigation menu