PT - JOURNAL ARTICLE AU - Vivian Imbriotis AU - Adam Ranson AU - William M Connelly TI - RPG: A low-cost, open-source, high-performance solution for displaying visual stimuli AID - 10.1101/2020.03.05.979724 DP - 2020 Jan 01 TA - bioRxiv PG - 2020.03.05.979724 4099 - http://biorxiv.org/content/early/2020/03/06/2020.03.05.979724.short 4100 - http://biorxiv.org/content/early/2020/03/06/2020.03.05.979724.full AB - 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, with a hardware latency of 2 ms. We provide a simple to use Python interface that is capable of generating drifting sine wave gratings, Gabor patches and displaying raw images/video.