Skip to the content
PCBKitNew board
2 layers53.9 × 102.1 mmKicad CaPuLeT PCB Update, the printed circuit board in 3D

Kicad CaPuLeT PCB Update

UNC-optics/CaPuLeT

CaPuLeT: Calcium-imaging, Pupillometry, and Locomotion-estimated Tracking (CaPuLeT) is a custom-made MATLAB graphical user interface (GUI) compatible with a complete head-fixed locomotion wheel system.

Size
53.9 × 102.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
93
Pads
169
Tracks, vias
192, 12
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Aug 2023
Updated
2 Oct 2024

Overview

Kicad CaPuLeT PCB Update is an open-source printed circuit board by UNC-optics, from the UNC-optics/CaPuLeT repository on GitHub. It is a 2-layer board of 53.9 × 102.1 mm with 31 parts on 93 nets, routed with 192 tracks and 12 vias.

It is built around the AOSS32334C. Its parts include 14 resistors and 4 transistors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

An open-source system to integrate Calcium-imaging, Pupillometry, and Locomotion-estimated Tracking (CaPuLeT) in head-fixed mice

Designed by members of the Pégard and Rodríguez-Romaguera Labs at the University of North Carolina at Chapel Hill, CaPuLeT allows researchers to capture locomotion, pupil dynamics, and body kinematics simultaneously. Our system relies on CMOS cameras, an infrared camera placed at eye-level to capture pupil size and an additional camera to record body kinematics. Our system is capable of capturing locomotion, or the mouse's movement across time, as our wheel system is attached to a mounted rotary encoder. For more information, refer to Ortiz-Juza et al, 2024 [1].

Graphic User Interface (GUI)

The CaPuLeT MATLAB graphical user interface (GUI) allows users to trigger and manage the cameras and LEDs driven by an Arduino microcontroller with a custom shield. Within CaPuLeT, users can track locomotion, pupil-size, and in vivo calcium imaging data in real-time.

Behavioral and Imaging Data Collected:

  • IR Camera → Pupil Dynamics (Dilation and Constriction)
  • Additional Camera → Body Kinematics (Body and Tail Movement)
  • Rotary Encoder → Locomotion (Speed and Acceleration)
  • Multi-Photon Microscope → Neuronal Activity (Intracellular Calcium Concentration)

Custom Arduino Printed Circuit Board Shield:

The head-fixation wheel system is driven and controlled by an Arduino Mega 2560 microcontroller board, with a custom printed circuit board (PCB) Arduino shield with built-in resistance, interactive feedback LEDs, real-time clock compatibility, and screw hole terminals. The printed circuit board shield expands the capabilities of the microcontroller board and allows for greater stability than a conventional solderless circuit board. The Arduino shield allows users to interface with each of the components of the CaPuLeT GUI.

Commercially Available and Custom Made Parts

The following component list details the manufacturer, part number, and quantity of each item required. This version of the component list contains a color coded key which provides an additional layer of support when building the system.

