

Trigger box avt
Software to control and record from multiple cameras
- Size
- 53.3 × 55.9 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 26
- Nets
- 15
- Pads
- 71
- Tracks, vias
- 101, 2
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 16 Apr 2021
- Updated
- 14 May 2025
Overview
Trigger box avt is an open-source printed circuit board by jcouto, from the jcouto/labcams repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 53.3 × 55.9 mm with 26 parts on 15 nets, routed with 101 tracks and 2 vias.
It is built around the 74HCT14D. Its parts include 13 connectors, 4 ICs and 3 diodes.
Main components
1README
README.md MMM
MMMMMM
MMM: .MMMM MMMM MMMMMMMM
MMM: .MMMM MMMMM MMMMMMMM
MMM: .MMMM MMMM MMMMMM MM
MMM: :MMMMMMMMM. .MMMMOMMMMMM MN MMM MMMMM
MMM: :M MMMM .MMMMM?+MMMMM MMMMMMMMMMMMMMM7MMMMMMM
MMM: OMMM .MMMM MMMM MMMMMMMMMMMMMMMMMMMMMMM
MMM: .MMMMMMMMMM .MMMM ?MMM MMMMMMMMMMMMMMMMMMMMMMM
MMM: MMMM .8MMM .MMMM ZMMM MMMMMMMMMMMMMMMMMMMMMMM
MMM: MMM=...8MMM .MMMM MMMM MMMMMMMMMMMMMMM.MMMMMMM
MMM: MMMMMMMMMMM .MMMMMMMMMMM MMMM
MMM: MMMMM 8MMM .MMMM:MMMMZ M
MMMMMMN =MMMMMMMM MMMM.MMMM$ .+MMMM MMMMMMM:
MMMMMMMMM +MMMMMMMMM$ MMMMMMMMMMMMMMMMMM MMMMMMMMM8
MMMM MMMM MMMM MMMM MMM+ MMM8
MMMZ OMMMMMMMM MMMM NMMM MMM? MMMMMMM$
MMMI MMMMM MMMM MMMM NMMM MMM? ZMMMMMMMM
MMMM 7MMM MMMM MMMM NMMM MMM? MMMM
MMMMD+7MM MMMN MMMM MMMM NMMM MMM? MM$:.7MMMM
MMMMMMMM ZMMMMMOMMMM MMMM NMMM MMM? MMMMMMMM+
https://bitbucket.org/jpcouto/labcams Multicamera control and acquisition.
This aims to facilitate video acquisition and automation of experimens, uses separate processes to record and store data. Interfaces with other computers via UDP or ZeroMQ for automating experiments. Uses hardware and FFMPEG to compress in real-time.
Instalation from pip (recommended but not the latest version):
pip install labcams or add the --no-deps flag to install no dependencies.
Install camera drivers:
Usage:
Open a terminal and type labcams -h for help.
The first time you run labcams it will create a folder in the user home directory where the default preference file is stored.
Command line options:
| command | description | |
|---|---|---|
-w | --wait | start with software trigger OFF |
-t | --triggered | start with hardware trigger ON |
-c X Y | --cam-select X Y | start only some cameras -c 0 1 |
-d PATH | --make-config PATH | create a configuration file |
--no-server | do not start the ZMQ nor the UDP server |
Configuration files:
Configuration files ensure you always use the same parameters during your experiments.
The configuration files are simple json files. There are 2 parts to the files.
cams- camera descriptions - each camera has a section to store acquisition and recording parameters.
Available camera drivers:
PCO- install pco.sdkAVT- install Vimba SDK and pymbaQImagingpointgrey- FLIR cameras - install SpinnakeropenCV- webcams and so on
For calcium or voltage imaging with the PCO (or another) camera use the arduino code in the duino folder and instructions.
Each camera has its own parameters, there are some parameters that are common to all:
recorder- the type of recordertiffffmpegopencvbinaryhaccel-nvidiaorintelfor use with ffmpeg for compression.
NOTE: You need to get ffmpeg compiled with NVENC from here - precompiled versions are avaliable - conda install ffmpeg works. Make sure to have python recognize it in the path (using for example which ffmpeg to confirm from git bash)/
NOTE To use intel acceleration you need to download the mediaSDK.
- general parameters to control the remote communication ports and general gui or recording parameters.
recorder_frames_per_filenumber of frames per filerecorder_paththe path of the recorder, how to handle substitutions - needs more info.
- Aditional parameters:
- 'CamStimTrigger' - controls the arduino camera trigger, see the duino examples folder.
UDP and ZMQ:
labcams can listen for UDP or ZMQ commands.
To configure use the command "server":"udp" in the end of the config file.
The port can be configured with "server_port":9999
The UDP commands are:
- Set the experiment name
expname=EXPERIMENT_NAME - Software trigger the cameras
softtrigger=1(multiple cameras are not in sync) - Hardware trigger mode and save
trigger=1 - Start/stop saving
manualsave=1 - Add a message to the log
log=MESSAGE - Quit
quit
Supported cameras - see instructions here:
- PCO cameras (only windows)
- PointGrey cameras (via PySpin)
- Basler cameras (via pypylon)
- Allied Vision Technologies (via pymba - updating to the latest)
- QImaging cameras via the legacy driver (only windows)
- Ximea cameras
Features:
- Separates viewer, camera control/acquisition and file writer in different processes.
- Data from camera acquisition process placed on a cue.
- Display options: background subtraction; histogram equalization; pupil tracking via the mptracker .
- Multiple buffers on Allied vision technologies cameras allows high speed data acquisition.
- Online compression using ffmpeg (supports hardware acceleration)
Instalation on Ubuntu 20.04
sudo apt install python3-matplotlib ipython3 python3-opencv python3-pyqt5 python3-tqdm python3-pip python3-pyqtgraph python3-serial python3-zmq python3-natsort python3-pandas emacs git ssh ffmpeg
pip3 install labcams - this may end up in $HOME/.local/bin so add the following to the end of the .bashrc file: export PATH=$PATH:$HOME/.local/bin
Instalation - from git:
Note: On windows get the git bash terminal . I had issues running from cmd.exe when installed with conda.
- Get anaconda . Add conda to system PATH when asked. Open a terminal (use git bash if on windows) and type
conda init bash. - Clone the repository:
git clone git@bitbucket.org:jpcouto/labcams.git - Go into the cloned
cd labcamsfolder. - Install the required packages, use e.g.
pip install -r requirements.txtor conda install... - Install
labcamswithpython setup.py develop - Follow the camera specific instalation and instructions for syncronization. Each camera must have a section in the
~/labcams/default.jsonfile that is created the first time you try to run the software with the commandlabcamsfrom the terminal. Use a text editor to add the correct options. There are examples in the examples folder. - Install ffmpeg with anaconda:
conda install -c conda-forge ffmpeg
You can run labcams from the command terminal.
Please drop me a line for feedback and let the world know if you use this.
Joao Couto - jpcouto@gmail.com
May 2017
Parts
26| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | Conn_01x01 | footprints:conn_01x01 | J1, J3, J3, J5, J5, J5, J7, J10 |
| 4 | Conn_Coaxial | footprints:SMA_female | J2, J4, J6, J9 |
| 3 | LED | footprints:LED_THT_standard | D1, D2, D3 |
| 3 | R | Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | 2.7k, 2.7k, 2.7k |
| 2 | Resistor_choice | footprints:Resistor_THT_choice | U3, U4 |
| 1 | 74hct14 | Housings_DIP:DIP-14_W7.62mm | U1 |
| 1 | Conn_01x06 | footprints:Conn_1x6 | J8 |
| 1 | LM7805_TO220 | TO_SOT_Packages_THT:TO-220-3_Vertical | U2 |
| 1 | LOGO | footprints:nerf_logo | G*** |
The 24 most common of 26 parts.
More from jcouto/labcams
1- 4 layers45.7 × 51.6 mm

