Assessment & Research

Low-cost USB interface for operant research using Arduino and Visual Basic.

Escobar et al. (2015) · Journal of the experimental analysis of behavior 2015
★ The Verdict

You can build a full operant interface for a few dollars with an Arduino and 52 lines of Visual Basic.

✓ Read this if BCBAs who run small research labs or want custom data rigs on a tight budget.
✗ Skip if Clinicians who only use packaged assessment software and never touch wires.

01Research in Context

01

What this study did

Escobar et al. (2015) wrote a how-to guide. They show you how to wire an Arduino to a PC with Visual Basic. The code is only 52 lines.

You get eight micro relays. They can turn on lights, feeders, or anything that runs on five volts. The whole thing costs less than one commercial interface.

02

What they found

This is a tech note, not an experiment. The authors give the wiring diagram and the script. They say it works, but they do not run animals or people with it.

03

How this fits with other research

THOMPSOELLIOTT et al. (1962) did the same thing with solder and resistors. Their circuit gave timed pulses without a computer. Rogelio swaps the solder for code, but the goal is identical: cheap, custom control.

Dixon (2003) also used Visual Basic. Instead of an Arduino, he tapped a Pocket PC for data logging. Both papers hand you free code so you can skip the pricey systems.

E et al. (2009, 2012, 2003, 2007) built microswitch rigs for people with severe disabilities. They prove that simple electronics can detect tiny responses and deliver reinforcers. Rogelio’s interface could run those switches, but he leaves the clinical testing to you.

04

Why it matters

If you have a small clinic or a classroom lab, you can build this interface in one afternoon. You control lights, sounds, or feeders with millisecond timing. No grant needed. Try it next time you want to set up a new operant task but the budget is zero.

Free CEUs

Want CEUs on This Topic?

The ABA Clubhouse has 60+ free CEUs — live every Wednesday. Ethics, supervision & clinical topics.

Join Free →
→ Action — try this Monday

Order an Arduino Uno, eight micro relays, and download the free code to test one light-toy contingency with a client.

02At a glance

Intervention
not applicable
Design
methodology paper
Finding
not reported

03Original abstract

This note describes the design of a low-cost interface using Arduino microcontroller boards and Visual Basic programming for operant conditioning research. The board executes one program in Arduino programming language that polls the state of the inputs and generates outputs in an operant chamber. This program communicates through a USB port with another program written in Visual Basic 2010 Express Edition running on a laptop, desktop, netbook computer, or even a tablet equipped with Windows operating system. The Visual Basic program controls schedules of reinforcement and records real-time data. A single Arduino board can be used to control a total of 52 inputs/output lines, and multiple Arduino boards can be used to control multiple operant chambers. An external power supply and a series of micro relays are required to control 28-V DC devices commonly used in operant chambers. Instructions for downloading and using the programs to generate simple and concurrent schedules of reinforcement are provided. Testing suggests that the interface is reliable, accurate, and could serve as an inexpensive alternative to commercial equipment.

Journal of the experimental analysis of behavior, 2015 · doi:10.1002/jeab.135