Skip to the content
2 layers69.3 × 41.1 mmSimplifiedTrigger, 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
69.3 × 41.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
20
Pads
101
Tracks, vias
151, 8
Pours
4
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
19 Sep 2023
Updated
19 Dec 2023

Overview

SimplifiedTrigger is an open-source printed circuit board by Tsuchijo, from the Tsuchijo/TM-Lab-Mesoscope-Resources repository on GitHub. It is a 2-layer board of 69.3 × 41.1 mm with 30 parts on 20 nets, routed with 151 tracks and 8 vias.

It is built around the LM358, NE555P and 74HC74D. Its parts include 1 connector and 1 switch.

Main components

3

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

30
QtyValueFootprintReferences
11Conn_01x02_PinConnector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_VerticalBhv1, Bhv2, Bhv3, Bhv4, Bhv5, Bhv6, Brain1, Brain2, J1, Strb1, Strb2
40.1 uFCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm0.1uF, 0.1uF, 0.1uF, 0.1uF
433kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal33k, 33k, 33k, 33K
210k-0Potentiometer_THT:Potentiometer_Bourns_3386P_Vertical10k Pot, 10k Pot
22.2 ufCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm2.2uF, 2.2uF
2LM358Package_DIP:DIP-8_W7.62mmLM358, LM358
2NE555PPackage_DIP:DIP-8_W7.62mm555, 555
174HC74Package_DIP:DIP-14_W7.62mm74HC74
1Conn_01x03_PinConnector_JST:JST_EH_B3B-EH-A_1x03_P2.50mm_VerticalJ2
1SW_DIP_x02Button_Switch_THT:SW_DIP_SPSTx02_Slide_9.78x7.26mm_W7.62mm_P2.54mmSW1

Similar boards

  • 4 layers200 × 142.3 mmFRED Electrical Scheme KiCAD, the printed circuit board in 3D

    FRED Electrical Scheme KiCAD

    GiulianoAgostini04/FRED-Project

    Real-time concentration monitoring system based on frontal-lobe EEG signals. Features a custom PCB designed with TinkerCAD and KiCad, OpenBCI Ganglion and Arduino UNO for signal acquisition, display, and frequency-band…

    93 parts1MIT
  • 2 layers52.1 × 37.5 mmSg90 driver, the printed circuit board in 3D

    Sg90 driver

    jacks-hax/Jerry

    Jerry's brains ;)

    32 parts1GPL-3.0
  • 4 layers188 × 128.3 mmZAK180, the printed circuit board in 3D

    ZAK180

    agkaminski/ZAK180

    DIY all-in-keyboard computer featuring Z180 and floppy drive

    140 parts
  • 2 layers204.5 × 66 mmDigitalProtoBoard, the printed circuit board in 3D

    DigitalProtoBoard

    RomualdRousseau/Kicad

    Various Kicad Sketches to test new ideas

    57 parts
  • 2 layers160 × 100.3 mmZ80, the printed circuit board in 3D

    Z80

    dennis9819/Z8C-Homebrew-Computer

    To easily develop for my Z80 homebrew system, I designed a simple assempler development environment. This packs the following tasks into one script: zmac assembly object file creation (for xmodem upload) monitor file…

    65 parts2
  • 2 layers100 × 100 mm65C816, the printed circuit board in 3D

    65C816

    Novolin/65816-breadboard-computer

    My Personal 65C816 breadboard build, including schematics, etc.

    21 partsGPL-2.0
  • 2 layers149.9 × 99.5 mmMegafrank, the printed circuit board in 3D

    Megafrank

    rh1tech/frank

    RP2350 Based Hardware Emulation Platform

    262 parts66GPL-3.0
  • 4 layers99.5 × 99.5 mmTurbofrank m1p2, the printed circuit board in 3D

    Turbofrank m1p2

    rh1tech/frank-archive

    Archive of FRANK Boards

    224 parts3

Questions

How big is the SimplifiedTrigger PCB?

It measures 69.3 × 41.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the SimplifiedTrigger use?

30 parts, built around the LM358, NE555P and 74HC74D. 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 SimplifiedTrigger KiCad files?

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

Can I use the SimplifiedTrigger design in my own project?

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