Skip to the content
4 layers71 × 89 mmMagnet, the printed circuit board in 3D

Repository for hardware, firmware, and software related to the Mouse-GYM modules

Size
71 × 89 mm
Copper layers
4
Thickness
1.6 mm
Parts
173
Nets
113
Pads
497
Tracks, vias
828, 183
Pours
6
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
17 Jul 2025
Updated
16 Oct 2026

Overview

Magnet is an open-source printed circuit board by Mouse-GYM, from the Mouse-GYM/auto-trainer-hardware repository on GitHub. It is a 4-layer board of 71 × 89 mm with 173 parts on 113 nets, routed with 828 tracks and 183 vias.

It is built around the STM32G474RET6, ATA6561-GAQW-N and MCP6001R-I/OT, with the NAU7802SGI, TPS561201DDCR and TPS565208DDC among its other parts. Its parts include 45 capacitors, 31 resistors, 15 ICs, 14 connectors and 4 diodes. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

Autotrainer / MouseGym

Description

This repository contains hardware design files, firmware, and support software for the MouseGym project.

Repository Structure

  • hardware/: Contains hardware design files for the MouseGym modules
    • magnet_module/ - KiCAD files for the magnet module
    • pellet_module/ - KiCAD files for the pellet module
    • jetson_breakout/ - KiCAD files for the Jetson breakout board
    • manufacturing/ - Contains files that were used for manufacturing the PCBs, including schematics, gerbers, and BOMs
  • firmware/: Contains firmware for the MouseGym modules. This is set up as a Zephyr West workspace.
  • software/: Contains host tools and libraries for interacting with the modules over CAN
    • libjerrycan/ - A library for interacting with the JerryCAN CAN protocol. Includes Python bindings, pyjerrycan
    • whiskerwire/ - A diagnostic tool for observing and manipulating the state of the MouseGYM modules
    • jerrycan_updater - A tool for updating the firmware on the MouseGym modules over CAN

Building Firmware & Software

For setting up the firmware build dependencies, see the more detailed instructions in the firmware/README.md file.

bash
cmake -B build -GNinja -DCMAKE_INSTALL_PREFIX:PATH=../tmp
ninja -C build
ninja -C build install

NOTE: At various points in the build process, the console output may stop showing any updates for several mintues. Please be patient, especially on the first build.

After the install step is complete, the tmp/ directory will contain the following structure:

text
tmp/
├── bin
│   └── jerrycan_updater
├── firmware
│   ├── magnet_module.bin
│   └── pellet_module.bin
├── include
│   ├── jerrycan_types.h
│   └── libjerrycan.h
└── lib
    ├── libjerrycan.a
    └── pyjerrycan.cpython-310-x86_64-linux-gnu.so

For WhiskerWire setup, see software/README.md.

Updating Firmware

To update the firmware on the MouseGym modules, use the jerrycan_updater tool. This tool is built as part of the above flow. The firmware files are located in the tmp/firmware/ directory.

In order to flash a Magnet Module with address 0x04, use the following command:

bash
tmp/bin/jerrycan_updater -m 4 -f tmp/firmware/magnet_module.bin

Parts

173
QtyValueFootprintReferences
50TestPointTestPoint:TestPoint_Pad_1.0x1.0mmTP1, TP2, TP10, TP11, TP12, TP13, TP14, TP15, TP16, TP17, TP18, TP19, TP20, TP21, TP22, TP23 +34
240.1uFCapacitor_SMD:C_0603_1608MetricC1, C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C21, C22, C29, C30 +8
1210kResistor_SMD:R_0603_1608MetricR6, R7, R8, R9, R10, R11, R13, R17, R25, R26, R27, R28
81uFCapacitor_SMD:C_0603_1608MetricC4, C9, C25, C26, C35, C36, C43, C45
64.7kResistor_SMD:R_0603_1608MetricR19, R20, R21, R22, R23, R24
422uFCapacitor_SMD:C_0603_1608MetricC23, C31, C32, C33
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_PadH1, H2, H3, H4
310uFCapacitor_Tantalum_SMD:CP_EIA-3216-10_Kemet-IC37, C40, C42
310uFCapacitor_SMD:C_0603_1608MetricC20, C27, C28
3ESD122DMYRLeaf_Diode:DMY0003AU7, U13, U14
3FerriteBeadInductor_SMD:L_0603_1608MetricFB1, FB2, FB3
247Resistor_SMD:R_0603_1608MetricR4, R5
249.9kResistor_SMD:R_0603_1608MetricR29, R30
25.1kResistor_SMD:R_0603_1608MetricR2, R3
2CK_PTS526_SK15_SwitchLeaf_Switch:CK_PTS526_SK15_SwitchSW2, SW3
2Conn_01x02_PinConnector_Molex:Molex_Nano-Fit_105313-xx02_1x02_P2.50mm_HorizontalJ11, J13
2Conn_01x03_PinConnector_JST:JST_XH_S3B-XH-A_1x03_P2.50mm_HorizontalJ4, J10
2Conn_01x04_PinConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ5, J12
2Conn_02x02_Odd_EvenConnector_Molex:Molex_Nano-Fit_105314-xx04_2x02_P2.50mm_HorizontalJ2, J3
2MCP6001RPackage_TO_SOT_SMD:SOT-23-5U3, U10
2UPS840E3/TR13Leaf_Diode:POWERMITE3_MCHD1, D3
10530480210Connector_Molex:Molex_PicoBlade_53048-0210_1x02_P1.25mm_HorizontalJ8
110nFCapacitor_SMD:C_0603_1608MetricC34
1120Resistor_SMD:R_0603_1608MetricR1
1150060GS75000Diode_SMD:D_0603_1608MetricD4
1150060YS75000Diode_SMD:D_0603_1608MetricD2
1165Resistor_SMD:R_0603_1608MetricR31
11kResistor_SMD:R_0603_1608MetricR18
11nFCapacitor_SMD:C_0603_1608MetricC24
1220Resistor_SMD:R_0603_1608MetricR14
13.3kResistor_SMD:R_0603_1608MetricR15
13.3uHLeaf_Inductor:L_Taiyo_Yuden_MAMKL2
13.3uHInductor_SMD:L_TDK_VLS6045EX_VLS6045AFL1
133.2kResistor_SMD:R_0603_1608MetricR12
1330pFCapacitor_SMD:C_0603_1608MetricC3
154.9kResistor_SMD:R_0603_1608MetricR16
1ASEMB-8.000MHZ-LC-TLeaf_Clocks:ABRACON_ASEXTAL1
1ATA6561Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1Barrel_JackConnector_BarrelJack:BarrelJack_GCT_DCJ200-10-A_HorizontalJ20
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1IMP23ABSUTRLeaf_Microphone:RHLGA5_3P5X2P65X0P98_STMMIC1
1KC2520Z4.91520C1KX00Oscillator:Oscillator_SMD_Kyocera_KC2520Z-4Pin_2.5x2.0mmU5
1Leaf_LogoLeaf_Mechanical:leaf_logo_smallU2
1NAU7802Package_SO:SOP-16_3.9x9.9mm_P1.27mmU4
1PCM1822IRTERLeaf_ADC:WQFN20_RTE_TEXU11
1S4B-XH-A-1(LF)(SN)Connector_JST:JST_XH_S4B-XH-A-1_1x04_P2.50mm_HorizontalJ7
1STLINK-V3-MINIELeaf_Connectors:Tag-Connect_TC2070-IDC-NL_2x07_P1.27mm_VerticalJ9
1STM32G474RETxPackage_QFP:LQFP-64_10x10mm_P0.5mmU8
1SW_DIP_x02Package_DIP:DIP-4_W8.89mm_SMDSocket_LongPadsSW1
1TPS561201Package_TO_SOT_SMD:SOT-23-6U9
1TPS565208Package_TO_SOT_SMD:SOT-23-6U12
1TXB0102DCUPackage_SO:VSSOP-8_2.3x2mm_P0.5mmU6
1USB_C_Receptacle_USB2.0_14PLeaf_Connectors:AMPHENOL_12402012E212AJ6
1W25Q16JVSSIQPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU15

