-
Notifications
You must be signed in to change notification settings - Fork 2
Bonsai_Triggered_Recording
-
Open the "singleTriggeredCamera" workflow, available here. This workflow will monitor a camera, and when a pulse is detected on an Arduino pin it will record a video that starts N seconds before the pulse, and records for M seconds after.
-
Plug in a USB camera and Arduino via USB. Make sure the Arduino is flashed with "Firmata Standard" code (it's in the Arduino IDE examples).

Also make sure the Digital Input node has the correct port and pin settings for the Arduino

-
Check that the correct camera is selected. This is set by changing the "Index" argument in VideoCaptureDevice, you may see the name of the camera pop up, but if not just try changing the index to 0, 1, or 2 and see which camera shows up.

-
Open the "Select Many" node and make sure the VideoWriter path is set to where you want to write videos. It is critical to give the file an extension, ie: ".avi", so a full path might be: Yiru\TriggeredSocialVideos\SocialVideo.avi

-
If you want to set the duration of the video before the pulse change the "Delay" node:

-
If you want to change the duration of the video after the pulse change the "WindowTrigger" node:

-
If you open the "Crop" node you can see the live view of the camera, and if you open the "VideoWriter" node when triggered you will see what's being written to the video file (this will start seconds before the pulse)

-
This script will result in a library of videos, recorded for each pulse:

π§ Home
- Onboarding Guide
- Lab Manual
- NRB Printer setup
- Travel Guidelines
- Software Setup
- Poster Printing
- Poster Templates/examples
- Reviewing Papers
- Making Figures
- Transnetyx info
- Onboarding WashU Undergraduates
- Cage cards
- Red Hazard cards
- Surgery cards
- Mouse Transfer Procedure
- Cage Check
- IACUC Protocols
- Mouse Genotyping
- Autoclave
- Diet nutritional information
-- Chow diet
-- FED3 grain pellets (Bioserv)
-- FED3 chocolate crispies (ViaCheff)
-- High fat diet
- RNA extraction (Trizol)
- cDNA synthesis with Biorad reagent
- Designing primers
- Setting up the qPCR and analysis
- Localizing injections with DiI
- GCaMP8
- ChR2 (H134R)
- GrabDA
- dLight
- Caspase
- mCherry / YFP Controls
- retroCre
Acquisition
Analysis
- Electrode array construction
- Attaching fibers to Inn NeuroPhys arrays
- NanoZ Impedance Testing
- NanoZ Gold Plating
- Recording Setup
- Data Analysis
- Electrode lesions for histology
- Antibody stocks
- Cryostat
- Freezing microtome
- SST & PV immunostaining
- GFP immunostraining
- IHF troubleshooting
- FED3 Troubleshooting
- FED3 Human Bandit Code
- Synchronizing FED3 with recordings
- FED3 Bandit Code for recordings
- FED3 Artwork
Ex Vivo
- Overview
- Current Clamp
- Voltage Clamp
- Clampex Protocols
- Solutions & Recipes
- Troubleshooting
- Post-patching IHC
- PPR with ClampFit
In Vivo