Part NumberDistributorPart NameDistributor Part NumberQuantity NeededUnit PriceTotal Price
1McMaster5 mm Linear Motion Shaft6112K371$10.98 $10.98
2McMasterClear Impact-Resistant Polycarbonate Film85585K151$8.35 $8.35
3McMasterFemale Threaded Round Standoff93330A54110$2.13 $21.30
4McMasterSocket Head Screw M3 x 0.5 mm Thread, 6 mm Long91290A1111 (Pack of 100)$10.91 $10.91
5PoluluAluminum Mounting Hub for 5mm Shaft12031 (Pack of 2)$18.90 $18.90
6PoluluMachine Screw: #4-40, 1/2? Length, Phillips19621 (Pack of 25)$1.39 $1.39
7Thorlabs0.75 Inch PostTR0751$5.38 $5.38
8Thorlabs2 Inch PostTR22$5.90 $11.80
9Thorlabs3 Inch PostTR32$6.15 $12.30
10Thorlabs4 Inch Post, 5 PackTR4-P51 (Pack of 5)$30.00 $30.00
11Thorlabs6 Inch PostTR62$8.09 $16.18
12Thorlabs8 Inch PostTR82$9.69 $19.38
13Thorlabs10 Inch PostTR102$10.76 $21.52
14Thorlabs2 Inch Post HolderPH21$8.95 $8.95
15Thorlabs3 Inch Post HolderPH34$9.62 $38.48
16Thorlabs6 Inch Post HolderPH61$14.70 $14.70
17ThorlabsRight Angle End ClampRA1804$12.34 $49.36
18ThorlabsRotating ClampSWC1$26.91 $26.91
19ThorlabsRight Angle Post ClampRA90TR1$17.82 $17.82
20ThorlabsMini Optical PostMS3R1$9.09 $9.09
21ThorlabsAluminum Breadboard 8" x 10" x 1/2", 1/4"-20 TapsMB8101$131.60 $131.60
22ThorlabsAluminum Breadboard 12" x 18" x 1/2", 1/4"-20 TapsMB12181$214.65 $214.65
23ThorlabsBreadboard Lifting Handles, Reinforced Polymer BBH12 (Pack of 2)$17.01 $17.01
24Thorlabs4-40 Stainless Steel Cap Screw, 3/8" LongSH4S0381 (Pack of 50)$9.31 $9.31
25ThorlabsSpring-Loaded 3/16" Hex-Locking Thumbscrew, 1/4"-20 ThreadTS25H2$2.87 $5.74
26Thorlabs1/4"-20 Stainless Steel Setscrew, 5/8" Long (Adaptor)SS25S06251 (Pack of 25)$6.97 $6.97
27Thorlabs1/4" Washer, M6 Compatible, Stainless SteelW25S0501 (Pack of 100)$10.20 $10.20
28Thorlabs1/4"-20 Stainless Steel NutN25S04401 (Pack of 50)$6.43 $6.43
29OmronRotary Encoder - 1024 P/R (Quadrature)E6B2-CWZ3E (E69-C06B)1$48.50 $48.50
30DB UnlimitedSpeaker 80hm 5 w top port 104db2104-SP500208-3-ND1$6.79 $6.79
31SullinsCorp2.54mm Pitch Single Row Pin Header StripPREC040SAAN-RC3$1.53$1.53
32Ardest2N2222 NPN TO-92 Power Transistors2N22226$1.44$1.44
33Boca Bearings5 mm Steel Ball BearingSMR115-ZZC #5 LD2$10.58 $21.16
34Xenocam9-22mm 1/3" F1.4 M12-mount lens with IR filterXC0922LENS1$19.99 $19.99
35MonopriceUSB 2.0 Type-A Male to Mini-B 5pin Male Cable (Monoprice)B002KL8J8W1$4.78$4.78
36Computar0.33-Inch Varifocal lens 2.8-12mm F1.3 Auto Iris (Computar)B002HRE2ZS / TG4Z2813FCS-IR1(Used)$19.99 $19.99
37Chanzon3 mm UV light, 395-400nm (Chanzon)100F3T-YT-WH-PU1 (Pack of 100)$6.99 $6.99
38Adafruit5 mm super-bright IR LED, 940nm (Adafruit)ADA388 / B00ULB0U441 (Pack of 25)$10.98 $10.98
39Fermerry24 AWG 50 feet Electrical Wire (Fermerry)B089CX3FVV1$26.99 $26.99
40ArduinoArduino Mega 2560 Rev3 Microcontroller Board (Arduino)A000067 / B0046AMGW01$48.99 $48.99
41ArduinoUSB 2.0 Cable Type A/B (Arduino)M000006 / B013EOQUAW1$7.00 $7.00
42TnisesmPCB Mount Screw Terminal Block Connectors (Tnisesm)CATN-T03B1$8.99 $8.99
43AdeepReal Time Clock Module DS3231 AT24C32 IIC (Adeept)2pcsDS3231 / B097PMNMQZ1 (Pack of 2)$7.99 $7.99
44LiCB3V Lithium Battery (Junpower)CR2032 / B07LGL9LQ11 (Pack of 10)$4.99 $4.99
45ELECFUNHeat Shrink Tubing (Electfun)RSG-KIT3501$14.99 $14.99
46YancorpBlack Adhesive contact paper (Yancorp)B082CPSVPW1$6.98 $6.98
47Weld-OnIPS Weld-On 3 Acrylic Plastic Cement (Weld-On)?TLLPN-218477711$28.55 $28.55
48CENTROPOWER12V 5A DC Power Cable Male Female Connector (Centro Power)DCCORD-MF1 (Pack of 10)$9.19 $9.19
49CENTROPOWER12V DC Power Connector Barrel Adaptor (Centro Power)B07C61434H1 (Pack of 10)$7.99 $7.99
50ALITOVE12V Red LED Flexible Strip Ribbon Light (Alitrove, 16.4 feet)AL5RWPBK12V1$13.99 $13.99
51MifasopowerPower Strip Surge Protector 10Ft (Mifaso Power)MFS311T1$19.99 $19.99
52Sumato StuffAnti Vibration Pads (Functional Necessities)SSHI000031 (Pack of 4)$14.99 $14.99
53Focusound1" x 12" x 12" Sound Absorption Wall Panels (Xin & Log)FS0302A1 (Pack of 24)$17.99 $17.99
54TANTTI4 inch Zip Ties with 18 lb Tensile Strength6044778472831 (Pack of 200)$3.99 $3.99
553M3M Scotch Super 33+ Electrical Tape - 3/4 in x 52 ftMMM061331$4.98 $4.98
56AmazonHirose 4 Pin Female HR10A-7P-4S to Flying Leads Power Cable (Alvin’s Cables)HR10A-7P-4S(73)1$25.99 $25.99
57Custom Machined PartsRotary Encoder Adaptor (Aluminum 304)CNC Machining (eMachineShop)6 (Bulk Purchase)$28.43 $170.62
58Custom Machined PartsHead Plate Holder (Aluminum 304)CNC Machining (eMachineShop)12 (Bulk Purchase)$30.20 $362.44
59Custom Machined PartsHead Plate (Top Piece) (Aluminum 304)CNC Machining (eMachineShop)6 (Bulk Purchase)$39.14 $234.85
60Custom Machined PartsHead Plate (Bottom Piece) (Aluminum 304)CNC Machining (eMachineShop)6 (Bulk Purchase)$51.01 $306.04
61Custom Machined PartsHead rings (Aluminum 6061-T6)CNC Machining (eMachineShop)100 (Bulk Purchase)$5.16 $258.22
62Custom Machined PartsRotary Wheel (1/8 Thick Clear Cast Acrylic)Laser Cutting (Ponoko)2$61.06 $61.06
63Custom Machined PartsRotary Wheel Curved Surface (Clear Cast Acrylic)Laser Cutting / Manual Cutting1$0.00 $0.00
64Custom Machined PartsRotary Wheel Curved Surface (Black Adhesive Contact Paper)Laser Cutting / Manual Cutting1$0.00 $0.00
65Custom Machined PartsWaste Management Ramp (Resin)3-D Printing (Craftcloud3d)1$57.76 $57.76
66Custom Machined PartsArduino Mega 2560 Rev3 Protective Case (Resin)3-D Printing (Craftcloud3d)1$16.06 $16.06
67Custom Machined PartsArduino Mega 2560 Rev3 Shield SMT PCBPCB Manufacturing (JLC PCB)1XX
68FLIRFirefly S CameraFFY-U3-16S2M-S1$234.00 $234.00
69FLIRTripod Adapter for Firefly S CameraACC-01-00171$32.10 $32.10
70FLIRUSB 3.1 Locking CableACC-01-23001$24.60 $24.60
71FLIRGPIO cable w/ 6 pinsACC-01-30151$9.60 $9.60
72The Imaging SourceUSB 2.0 CMOS Monochrome CameraDMK-22BUC031$234.00 $234.00
73SYSRACKS15U 35" Depth Under Desk Sound Proof Server CabinetSP15.9001$1,122.00 $1,122.00

