ArduiPod Box: A Low-Cost and Open-Source Skinner Box Using an iPod Touch and an Arduino Microcontroller
Developed by Oskar Pineño (2013)
What's the ArduiPod Box?
The ArduiPod Box is an operant chamber or Skinner box, built with two main components: an iPod Touch and an Arduino microcontroller. This device was developed with two goals in mind: keeping it affordable and making it open source. The idea behind this project was to provide animal behavior researchers and teachers with an alternative to the more sophisticated (but costly) standard operant chambers. In spite of its limited functionality (at least, in its current state of development), this box will be suitable for running simple experiments in operant conditioning, which might be of great use to provide animal behavior students with a hands-on learning experience.
How much will it cost?
Building this box won't be expensive. Assuming that you devote some time to find the cheapest prices (e.g., buy a used or refurbished iPod Touch), you should be able to purchase all necessary materials for less than $300. Building your box might take some time (especially if you don't have all necessary tools), but all in all it shouldn't take more than 3-4 hours.
Materials necessary to build your own ArduiPod box:
(*) The newer iPod Touch (5th gen) and the iPhone 5 will work perfectly as well, but the iOS app run by the device (Shaping) has been optimized for the 3.5-inch display of the older devices and might require minor adjustments for use with the 4-inch display of the last-generation devices.
(**) The Arduino Uno is the most popular (and affordable) microcontroller made by Arduino. However, other official models (e.g., Due, Mega 2560, or Nano) as well as home-made microcontrollers (e.g., Bareduino 328) might work as well.
(***) Necessary to connect the iPod Touch to the Arduino Uno.
Download the software :
You will need to download two programs in order to run your ArduiPod Box:
(**) Please acknowledge the source of this software: Pineño, O. (2013). ArduiPod: A Low-Cost and Open-Source Skinner Box Using an iPod Touch and an Arduino Microcontroller (Version [v.#]). [Computer software]. Hempstead, NY: Hofstra University. Retrieved [date]. Available from http:www.opineno.com
Wire it up:
There are thousands of ways of building your own ArduiPod Box (and most certainly you should feel free to be creative!), but there's only one way of wiring things up to make it work (unless, that is, you make changes in the sketch run by the Arduino). Follow these steps to get your Arduino to talk to your iPod Touch.
(*) Newer revisions of the Redpark Serial Cable no longer require the 5V-5V connection.
You might want to use this breadboard schematic as a reference (click here for a copy of this schematic with higher resolution). Please note that the connections to the Redpark Serial Cable are not depicted in this schematic.
Here's how the final product looks like, after connecting all the elements:
Finally, these pics show how the iPod Touch would have to be installed on the plastic wall in order to match the size and position of the colored button presented in the Shaping app (i.e., the discriminative stimulus) with the opening on the wall:
ArduiPodChart, a perfect complement for your ArduiPod Box:
The latest versions of the Shaping app (v. 1.1 and newer) come with P2P connectivity! If you have another iOS device lying around, you might want to install the ArduiPodChart app in it. The ArduiPodChart app connects wirelessly to the Shaping app (assuming that they are both connected to the same Wi-Fi network) and receives a real-time feed of the data being collected by the Shaping app. The data is automatically plotted on the screen of your iOS device, right as it is collected by the ArduiPod box. (How cool is that?)
The source code of the ArduiPodChart app is available in the Download Center as well. This app is also available for download from the iTunes App Store. As with the Shaping app, you are free to modify it and use it for your own purposes (*).
(*) Please acknowledge the source of this software: Pineño, O. (2013). ArduiPod: A Low-Cost and Open-Source Skinner Box Using an iPod Touch and an Arduino Microcontroller (Version [v.#]). [Computer software]. Hempstead, NY: Hofstra University. Retrieved [date]. Available from http:www.opineno.com.
Pineño, O. (2013). ArduiPod Box: A low-cost and open-source Skinner box using an iPod Touch and an Arduino microcontroller. Behavior Research Methods. [Download]
Shaping app (iOS and Arduino)
ArduiPodChart (iOS only)
You are WELCOME to download and use the programs in this page for teaching and/or research purposes. However, DO NOT forward this material, or make any copies or distribute these programs to other people.
COPYRIGHT © 2013 Oskar Pineño