agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq,
agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq ,
dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu
http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan
BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama
Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga
BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai
Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah
Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai
Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs
Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games
Comments
Hi Maxime,
The Arduino is generally controlled via a serial port emulated through USB. This means that you can simply use the
serial
module and don't need to bother with the complicated stuff required to get the parallel port working. Of course, I don't know what the communication protocol with your specific Arduino device is, but theserial
docs should give you a general feeling for how this works:Update: Assuming, of course, that you can plug the Arduino USB cable into the tablet?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
thanks a lot for your quick answer. Could you give me an example of how to integrate this serial command in my opensesame experiment?
Thanks
Maxime
Hi Maxime,
I just noticed something pretty crucial! The Python implementation for Android (pgs4a) does not include the
pyserial
module. Therefore, on Android it's not possible to communicate with the Arduino via the USB emulated serial port.There are many other ways to set up communication between the Arduino and the tablet, tough. The easiest way would probably be to use WiFi, because it's easy to connect a tablet to a wireless network. You could add a WiFi shield to the Arduino or connect the Arduino to a small computer (a netbook or something) and have this computer listen to the tablet via WiFi and control the Arduino via the (USB emulated) serial port. This last option, using a small computer as a bridge, may be most convenient, and is not as difficult as it sounds.
But what the best solution would be in your case depends on what exactly you're trying to set up, and what kind of equipment you have available, of course.
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi guys,
If timing isn't crucial, couldn't you just use the socket module? It's in Python for Android, so that shouldn't be an issue. Is there a LAN port on your Arduino? I've done similar stuff with Raspberry Pi's. Sample code for the client side:
On the server side you can send string codes of 5 characters to make the client do stuff. Example:
This particular example lets you send stuff you put in via the command line, but you can see how this could be implemented in an actual experiment, using inline scripting.
Good luck!
Hi Guys,
Thanks for answers. Unfortunately, I do care about timing. I want to control a tiny engine that will give a reward to the animal, if perform correctly the task. This conditioning procedure only works if the timing is good. With the wifi option, what would be the opensesame function (/ python code) to send the information by wifi to the computer that control the engine?
Thanks
Maxime
If you care about the timing, wifi won't be much better (actually, it might well be worse than using a wired connection). But I'm talking about delays in the order of (several) dozens of milliseconds. The timing for reinforcement isn't THAT crucial, right?
As Edwin says, your temporal precision will still be measurable in tens of milliseconds, which I imagine is fine for food rewards.
More generally though, you don't provide enough detail for us to make any specific suggestions!
Without specifics we can only provide a general outline of what a solution might look like!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Edwin and Sebastiaan,
Sorry for not giving enough details. First, you both are right, a 50ms delay is reasonable.
Basically I'm building my own set-up from scratch.
The only requirements are:
For now all options are possibles! The whole setup should be a reasonable price (<1000$) because we want to have 12 of them.
That's why I chose the android tablet with a resistive screen (Flytouch 7, http://chinaphonehouse.org/2012/08/flytouch-7-allwinner-a10-test-android-4/) + opensesame option. Everything is working perfectly except the activation of the motor.
To specifically answer your questions Sebastiaan the tablet has:
I bought a basic arduino because I read on internet that it was a good option to control an engine through a USB port (I think the language is Arduino, a language that I don't speak at all), but I can buy any (not too much expensive) electronic stuffs that would bring me closer to a solution that works!
Do not hesitate to propose any system you think would be more appropriate.
Thank you very much for your help.
Maxime
Hi Maxime,
Interesting project! So basically you have freedom, as long as it's not too expensive.
Tablet - computer via WiFi or ethernet
I think I would link the tablet to a computer (maybe a cheap netbook). This can be done via WiFi or via an ethernet cable. That doesn't matter for the software side of things, so you can see later on which is most convenient.
As Edwin, says you can have your OpenSesame experiment on the tablet communicate with a script on the computer using the Python
socket
module. Basically, you will need something like the scripts that Edwin posted above: One for in your OpenSesame experiment on the tablet (the server in Edwin's example) and one for one the computer (the client). But I wouldn't initially focus on this, see below.Computer - Arduino via USB-emulated serial port
You will also need to connect the computer to the Arduino, using the USB port and the python
serial
module. But -- just to make sure that you are aware of this -- you will need to write custom software yourself that runs on the Arduino. You cannot simply solder some servo connections onto the Arduino board and control these through your PC. Instead, you will need to write a so-called 'sketch' for your Arduino that listens to incoming messages from the PC and uses these to control the servos that handle the food rewards. Writing the Arduino sketch and deciding how you are going to build a system that can dispense food rewards will be the most challenging part of the whole setup.So I would not connect the tablet directly to the Arduino, even though this might be possible, but use a computer that sits in between the tablet and the Arduino. This will make it easier to test and debug each part of the setup separately. It also gives flexibility, in case you want to do more complicated experiments later on.
A first step
A good first step would be to build the Arduino device that dispenses food rewards in response to information received via the serial port. I can give you some hints, although this has nothing to do with OpenSesame, but the best place to get information on this is probably the Arduino site itself. You should be able to connect your Arduino to a computer and trigger a food reward from the computer using a simple Python script like this:
Once you can do this, it will be relatively easy to control the food rewards via the tablet.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!