
Motorized Commutator Tx PCB
bsbrl/Motorized-Commutator
This repository contains the necessary software, CAD, and PCB fabrication files, and instructions needed to setup a CV guided open-source active commutator for neural imaging.

This repository contains the necessary software, CAD, and PCB fabrication files, and instructions needed to setup a CV guided open-source active commutator for neural imaging.
MC Circuit v2 is an open-source printed circuit board by bsbrl, from the bsbrl/Motorized-Commutator repository on GitHub. It is a 2-layer board of 93.2 × 50 mm with 33 parts on 50 nets, routed with 192 tracks and 3 vias.
It is built around the NRF24L01 and MS 2. Its parts include 9 capacitors, 9 connectors, 3 resistors, 3 ICs and 3 diodes. It belongs with the NXP (LPC, Kinetis, i.MX RT) boards of this library.
This repository contains the necessary software, CAD, and PCB fabrication files, and instructions needed to setup a CV guided open-source active commutator for neural imaging. The software files include the Python and Teensy codes for live tracking and cable tangling elimination. The CAD files are a combination of SolidWorks assembly files, SolidWorks part files, and step files.
The Rx PCB Production and Tx PCB Production folders contain the files needed to fabricate the PCBs. The same folders also contain the BOM information for the PCBs.
The CAD folder contains the SolidWorks assembly files for the motorized commutator and the translating commutator.
If you are setting up just the rotation stage, there are two parts that you will need to 3D print:
Motor, Slip Ring, and Circuit Holder This part houses the motor, slip ring, and the motorized commutator PCB. The part also provides a means to attach the assembly to an arena using screws.
Cable Holder and Support with Pulley This part holds and supports the cables exiting the slip ring. Also, it is mounted directly on the slip ring and thus provides a means to drive the slip ring through a pulley system.
If you are setting up the translation stage as well, you will need to print an additional part for attaching the rotation state to the gantry: Motorized Commutator Gantry Attachment
The following steps assume you have Anaconda installed on your machine. The commands can be run through Anaconda Powershell Prompt.
Create a conda environment with Python 3.7 and tensorflow:
conda create -n dlc-commutator python=3.7 tensorflow-gpu==1.13.1 # if using GPU
conda create -n dlc-commutator python=3.7 tensorflow==1.13.1 # if not using GPUActivate the conda environment, install the DeepLabCut-live package:
conda activate dlc-commutator
pip install deeplabcut-liveYou can test the dlc-live installation by running the following command:
dlc-live-test
You can find more information about dlc-live installation from the Github page.
Install other necessary packages:
pip install pyserial
pip install keyboard
pip install matplotlibAlso, install the Arduino software from the Arduino Website. Once you have this installed, install the Teensy add-on in the Arduino IDE. This is needed to flash firmware to the Teensy microcontroller.
Switch to the directory that contains the live tracking software:
cd <path to folder>
These commands can be run through Anaconda Powershell Prompt to start the live tracking software:
python apa_live_tracking.py # APA live tracking for instance| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100n | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4, C5, C8 |
| 3 | , , | ||
| 3 | 220R | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R3 |
| 2 | 10u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C6, C9 |
| 2 | 4.7u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1, C2 |
| 1 | 100u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C7 |
| 1 | A4988/TMC2209 | Teensy 4.0:Pololu_A4988 | A1 |
| 1 | AUTO | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D2 |
| 1 | Barrel_Jack_MountingPin | Teensy 4.0:BarrelJack_Horizontal | J5 |
| 1 | Conn_01x10_Female | Connector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_Vertical | J2 |
| 1 | Conn_01x14_Female | Connector_PinSocket_2.54mm:PinSocket_1x14_P2.54mm_Vertical | J3 |
| 1 | Conn_02x02_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_Vertical | J10 |
| 1 | LD1117S33TR_SOT223 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | LD1117S50TR_SOT223 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | MANUAL | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D1 |
| 1 | MS1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
| 1 | MS2 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J7 |
| 1 | MS3 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J8 |
| 1 | NRF24L01 | Connector_PinSocket_2.54mm:PinSocket_2x04_P2.54mm_Vertical | J1 |
| 1 | PWR IND | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D3 |
| 1 | STEPPER | Connector_JST:JST_EH_B4B-EH-A_1x04_P2.50mm_Vertical | J9 |
| 1 | SW_SPDT | SPDT_Toggle_Switch:SW_100SP1T1B4M2QE | S1 |
| 1 | Teensy4.0 | Teensy 4.0:MODULE_DEV-15583 | U1 |
The 32 most common of 33 parts.

bsbrl/Motorized-Commutator
This repository contains the necessary software, CAD, and PCB fabrication files, and instructions needed to setup a CV guided open-source active commutator for neural imaging.

griffotron/MotionModuleSTM32R8
PCB design and code for the STM32 powered Motion Module that controls 14 stepper motors


dustinreynolds/STM32Hardware
Repository for Kicad board development and support libraries

Benedikt3141/Smart-Irrigation-System
A smart irrigation system for irrigation of up to 6 plants. It monitors the moisture, temperature, CO2 concentration, air quality ... and displays the data on a 2.4" TFT Display using an ESP32 DevKit C as processor.



ballhog/calyx-level
Wired, fail-safe auto top-off (ATO) for a reef system. Part of the Corallite Calyx family (wired connected devices: Calyx-Outlet, Calyx-Sense, Calyx-Level).

It measures 93.2 × 50 mm and has 2 copper layers, 1.6 mm thick.
33 parts, built around the NRF24L01 and MS 2. 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.
From the bsbrl/Motorized-Commutator repository on GitHub, at the commit this page was made from: the board is Rx-PCB/MC_Circuit_v2.kicad_pcb and its schematic Rx-PCB/MC_Circuit_v2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask bsbrl before reusing the design.