#### Howdy, Stranger!

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

Supported by

# Arduino and OpenSesame

edited May 2016

Hello,
I am beginner, in english too. And I breaked my spacebar because I am disapointed!
I have an arduino with a force sensor. I would like use this sensor like a response in a experimental designed by Opensesame.
I use "new boks" and I import in script an import serial. But I am not succeed to realize test (and after 1 million tries I breaked my spacebar!) :

Error message:

Traceback (most recent call last):
File "C:\Program Files (x86)\OpenSesame\plugins\boks\boks.py", line 249, in stop_test
File "dist\libopensesame\item.py", line 280, in __getattr__


Could you help me?
Thanks,
GT

• edited 5:28AM

Hi,

The Boks was a button box built around an Arduino and a custom 'sketch' (i.e. the software running on the Arduino). The Boks plugins are not general purpose: They do not just work with any Arduino, only those running the right software and built with the right connections. In addition, the Boks project has been discontinued (unfortunately).

The Arduino is not very difficult to work with, but you'll need to start from the bottom and learn how everything works—no shortcuts here. The Boks software won't help you, except maybe that you can look at the way it's programmed, and adapt that for your purpose. There are quite a few good tutorials on the Arduino website. Your goal, I think, is to write an Arduino sketch that does the following:

2. Transmit this information via the serial port

But how this works exactly depends on how you've put the hardware together. So you'll need to get your hands dirty and start coding!

Cheers,
Sebastiaan

• edited 5:28AM

Hi Sebastiaan,
The important point is to be sure to advance in good way! If I'm certain that's possible to "capt" response from arduino project with force sensor (who commands a vibration, is not so easy) with opensesame it's ok for me.
And it's a great new. I put my hands in coding now!
If others have links I take!
GT

• edited 5:28AM

Another question :could I insert a "new inline script" to dialog with arduino?

• edited 5:28AM

Another question :could I insert a "new inline script" to dialog with arduino?

Yes. For the Arduino, you would write a sketch using the Serial object to send information through the serial port (i.e. the USB port). In OpenSesame, you would then write an inline_script, using the serial module to capture this information.

Again, this is only the general idea; the details depend very much on your set up.

• edited 5:28AM

It is exactly the procedure that I try now. Thanks a lot Sebastiaan. I'll try to explain my way if I success in the forum.
See you
GT

• Is it possible to purchase the BOKS anywhere?

• Is it possible to purchase the BOKS anywhere?

I'm afraid not! That project has been canceled.