This document outlines the design of each of the custom pieces and the file types found within this repository that can be used to replicate the system. More details regarding the specifications of the custom parts can be found here. The following spreadsheet outlines the total cost of the system.

Here is a list of the manufacturers we purchased materials from:

  • McMaster-Carr
  • Pololu
  • Thorlabs
  • SparkFun
  • Digikey
  • Amazon
  • FLIR
  • The Imaging Source
  • SYSRACKS

Here is a list of companies you can purchase custom parts from, if not fabricated in-house:

  • eMachineShop (CNC Machining)
  • Ponoko (Laser Cutting)
  • Craftcloud3d (3-D Printing)
  • JBL PCB (PCB Printing / Soldering)

Step-by-Step Building Guide

A fully functioning system requires users to build the following elements from the materials purchased:

  • Locomotion Wheel
  • Headplate Fixation System
  • IR / UV LEDs

Additionally, the following commercial materials need to modified to be used within our system:

  • Rotary Encoder
  • GPIO Cable
  • Hirose Cable
  • Overhead Speaker
  • Ambient Noise Fan
  • Red LED Strips

This following guide provides a step-by-step walkthrough for building and modifying each of the required components. This document includes diagrams and explanations for assembling each of the final components of the build.

Software Installation Guide and Dependencies

Following this installation guide will ensure that your system will be able to run the set of MATLAB scripts and Arduino IDE sketches we have provided. Our system is run primarily on MATLAB's interface. While other software is used to first initialize components, such as Arduino IDE for the rotary encoder and Spinnaker SDK for the cameras, the subsequent input signals and data acquisition steps are performed exclusively with MATLAB.

Required Software and Applications:

Our MATLAB scripts are based on MATLAB R2022a, a previous version of the software application. Running our scripts on a more recent version of the application will result in a number of errors. After downloading MATLAB R2022a, you will need to download a number of toolboxes and add-ons.

Base Toolboxes:

  • Data Acquisition Toolbox
  • Image Acquisition Toolbox
  • Image Processing Toolbox
  • Statistics and Machine Learning Toolbox

