用于使用Arduino和Visual Basic进行操作性研究的低成本USB接口。
Low-cost USB interface for operant research using Arduino and Visual Basic.
作者信息
Escobar Rogelio, Pérez-Herrera Carlos A
机构信息
National Autonomous University of Mexico.
出版信息
J Exp Anal Behav. 2015 Mar;103(2):427-35. doi: 10.1002/jeab.135. Epub 2015 Feb 4.
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.
本笔记介绍了一种使用Arduino微控制器板和Visual Basic编程进行操作性条件反射研究的低成本接口设计。该板执行一个用Arduino编程语言编写的程序,该程序轮询输入状态并在操作性条件反射箱中生成输出。此程序通过USB端口与在笔记本电脑、台式电脑、上网本甚至配备Windows操作系统的平板电脑上运行的用Visual Basic 2010 Express Edition编写的另一个程序进行通信。Visual Basic程序控制强化时间表并记录实时数据。单个Arduino板可用于控制总共52条输入/输出线路,多个Arduino板可用于控制多个操作性条件反射箱。控制操作性条件反射箱中常用的28V直流设备需要一个外部电源和一系列微型继电器。提供了下载和使用程序以生成简单和并发强化时间表的说明。测试表明,该接口可靠、准确,可作为商业设备的廉价替代品。