RPG: A low-cost, open-source, high-performance solution for displaying visual stimuli
Abstract
The development of new high throughput approaches for neuroscience such as high-density silicon probes and 2-photon imaging have led to a renaissance in visual neuroscience. However, generating the stimuli needed to evoke activity in the visual system still represents a non-negligible difficulty for experimentalists. While several widely used software toolkits exist to deliver such stimuli, they all suffer from some shortcomings. Primarily, the hardware needed to effectively display such stimuli comes at a significant financial cost, and secondly, triggering and/or timing the stimuli such that it can be accurately synchronized with other devices requires the use of legacy hardware, further hardware, or bespoke solutions. Here we present RPG, a Python package written for the Raspberry Pi, which overcomes these issues. Specifically, the Raspberry Pi is a low-cost, credit card sized computer with general purpose input/output pins, allowing RPG to be triggered to deliver stimuli and to provide real-time feedback on stimulus timing. RPG delivers stimuli at >60 frames per second and the feedback of frame timings is accurate to 10s of microseconds. We provide a simple to use Python interface that is capable of generating drifting sine wave gratings, Gabor patches and displaying raw images/video.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 2
- FWCI
- 0.00
- Field percentile
- 11th percentile
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- RetINaBox: A hands-on learning tool for experimental neuroscience
Brune Bettler, Flavia Arias Armas, … Stuart Trenholm·eNeuroPeer-reviewed·Jan 1, 2026
- PiVR: an affordable and versatile closed-loop platform to study unrestrained sensorimotor behavior
David Tadres, Matthieu Louis·PLoS BiologyPeer-reviewed·Jul 14, 2020
- Rigbox: An Open-source Toolbox for Probing Neurons and Behavior
Jai Bhagat, Miles J. Wells, … Christopher Burgess·eNeuroPeer-reviewed·Jun 3, 2020
- An open source platform for presenting dynamic visual stimuli
Kyra Swanson, Samantha R. White, … Mark Laubach·eNeuroPeer-reviewed·Apr 2, 2021
- PhotoNeuro: A compact photodetector for synchronization of visual stimulus presentation during behavioral experiments in neuroscience.
Xavier Cano-Ferrer, Marcelo J. Moglie, … María Florencia Iacaruso·HardwareXPeer-reviewed·Jul 15, 2025
- Raster photostimulation of large-scale neural populations
Paul K. LaFosse, Daniel Flickinger, … Marius Pachitariu·bioRxiv·Jul 7, 2026