Additional Toolbox Support Packages:

  • Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices
  • Image Acquisition Toolbox Support Package for GenICam Interface
  • Image Acquisition Toolbox Support Package OS Generic Video Interface
  • Image Acquisition Toolbox Support Package for Point Grey Hardware
  • Image Acquisition Toolbox Support Support Package for GigE Vision Hardware
  • MATLAB Support Package for Arduino Hardware

Finally, users will need to download the following drivers to generate a connection between their computer system and an external hardware device. In our case, we need to download two drivers to interface with the additional camera used in our system.

Driver Requirements:

Library Requirements:

Contact

Further information and requests for resources should be directed to and will be fulfilled by the lead contact and corresponding author, Jose Rodriguez-Romaguera (jose_rodriguezromaguera@med.unc.edu). Example pupillometric and locomotion data is available upon request to the technical contact and corresponding author, Nicolas C. Pégard (pegard@unc.edu).

Citation

If you replicate this system in your own labs or use parts of our designs and code, we kindly ask that you please cite Ortiz-Juza et al, 2024 [1].

[1] Ortiz-Juza, M. M., Tormes-Vaquerano, J., Hegel, S. M., Curtis, V. R., Alghorazi, R. A., Miller, N. W., McTaggart, E. M., Pégard, N. C., & Rodriguez-Romaguera, J. (2024). Protocol for an open-source system to integrate calcium imaging, pupillometry, and locomotion-estimated tracking in head-fixed mice. STAR Protocols, 5(4), 103331. https://doi.org/10.1016/j.xpro.2024.103331

Parts

31
QtyValueFootprintReferences
10300Resistor_SMD:R_0805_2012MetricR3, R11, R13, R15, V_LED_R1, V_LED_R2, V_LED_R3, V_LED_R4, V_LED_R5, V_LED_R6
6LEDLED_SMD:LED_0805_2012MetricV_LED1, V_LED2, V_LED3, V_LED4, V_LED5, V_LED6
410kResistor_SMD:R_0805_2012MetricR9, R10, R12, R14
4AOSS32334cPackage_TO_SOT_SMD:SOT-23Q5, Q6, Q7, Q8
3Screw_Terminal_01x04TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-4_1x04_P5.00mm_HorizontalOther1, Rotary_Encoder1, Rotary_Encoder2
1Arduino_Mega2560_R3_Shieldarduino-library:Arduino_Mega2560_R3_Shield_Reduced_HoleA1
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalReal_Time_Clock1
1Screw_Terminal_01x05TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-5_1x05_P5.00mm_HorizontalUV_Leds/IR_LEDs1
1Screw_Terminal_01x06TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-6_1x06_P5.00mm_HorizontalCameras/DAQ/Opto1

Questions

How big is the Kicad CaPuLeT PCB Update PCB?

It measures 53.9 × 102.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Kicad CaPuLeT PCB Update use?

31 parts, built around the AOSS32334C. 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 Kicad CaPuLeT PCB Update KiCad files?

From the UNC-optics/CaPuLeT repository on GitHub, at the commit this page was made from: the board is Building Files/KiCAD Arduino Shield PCB/Kicad_CaPuLeT_PCB_Update.kicad_pcb and its schematic Building Files/KiCAD Arduino Shield PCB/Kicad_CaPuLeT_PCB_Update.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Kicad CaPuLeT PCB Update design in my own project?

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

Similar boards

  • 2 layers44.5 × 46.9 mmOSO SWAT B1-jig, the printed circuit board in 3D

    OSO SWAT B1-jig

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    31 parts2.1k
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    31 parts1kGPL-3.0
  • 2 layers191 × 98.5 mmMacroKeypad, the printed circuit board in 3D

    MacroKeypad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    31 parts915
  • 2 layers39 × 45.2 mmCH32V003F4P6-R0-1v1, the printed circuit board in 3D

    CH32V003F4P6-R0-1v1

    openwch/ch32v003

    CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10

    31 parts599
  • 2 layers26.7 × 27.9 mmBreakout board, the printed circuit board in 3D

    Breakout board

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    31 parts546MIT
  • 2 layers100 × 50 mmPixelix, the printed circuit board in 3D

    Pixelix

    BlueAndi/Pixelix

    Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT.

    31 parts447MIT
  • 2 layers77.2 × 69.8 mmCubesatsim solar, the printed circuit board in 3D

    Cubesatsim solar

    alanbjohnston/CubeSatSim

    CubeSatSim, the AMSAT CubeSat Simulator

    31 parts419GPL-3.0
  • 2 layers103 × 55 mmTd neck-294, the printed circuit board in 3D

    Td neck-294

    tdaede/td-crt

    tubes

    31 parts373