Skip to the content
PCBKitNew board
2 layers63.5 × 112.3 mm555Trigger, the printed circuit board in 3D

Download Arduino IDE: Visit the official Arduino website: Arduino Software. Choose the appropriate version for your operating system (Windows, macOS, Linux), and download the installer.

Size
63.5 × 112.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
41
Nets
30
Pads
138
Tracks, vias
413, 47
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
19 Dec 2023
Updated
20 Dec 2023

Overview

555Trigger is an open-source printed circuit board by ubcbraincircuits, from the ubcbraincircuits/Mesoscope-Resources repository on GitHub. It is a 2-layer board of 63.5 × 112.3 mm with 41 parts on 30 nets, routed with 413 tracks and 47 vias.

It is built around the 74AHC2G00DC and 74LVC2G74DP. Its parts include 6 resistors, 5 ICs, 3 capacitors and 1 switch.

Main components

2

README

README.md

TM-Lab-Mesoscope-Resources

Arduino Code

Installing Arduino IDE:

text
Download Arduino IDE:
    Visit the official Arduino website: Arduino Software.
    Choose the appropriate version for your operating system (Windows, macOS, Linux), and download the installer.

Install Arduino IDE:
    Run the downloaded installer and follow the on-screen instructions.
    On Windows, you might need to install drivers for the Arduino board during the installation process.

Open Arduino IDE:
    Once installed, open the Arduino IDE.

Installing and Running a Supplied Program:

text
Connect Arduino Board:
    Connect your Arduino board to your computer using a USB cable.

Select Board and Port:
    In the Arduino IDE, go to Tools > Board and select the appropriate Arduino board (e.g., Arduino Uno).
    Also, go to Tools > Port and select the port to which your Arduino board is connected.

Open a Supplied Program (Sketch):
    Download the sketch from TriggeringstrobingArduinoCode/
    In the Arduino IDE, go to File > open and open the downloaded sketch

Verify the Sketch:
    Click the checkmark icon (Verify) to check for any errors in the code. Fix any errors if they occur.

Upload the Sketch:
    Click the right arrow icon (Upload) to compile and upload the sketch to the Arduino board.

Lens Adapters

All the lens adapters are parametrically created using this onshape file:

https://cad.onshape.com/documents/2f0def30531779d17ee9e510/w/bf5702dd5ef345ce03ccb7df/e/dbd37cfbbbade1fbfb717a2f?renderMode=0&uiState=656536ea70c36e66cdf41a41

Image of the adapter parameters

Adjust these parameters to change the adapters parameters, the diameter is the inner diameter of the lens, pitch is usually 0.5 or 0.75

Strobing Trigger

Circuit Diagrams

Alt text

Triggering Unit

Sub unit diagram

Routing

Alt text

I/O

io diagram

For the Master Clock in / power in pin out from left to right is

  • master clock
  • ground
  • power (5v)

for Timing signal the pinout is

  • Brain timing control
  • Behavior timing control
  • Strobing timing control

with the switches controlling in the same order.

In order to control the width of the timing signal supply a pwm signal to each of the width control signals, with the width corresponding to change in signal. The supplied signal should be greater than 1khz and ideally as high frequency as possible to reduce artifacts

the timing and output pots allow for manual control of timing and output voltage, although each of them can cause errors if pushed to their limits due to variation in their ranges from manufacturing. Never turn the timing pots all the way to the right as that might cause a short

Using

To use supply a 50hz PWM signal to the master clock with as wide a PWM as possible, the width of the signal corresponding to the maximum possible exposure time.

Supply a 5khz PWM signal for each width control pin in to control the exposure for brain and the behaviour cameras independently. Make sure the switch is switched to ON for the control pin being used. The Width of the PWM signal corresponds with the timing, with the widest signal being the longest exposure time.

Simulation of the circuit can be found at: https://tinyurl.com/ykhpxhtl

Control Example Code

import
import time

# Set GPIO mode and warning
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)

# Define the pin numbers
master_clock_pin = 17
width_control_pin = 18

# Set the frequency for the master clock (50Hz)
master_clock_frequency = 50

# Set the duty cycle for the master clock (99% width)
master_clock_duty_cycle = 99

# Set the frequency for the width control (5kHz)
width_control_frequency = 5000

# Initialize the GPIO pins
GPIO.setup(master_clock_pin, GPIO.OUT)
GPIO.setup(width_control_pin, GPIO.OUT)

# Initialize PWM for master clock

Throughole Based Triggering System

For making the throughhole 555 trigger there is a .xlsx file with the digikey order needed to create one system. The list can also be found at this link: https://www.digikey.ca/en/mylists/list/3F61W3LRA3. Then the components can be placed on the board based on the silkscreen.

Alt text

Circuit Drawing

Alt text

Solenoid Driver

The Driver is based on using M7 Mosfet drivers, which max out at ~300 mA of current draw at 12V, anything higher will damage and burn out the driver over time. Not suitable for high power solenoids.

Circuit Drawing

Alt text

Glass Slide Cutting Jigs

https://cad.onshape.com/documents/586ecae177d828403c2f23cb/w/295fcf84d2d2bd0672364755/e/c55ac1745cc839e1a44f1998?renderMode=0&uiState=657b82dfe9d1321263616ee4

the Glass Slide Cutting Jig is parameterized by a variable table which determines the depth of the first and second cuts, made to cut 8mm diameter glass slides, should be 3d printed on fine print settings.

