Coder Social home page Coder Social logo

openskinnerbox's Introduction

Arduino Interface to DIY SkinnerBox:

  • 1 TTL Lever
  • 1 Solenoid Pinch Valve
  • 2 Lights
  • 1 Lickometer, based in Vajnerova 2002, look in references

All files in the repository are distributed under CRAPL Licence, a copy of wich is included in the respective folder.

The Arduino File implements 4 different experiments:

  • 0 Conditioning
  • 1 Resistance to Extintion
  • 2 Fixed Ration Schedule of Reinforcement
  • 3 Progressive Ratio Schedule of Reinforcement

they can be called via commandline with the python script or via the serial Monitor in Arduino IDE. to call any of them:

Experiment Line

  • "0" Conditioning: infinite looop, any lever press is rewarded
  • "1 1" Resistance to extintion 0% reward probability: 30 mins of no reward
  • "1 2" Resistance to extintion 25% reward probability: 30 mins, 25% of the first 20 trials are rewarded
  • "1 3" Resistance to extintion 50% reward probability: 30 mins, 50% of the first 20 trials are rewarded
  • "1 4" Resistance to extintion 75% reward probability: 30 mins, 75% of the first 20 trials are rewarded
  • "1 5" Resistance to extintion 100% reward probability: 30 mins, all of them are rewarded
  • "2 n" Fixed Ratio: every n lever presses a reward is given
  • "3 n" Progresive Ratio: the lever presses needed to give a reward increases by n every trial, nx1,nx2,...

The python script allows to start a experiment and save the data to a file, To start a experiment in this way you need to have installed pySerial, and python... to call it you should use the following line: pyduinoSKNNRBX '/dev/ARDUINO' 'Experiment Line' RatNumber

Any commentaries or help would be really helpfull, and must be sent to my personal email: mauro.toro.e at gmail.com

Keep in mind that all of this is part of my Ms thesis, so really any help will help!! And, it could blow any of your equipment...

Suerte!

SoyUnKoPe 2013

PS: The references added are probably not legal, if that's bad please tell me and I will rm them.

openskinnerbox's People

Contributors

maurotoro avatar soyunkope avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.