More from Mouse-GYM/auto-trainer-hardware

3
  • 4 layers114.3 × 108 mmPellet, the printed circuit board in 3D

    Pellet

    Mouse-GYM/auto-trainer-hardware

    Repository for hardware, firmware, and software related to the Mouse-GYM modules

    202 parts
  • 2 layers63 × 23.5 mmJetson breakout, the printed circuit board in 3D

    Jetson breakout

    Mouse-GYM/auto-trainer-hardware

    Repository for hardware, firmware, and software related to the Mouse-GYM modules

    19 parts
  • 4 layers6.4 × 6 mmLed interposer, the printed circuit board in 3D

    Led interposer

    Mouse-GYM/auto-trainer-hardware

    Repository for hardware, firmware, and software related to the Mouse-GYM modules

    3 parts

Similar boards

  • 2 layers52.5 × 80 mmPolaris imu pcb, the printed circuit board in 3D

    Polaris imu pcb

    georgesleen/polaris-imu-pcb

    PCB for Polaris' IMU

    21 parts
  • 4 layers96.5 × 85.5 mmSense&ControlBoard, the printed circuit board in 3D

    Sense&ControlBoard

    Ben-Bussch/COMET-I-Static-Fire

    Avionics for Static Fire of Comet 1

    147 parts
  • 2 layers87 × 67.5 mmResoDriver, the printed circuit board in 3D

    ResoDriver

    NickNiski/ResoDriver

    A control board for a mini resonant IGBT inverter

    102 partsGPL-3.0
  • 2 layers97.4 × 72.1 mmT25 445PCB, the printed circuit board in 3D

    T25 445PCB

    RitvikPatnala/auto-guitar-tuner

    Handheld auto guitar tuner: custom ESP32-S3 PCB with autocorrelation pitch detection and servo-driven peg tuning

    74 partsMIT
  • 2 layers51 × 21 mmFOX JACK EXT BOARD TOP, the printed circuit board in 3D

    FOX JACK EXT BOARD TOP

    KaliAssistant/Fox-Jack

    Portable social-engineering LAN tool for automated payloads and wired audits — based on Luckfox Pico Max

    35 parts22GPL-3.0
  • 2 layers94 × 98 mmVECTAR PSU Rev1a, the printed circuit board in 3D

    VECTAR PSU Rev1a

    OATS-SD-26/VECTAR-PSU-Rev1

    PSU Revision 1

    66 parts
  • 2 layers94 × 85 mmVECTAR PSU REV2, the printed circuit board in 3D

    VECTAR PSU REV2

    OATS-SD-26/VECTAR-PSU-REV2

    Revision 2 of the power supply unit (PSU) PCB for the VECTAR project.

    67 parts

Questions

How big is the Magnet PCB?

It measures 71 × 89 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Magnet use?

173 parts, built around the STM32G474RET6, ATA6561-GAQW-N, MCP6001R-I/OT and NAU7802SGI. 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 Magnet KiCad files?

From the Mouse-GYM/auto-trainer-hardware repository on GitHub, at the commit this page was made from: the board is hardware/magnet_module/magnet.kicad_pcb and its schematic hardware/jetson_breakout/can.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Magnet design in my own project?

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