Columbia Mouse Cup Clear Sides Model

https://cad.onshape.com/documents/b81ce74945475cb4a4585191/w/58aa1f17095117351b4c242d/e/5ae7ff2c3d7fb6816ba1f3a7?renderMode=0&uiState=657b8323ea32e231b383538c

Clear Sided mouse cup for water reaching task. The sides should be laser cut out of 3mm acrylic, the main cup 3d printed.

Headfix Mount

https://cad.onshape.com/documents/1d2096fc56ebea0ce0825b22/w/af5d367c825ef3549394acac/e/f6e60455f61b46eaad854045?renderMode=0&uiState=657b836199fdb972703cfb45

Model and Drawing for headfix mount, should be tapped and machined. Used JLCPCB to order the Machined versions.

Parts

41
QtyValueFootprintReferences
10Conn_01x02_SocketConnector_JST:JST_EH_S2B-EH_1x02_P2.50mm_HorizontalBehavior1, Behavior2, Behavior3, Behavior4, Behavior5, Behavior6, Brain1, Brain2, Strobing1, Strobing2
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
30-10kPotentiometer_SMD:Potentiometer_Bourns_3314J_VerticalBehav_Timing1, Brain_Timing1, Strobe_Timing1
310 nFCapacitor_SMD:C_0603_1608MetricC1, C2, C3
32.2uFCapacitor_SMD:C_0805_2012MetricBehav_Timing_C1, Brain_Timing_C1, Strobe_Timing_C1
332kResistor_SMD:R_0402_1005MetricR1, R5, R6
3OPA2333xxDPackage_SO:TSSOP-8_3x3mm_P0.65mmU1, U2, U9
3TLC555xDPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmBehav_555, Brain_555, Strobe_555
220kResistor_SMD:R_0402_1005MetricR3, R4
2Conn_01x03_SocketConnector_JST:JST_XA_B03B-XASK-1-A_1x03_P2.50mm_VerticalPower_In1, WidthControlSignal1
110kResistor_SMD:R_0402_1005MetricR2
110kPotentiometer_SMD:Potentiometer_Bourns_3314J_VerticalOutput_Voltage1
174AHC2G00Package_SO:VSSOP-8_2.3x2mm_P0.5mmU8
174LVC2G74Package_SO:SSOP-8_2.95x2.8mm_P0.65mmU7
1SW_DIP_x03Button_Switch_SMD:SW_DIP_SPSTx03_Slide_9.78x9.8mm_W8.61mm_P2.54mmSW1

Questions

How big is the 555Trigger PCB?

It measures 63.5 × 112.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 555Trigger use?

41 parts, built around the 74AHC2G00DC and 74LVC2G74DP. 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 555Trigger KiCad files?

From the ubcbraincircuits/Mesoscope-Resources repository on GitHub, at the commit this page was made from: the board is 555Trigger/555Trigger.kicad_pcb and its schematic 555Trigger/555Trigger.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 555Trigger design in my own project?

Its repository states no licence, so its author keeps all rights: ask ubcbraincircuits before reusing the design.

More from ubcbraincircuits/Mesoscope-Resources

1
  • 2 layers29.8 × 23.5 mmSolenoidDriver, the printed circuit board in 3D

    SolenoidDriver

    ubcbraincircuits/Mesoscope-Resources

    Download Arduino IDE: Visit the official Arduino website: Arduino Software. Choose the appropriate version for your operating system (Windows, macOS, Linux), and download the installer.

    18 parts

Similar boards

  • 4 layers127.6 × 98 mmHomebrew6502Project, the printed circuit board in 3D

    Homebrew6502Project

    snorklerjoe/useful6502

    A homebrew 65c02s-based computer and custom operating system, with a handful of modern features.

    275 parts1MIT
  • 4 layers83.3 × 68.2 mmIDE, the printed circuit board in 3D

    IDE

    Synthron/S65

    Yet another 8bit Retro Computer

    23 parts2
  • 4 layers68.8 × 53.6 mmPhaseLatch, the printed circuit board in 3D

    PhaseLatch

    AndersBNielsen/PhaseLatch

    20MHz bandwidth SDR IQ ADC

    140 parts46
  • 2 layers98 × 119.5 mmAtari23MTS Upgrade, the printed circuit board in 3D

    Atari23MTS Upgrade

    gianlucarenzi/AT2019

    ATARI 8-Bit Stuff XL, XE

    92 parts9
  • 4 layers44.5 × 28 mmOpenPnPVis, the printed circuit board in 3D

    OpenPnPVis

    angusgbishop/PnPCAM

    An Open Source Vision Camera designed for pick-and-place machines.

    70 parts7GPL-3.0
  • 4 layers200 × 110 mmLTDM RevC, the printed circuit board in 3D

    LTDM RevC

    aschmidt99/LTDM_Kit_RevC

    New LTDM Code that has render.cpp

    412 parts2
  • 2 layers50 × 40 mmShareusbdisk2, the printed circuit board in 3D

    Shareusbdisk2

    hnz1102/shared-usb-memory

    USB Memory with One-touch Switching Between Two Device Connections

    83 parts2
  • 2 layers98.6 × 49.8 mmSch, the printed circuit board in 3D

    Sch

    SL-RU/svelotracker

    Device for bicycle. It will show current position, track, speed, compass, direction to the destination or to start. It can save the track and etc

    106 parts1