Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

USB self made button box

Hi
I saw that there are ways to built you own USB button box.
I wanted to ask if that would work with OpenSesame.
I was thinking about assigning each button to a key on the keyboard
(for example green button = 1, yellow = 2 etc.)

Would that be possible?

Thanks!

Comments

  • edited August 2016

    more specifically, I want to use a board to build my own button box.
    I wanted to make sure that Open Sesame can detect a 5Vdc on four different pins . It will be a 5Vdc pulse of about 50 milliseconds. (I will use it with a windows computer)

    This is the board:
    http://www.ebay.com/itm/Leonardo-Pro-Micro-ATmega32U4-8MHz-3-3V-Replace-ATmega328-Arduino-Pro-Mini-/131694495857?hash=item1ea99a8871:g:hdoAAOSwX~dWjOXq

    Thank you,

    Tali

  • Hi Tali,

    I saw that there are ways to built you own USB button box.

    Where are you referring to?

    I think the big question is what firmware are you going to put into the board and does that support a button box protocol OpenSesame supports.

    Best,
    Jarik

  • Hi Jarik

    This is the firmware:

    http://www.ebay.com/itm/Leonardo-Pro-Micro-ATmega32U4-8MHz-3-3V-Replace-ATmega328-Arduino-Pro-Mini-/131694495857?hash=item1ea99a8871:g:hdoAAOSwX~dWjOXq

    Whether it will be supported by button box protocol is exactly my question (:

    Thanks!
    Tali

  • Hi Tali,

    The firmware is the software that you put in the hardware board you found on eBay. This board will probably ship empty or at least not with firmware that can 'talk' to OpenSesame.

    In my opinion you have two options:

    • Either stick to the good old LPT printer port (not USB!) that can detect dc pulses on the pins and is supported by OpenSesame. Mostly used to send sync pulses from OpenSesame to EEG but can also be used as input. On a laptop this is a no-go but in a PC you could use a PCI Express Parallel port card. See this post for example.
    • Or you can try building @Sebastiaan his Boks (http://osdoc.cogsci.nl/2.8/boks/) but I don't know if the Boks plugin will work with OpenSesame 3. Search the forum for 'Boks' for more info.

    Best,
    Jarik

  • Or you can try building @Sebastiaan his Boks (http://osdoc.cogsci.nl/2.8/boks/) but I don't know if the Boks plugin will work with OpenSesame 3. Search the forum for 'Boks' for more info.

    You could do that but the Boks requires that the Arduino and the buttons are set up in a particular way. Seeing how the Boks works could help you get started though, especially if you don't have a lot of experience. You could also take a look at StimSync:

    More generally, @labovich, I have the impression that you're misunderstanding the principle of building a button box with an Arduino. When you do this, you write the firmware, or 'sketch' in Arduino terminology. So it's up to you to write an Arduino sketch and a piece of Python code running in OpenSesame, in such a way that they communicate. Does that make sense?

    So this question:

    I wanted to make sure that Open Sesame can detect a 5Vdc on four different pins . It will be a 5Vdc pulse of about 50 milliseconds. (I will use it with a windows computer)

    Is not answerable or applicable--it depends on how you build the Arduino and write the software.

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Thank you!
    It's been helpful (:

Sign In or Register to comment.