Changes

Jump to navigation Jump to search
27 bytes removed ,  13:50, 7 August 2019
no edit summary
Line 1: Line 1:  
{{Infobox tsg
 
{{Infobox tsg
| name          = Buttonbox
+
| name          = Buttonbox (2018)
| image          = Buttonbox 03s.png
+
| image          = Buttonbox_2018_1.png
 
| caption        = 2018 Buttonbox
 
| caption        = 2018 Buttonbox
 
| downloads      = {{bulleted list
 
| downloads      = {{bulleted list
       | [[Media:buttonbox2018.pdf|Buttonbox 2018 Hardware Design]]
+
       | [https://surfdrive.surf.nl/files/index.php/s/PPTKCyrjLkN4XUO Buttonbox 2018]
      | [[Media:BITSI2018_Teensy36.zip|Code Template 2018 (Teensy 3.6)]]
  −
      | [[Media:serial_install.zip|Driver Teensy 3.6]]
   
       | [https://pypi.python.org/pypi/RuSocSci RuSocSci] (Python package)
 
       | [https://pypi.python.org/pypi/RuSocSci RuSocSci] (Python package)
 
   }}
 
   }}
Line 15: Line 13:  
| caption        = 2013 Buttonbox
 
| caption        = 2013 Buttonbox
 
| downloads      = {{bulleted list
 
| downloads      = {{bulleted list
       | [[Buttonbox 2013 Hardware|Buttonbox 2013 Hardware Design]]
+
       | [https://surfdrive.surf.nl/files/index.php/s/72XEcu2XKSgzxjp Buttonbox 2015]
      | [[Media:BITSI_tempalte2015_duemilanove.zip|Code Template 2015 (Duemilanove)]]
   
       | [https://pypi.python.org/pypi/RuSocSci RuSocSci] (Python package)
 
       | [https://pypi.python.org/pypi/RuSocSci RuSocSci] (Python package)
 
   }}
 
   }}
Line 65: Line 62:  
===Output===
 
===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. '''[2015]Press button H and A for simple mode and H and B for extended mode.[2018]Press button E and A for simple mode and E and B for extended mode.'''
+
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 or com port opens. '''[2015]Press button H and A for simple mode and H and B for extended mode. [2018]Press button E and A for simple mode and E 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.
 
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.
Line 226: Line 223:  
=== Python/PsychoPy ===
 
=== Python/PsychoPy ===
   −
Download this site-package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]
+
Download this site-package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]  
 +
 
 +
or use in windows command 'pip install --upgrade rusocsci'
    
'''Example using buttons from the buttonbox in Python:'''
 
'''Example using buttons from the buttonbox in Python:'''
Line 290: Line 289:  
# make a buttonbox
 
# make a buttonbox
 
ser = serial.Serial("COM2", 115200, timeout = 0.10 )
 
ser = serial.Serial("COM2", 115200, timeout = 0.10 )
 +
ser = serial.Serial("/dev/ttyUSB0", 115200, timeout = 0.10 )
    
while True:
 
while True:

Navigation menu