Aggarwal, Abhi, Adrian Negrean, Yang Chen, Rishyashring Iyer, Daniel Reep, Anyi Liu, Anirudh Palutla, et al. “Glutamate Indicators with Increased Sensitivity and Tailored Deactivation Rates.” bioRxiv, March 24, 2025. https://doi.org/10.1101/2025.03.20.643984.
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Frame-projected independent fiber photometry (FIP) is a method to measure fluorescent sensor signals through optical fibers implanted in living animals, using a camera to record video of the fiber faces. To precisely control timings of excitation and camera frame acquisition for FIP, and of other external stimulation apparatus (e.g. LEDs for photo-stimulation), we use a Teensy 4.1 microcontroller, which generates voltage pulses without relying on continuous communication with the operating system of the experimental computer for timing. This protocol is for the 3 excitation LED + 2 collection CMOS cameras design.
Triggering-controlling software (an Arduino sketch) and data aquisition software (a Bonsai workflow) can be found in an associated github repository.
Guidelines
Teensy 4.1 only provides ~3.3V. If the device you want to trigger requires 5V (or more), the voltage needs to be up-regulated.
As the Teensy 4.1 is a bare board, it should securely covered in an enclosure. The enclosure should be able to securely house Teensy 4.1, at least 5 BNC sockets, and optionally a small breadboard. Plastic 3D-printing (CAD design can be found here:0294-100-01_X01.step246KB0294-100-02_X01.step3MB ) would be sufficient and could be any materials and designs.
Setting up an experimental PC and Teensy 4.1 device
Setting up an experimental PC and Teensy 4.1 device
25m
25m
Install Arduino app on your experimental PC from the following link: Arduino software.
All BNC ports connected to corresponding devices of the main hardware
10m
Software parameter setting
Software parameter setting
30m
30m
Based on acquisition frame rate and the CMOS cameras to be used, set the acquisition parameters in the .ino sketch.
Fig2. Scheme of temporal multiplexing of excitation and data acquisition
When acquisition is 60Hz (20Hz for each channel) with sufficiently fast CMOS sensors (e.g. FLIR, BFS-U3-20S4M-C), an example parameter set could be:
ExpT = 15650 μs
Δt1 = 666 μs
Δt2 = 300 μs
Δt3 = 50 μs
ExpT+ Δt1+Δt2+Δt3 = 16666 μs (= 1/60 s)
For better signal, Δt1/Δt2/Δt3 should be minimized to make the exposure time longer. If they are too short, however, the camera will not be able to unload the data (when Δt1 is too short) or LED instability at the onsets (when Δt2 is too short) would lead to periodic noise generation. Based on excitation light sources and CMOS models, optimize these parameters empirically.
30m
Protocol references
Kim, C., Yang, S., Pichamoorthy, N. et al. Simultaneous fast measurement of circuit dynamics at multiple sites across the mammalian brain. Nat Methods13, 325–328 (2016). https://doi.org/10.1038/nmeth.3770