Similar boards
- 2 layers116.8 × 154.9 mm

- 2 layers65 × 56 mm

ClumsyMIDI
gmcn42/clumsyMIDI
A THT-only Raspberry Pi expansion board containing a MIDI interface, DAC, and OLED display
26 parts90CC-BY-SA-4.0 - 4 layers292.1 × 88.3 mm

Snark barker mca
schlae/snark-barker-mca
A Sound Blaster compatible sound card for Micro Channel bus computers
177 parts69 - 4 layers340 × 210 mm

- 2 layers156.2 × 168.9 mm

LPC176x MultiFunction
RobertPHeller/RPi-RRCircuits
A collection of circuit designs for various MCUs, not just Raspberry Pis relating to Model Railroading
236 parts24 - 2 layers130.8 × 81.5 mm

- 2 layers208 × 110 mm

- 2 layers74.3 × 43.8 mm

TurboXT
hkzlab/TurboXT_Addon
8Mhz Turbo / Reset addon board for the IBM 5160 (The original XT)
28 parts15
Questions
How big is the Trigger box avt PCB?
It measures 53.3 × 55.9 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Trigger box avt use?
26 parts, built around the 74HCT14D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Trigger box avt KiCad files?
From the jcouto/labcams repository on GitHub, at the commit this page was made from: the board is pcb/AVT_trigger/trigger_box_avt.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Trigger box avt design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).