Jones Pete R, Garcia Sara E, Nardini Marko
Institute of Ophthalmology, University College London (UCL), 11-43 Bath Street, London, EC1V 9EL, UK.
Department of Psychology, Durham University, Durham, UK.
Behav Res Methods. 2016 Dec;48(4):1266-1284. doi: 10.3758/s13428-015-0653-5.
This article details how to control light emitting diodes (LEDs) using an ordinary desktop computer. By combining digitally addressable LEDs with an off-the-shelf microcontroller (Arduino), multiple LEDs can be controlled independently and with a high degree of temporal, chromatic, and luminance precision. The proposed solution is safe (can be powered by a 5-V battery), tested (has been used in published research), inexpensive (∼ $60 + $2 per LED), highly interoperable (can be controlled by any type of computer/operating system via a USB or Bluetooth connection), requires no prior knowledge of electrical engineering (components simply require plugging together), and uses widely available components for which established help forums already exist. Matlab code is provided, including a 'minimal working example' of use suitable for use by beginners. Properties of the recommended LEDs are also characterized, including their response time, luminance profile, and color gamut. Based on these, it is shown that the LEDs are highly stable in terms of both luminance and chromaticity, and do not suffer from issues of warm-up, chromatic shift, and slow response times associated with traditional CRT and LCD monitor technology.
本文详细介绍了如何使用普通台式计算机控制发光二极管(LED)。通过将数字可寻址LED与现成的微控制器(Arduino)相结合,可以独立控制多个LED,并在时间、色度和亮度方面具有高度的精度。所提出的解决方案安全(可由5伏电池供电)、经过测试(已用于已发表的研究中)、价格低廉(约60美元,每个LED再加2美元)、高度可互操作(可通过USB或蓝牙连接由任何类型的计算机/操作系统控制)、无需电气工程的先验知识(组件只需简单地拼接在一起),并且使用已有成熟帮助论坛的广泛可用组件。提供了Matlab代码,包括适合初学者使用的“最小工作示例”。还对推荐LED的特性进行了表征,包括它们的响应时间、亮度分布和色域。基于这些,结果表明这些LED在亮度和色度方面都非常稳定,并且不存在与传统阴极射线管(CRT)和液晶显示器(LCD)技术相关的预热、色移和响应时间慢等问题。
Behav Res Methods. 2016-12
J Neurosci Methods. 2012-9-21
Opt Express. 2012-8-27
J Exp Anal Behav. 2015-3
Invest Ophthalmol Vis Sci. 2025-7-1
eNeuro. 2021-6-11
Sci Rep. 2017-1-11
Behav Res Methods. 2014-12
J Neurosci Methods. 2012-9-21
Behav Res Methods. 2012-6
J Neurosci Methods. 2011-2-12
Am J Optom Arch Am Acad Optom. 1948-4
Curr Biol. 2008-5-6
J Neurosci Methods. 2005-7-15