Skip to content

Real-time open or closed loop stimulation during electrophysiological experiments

License

Notifications You must be signed in to change notification settings

bothlab/labrstim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

154a96e · Nov 18, 2024
Jul 30, 2024
Jun 29, 2012
Sep 3, 2024
Feb 15, 2017
Nov 18, 2024
Sep 30, 2024
Apr 18, 2017
Mar 16, 2017
Mar 16, 2017
Mar 16, 2017
Sep 30, 2024
Mar 22, 2017
Aug 28, 2024
Jul 10, 2024

Repository files navigation

Labrstim

Real-time laser or electric brain stimulation for use with a Raspberry Pi, Intan RHD2000 board and the custom-made GALDUR hat for the Raspberry Pi.

The software is comprised of a server component, running on the Raspberry Pi, that communicates with the GALDUR board to sample analog data exported from electrophysiological recordings. The analog data in our tests came from an Intan RHD USB Interface Board.

The software currently has the following features:

  • SWR Stimulation: Detect & disrupt sharp-wave ripples online. To do that, this project uses code used in Van De Ven et al. "Hippocampal Offline Reactivation Consolidates Recently Formed Cell Assembly Patterns during Sharp Wave-Ripples", Neuron 92, 968–974 (2016). The original code is available on GitHub at kevin-allen/laser_stimulation
  • Theta Stimulation: Stimulate on specified theta phase
  • Spikerate Stimulation: Stimulate when a specific spike frequency was detected
  • Train Stimulation: Perform random or train stimulation, without reading input signal data

To use this software, flash the image provided onto an SDCard (or built it from scratch using the os-image/build.sh script on a Linux system) and add it to a Raspberry Pi 4+. Assemble and connect a GALDUR board and connect it to the Raspberry Pi. The USB serial output of the GALDUR board is connected to your computer.

You can then use the provided client software to give the GALDUR+RPi detection/stim-trigger box commands. The box can also be used from the Syntalos DAQ system and is integrated well with it. Syntalos implements the same client component that also exists in this repository as standalone application.