Skip to the content
4 layers100 × 80 mmMouse joystick pcb, the printed circuit board in 3D

KiCad design, fabrication package and documentation for a single-axis mouse joystick controller board: RP2040, TMC5130A stepper driver, brake and torque front ends, a pyControl UART peripheral for the Janelia Dudman lab joystick rig.

Size
100 × 80 mm
Copper layers
4
Thickness
1.6 mm
Parts
364
Nets
333
Pads
1,331
Tracks, vias
3,278, 345
Pours
7
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Oct 2026
Updated
21 Oct 2026

Overview

Mouse joystick pcb is an open-source printed circuit board by peterpolidoro, from the peterpolidoro/mouse-joystick-pcb repository on GitHub. It is a 4-layer board of 100 × 80 mm with 364 parts on 333 nets, routed with 3,278 tracks and 345 vias.

It is built around the RP2040, SN74LV541ARKSR and SN74LVC2G17DRYR, with the INA821IDRGT, TPSM365R6FRDNR and TPSM365R6V5RDNR among its other parts. Its parts include 172 resistors, 122 capacitors, 34 ICs, 11 connectors and 8 diodes. It belongs with the keyboards and input and interfaces and adapters boards and the RP2040 boards of this library.

Main components

12

README

README.md

mouse-joystick-pcb

Single-axis mouse joystick controller board for the Janelia Dudman lab joystick rig, built as a native pyControl peripheral. One board drives one joystick: an RP2040 runs a TMC5130A stepper driver with the joystick's encoder and limit switch, a magnetic-particle brake, a torque-sensor bridge and two analog outputs, and speaks a line protocol to pyControl over one UART. The rig has two joysticks and two of these boards.

Status, October 2026: v1.0 is the fabricated revision, tagged v1.0. Four assembled boards have been built by JLCPCB from the package in fab/mouse-joystick-pcb/ (committed 2026-09-21). All four passed bench bring-up and ran the rig's trial task end to end through pyControl running mouse-joystick-firm: units A and B were installed in Rig 1 on 2026-10-09, and units C and D run the verification rig at Peter's desk since 2026-10-12. Every measurement made on a board is in the bring-up log, under the board's serial.

The Board

The block below is written by make docs from the KiCad sources: renders, key dimensions, and links to the schematic, BOM, STEP model and enclosure geometry. Do not edit between the markers; run make docs instead.

Top, straight down

Isometric from the front left

More views, including both elevations, are in the generated documentation.

The documentation site, with the board turning and its design blocks clickable: https://peterpolidoro.github.io/mouse-joystick-pcb/.

PropertyValue
Outline100.0 × 80.0 mm, 5.0 mm corner radius
Thickness1.6 mm
Copper layers4
Mounting holes4 × 3.2 mm
Connectors and controls13
Bill of materials81 distinct parts, 360 placements

Documents

DocumentFile
Schematic, all sheets, PDFmouse-joystick-pcb-schematic.pdf
Schematic sheets, SVG (20)schematic/
Schematic, instance overviews and details, PDFReview booklet
Design blocks placed (15), one page eachblocks/README.md
Board view: the model and the top render with the design blocks numberedboard-view.md
Subsystem sheets (4), from their recipessubsystems/README.md
MCU pin allocation, from the board sourcegpio-allocation.md
Assembly view, topassembly-top.svg
Assembly view, bottomassembly-bottom.svg
Assembled board, STEP, for FreeCADmouse-joystick-pcb-assembled.step
Assembled board, glTF, for a viewer (the library's materials written in)mouse-joystick-pcb.glb
Bill of materialstable · CSV
Outline and mounting holes, dimensioned drawingSVG · PDF · PNG
Board dimensions and stackupboard-dimensions.md
Board geometry, machine readableboard-geometry.json
Mounting holesmounting-holes.csv
Connector locationsconnectors.csv

Enclosure Reference

Millimetres from the centre of the board outline, X right and Y up, looking at the top of the board. Extents are the part's courtyard, which is what a panel cutout has to clear. Full tables in board-dimensions.md.

Outline and mounting holes, dimensioned

The outline and the mounting holes dimensioned, as KiCad draws them: SVG · PDF; the cross is the centre the tables measure from.

Mounting holes

RefX (mm)Y (mm)Drill (mm)
H101-45.035.03.2
H10245.035.03.2
H10345.0-35.03.2
H104-45.0-35.03.2

Connectors and controls

RefPartX (mm)Y (mm)RotExtent X (mm)Extent Y (mm)
J201USB-C-45.0-11.090.0-47.31 to -42.69-16.05 to -5.95
J301RJ45-8P8C-41.08.0270.0-50.0 to -32.0-0.5 to 16.5
J501TBH-1x02-5.08mm-44.024.0270.0-48.3 to -38.717.41 to 30.58
J901Conn_Coaxial_HL-BNC-KHDA16.0-15.00.09.5 to 22.5-21.5 to -8.5
J1101Conn_Coaxial_HL-BNC-KHDA-8.0-15.0180.0-14.5 to -1.5-21.5 to -8.5
J1102TBH-1x04-3.5mm-21.036.0180.0-29.2 to -12.831.25 to 39.5
J1103TBH-1x05-3.5mm1.036.0180.0-8.95 to 10.9531.25 to 39.5
J1301FH12-50S-0.5SVA(54)0.0-36.0180.0-14.75 to 14.75-38.8 to -33.2
J1601TBH-1x02-3.5mm18.036.0180.013.3 to 22.731.25 to 39.5
J1801TBH-1x02-3.5mm37.0-12.0180.032.3 to 41.7-16.75 to -8.5
J2001TBH-1x05-3.5mm37.018.0180.027.05 to 46.9513.25 to 21.5
SW601436333045822-47.5-27.5270.0-49.5 to -45.5-31.0 to -24.0
SW602436333045822-47.5-20.5270.0-49.5 to -45.5-24.0 to -17.0

What Is On It

ConnectorCarries
J301 RJ-45pyControl behaviour port: the UART at 115200 8N1, and the port's 5 V, which powers the MCU when USB is absent
J201 USB-Cfirmware load, a USB serial console, and the other MCU power source
J501 2-pos 5.08 mm terminal36 V motor supply, behind a protected, firmware-switched high-side input
J1102 4-pos 3.5 mm terminalstepper coils
J1103 5-pos 3.5 mm terminalencoder: supply, return, A and B
J1601 2-pos 3.5 mm terminallimit switch
J1801 2-pos 3.5 mm terminalbrake coil, driven by a 0 to 49 mA current sink
J2001 5-pos 3.5 mm terminaltorque-sensor bridge: excitation, signal pair, ground and shield
J1101 BNCjoystick angle, 0 to 3.3 V analog out
J901 BNCtorque, 0 to 3.3 V analog out
J1301 50-pin FFCinstrument port: 32 buffered digital taps for a logic analyzer
SW601, SW602side-actuated buttons for the RP2040: BOOTSEL and reset

The board has two power domains. The MCU domain runs from USB or from the pyControl port's 5 V and is always on, so the board answers ID and STATUS with the motor supply off. Everything else, the driver, the brake sink, the torque front end and the analog outputs, runs from the 36 V input through a switched high-side input that firmware controls, so pyControl can power-cycle every peripheral to a known state without anything being unplugged. Power explains the chain.

The two joysticks use different motor and encoder cables so that the boards and the firmware can be identical; a board carries no left or right state. Harness pinouts gives both cables and how a wrong one shows up.

Documents

Opening And Fabricating

KiCad 10 opens kicad/mouse-joystick-pcb.kicad_pro. The schematic and board carry their own copies of every symbol and footprint; KiCad reports the project's shared libraries as missing once and carries on, and the only loss is the 3D models in the viewer, which the assembled STEP model under docs/generated/3d/ covers.

To order more boards, upload mouse-joystick-pcb-jlcpcb.zip, jlcpcb-bom.csv and jlcpcb-mouse-joystick-pcb-all-pos.csv from fab/mouse-joystick-pcb/ to JLCPCB; the package's README records what was validated and which placement rotations were corrected. To fabricate elsewhere, plot the layers and drill files from the board in KiCad.

Related Repositories

Development

The board was drawn from a shared KiCad library and toolchain, which is needed only to regenerate docs/generated/, the fabrication package or the composed sheets. docs/development.md describes that toolchain, the environment, the sibling repositories and the design and layout record. Agent guidance is in AGENTS.md and .agents/.

License

Hardware design files and documentation are CC-BY-SA-4.0; code and automation are 3-clause BSD. See LICENSE.

Citation

CITATION.cff carries the citation metadata; GitHub renders it under "Cite this repository".

Parts

364
QtyValueFootprintReferences
51100nFCapacitor_SMD:C_0402_1005MetricC1201, C1203, C1204, C1206, C1207, C1209, C1210, C1302, C1303, C1304, C1305, C1504, C1505, C1601, C1805, C1806 +35
48100Resistor_SMD:R_0402_1005MetricR1205, R1206, R1207, R1208, R1305, R1306, R1307, R1308, R1309, R1310, R1311, R1312, R1313, R1314, R1315, R1316 +32
3910kResistor_SMD:R_0402_1005MetricR1101, R1102, R1103, R1104, R1105, R1106, R1107, R1201, R1301, R1302, R1303, R1304, R1701, R1801, R1817, R1902 +23
261kResistor_SMD:R_0402_1005MetricR408, R409, R501, R1209, R1210, R1211, R1602, R1807, R1809, R1813, R1820, R2004, R2005, R2013, R2022, R2028 +10
121uFCapacitor_SMD:C_0402_1005MetricC603, C604, C701, C702, C801, C804, C806, C1001, C1002, C2017, C2019, C2021
1110nFCapacitor_SMD:C_0805_2012MetricC807, C809, C1801, C1808, C1812, C1815, C1820, C2002, C2004, C2006, C2008
103.2kResistor_SMD:R_0402_1005MetricR804, R807, R811, R1803, R1804, R1808, R1810, R1821, R2016, R2020
810uFCapacitor_SMD:C_0805_2012MetricC802, C1802, C1803, C1804, C2011, C2012, C2013, C2014
74.7kResistor_SMD:R_0402_1005MetricR402, R403, R406, R407, R1503, R1504, R1903
7600R@100MHzInductor_SMD:L_0603_1608MetricFB801, FB802, FB1801, FB1802, FB1803, FB2001, FB2002
7OPA197IDBVRorb_weaver_smd:SOT-23-5U802, U1802, U1804, U1806, U2003, U2005, U2006
61uFCapacitor_SMD:C_1206_3216MetricC1701, C1702, C1703, C1901, C1902, C1903
6249Resistor_SMD:R_0402_1005MetricR509, R809, R1819, R2001, R2021, R2023
6470pFCapacitor_SMD:C_0402_1005MetricC812, C1502, C1503, C2003, C2005, C2022
649.9kResistor_SMD:R_0402_1005MetricR1802, R1805, R1806, R1811, R1814, R1815
5100kResistor_SMD:R_0402_1005MetricR1501, R1502, R1505, R1506, R1601
4Mounting Hole 3.2mm M3MountingHole:MountingHole_3.2mm_M3H101, H102, H103, H104
4SN74CB3Q3245RGYRPackage_DFN_QFN:Texas_RGY_R-PVQFN-N20_EP2.05x3.05mmU603, U604, U605, U606
4SN74LV541ARKSRorb_weaver_smd:Texas_RKS0020A_VQFN-20-1EP_2.5x4.5mm_P0.5mm_EP1x3mmU1301, U1302, U1303, U1304
30.47uFCapacitor_SMD:C_0402_1005MetricC811, C1205, C1811
310Resistor_SMD:R_0402_1005MetricR1202, R2002, R2014
3100kResistor_SMD:R_0603_1608MetricR805, R2015, R2019
3100nFCapacitor_SMD:C_0603_1608MetricC1704, C1818, C1904
34.7uFCapacitor_SMD:C_0402_1005MetricC1208, C1301, C1501
3MBR120VLSFT1Gorb_weaver_smd:SOD-123FLD201, D301, D1801
3TPD1E05U06DPYRorb_weaver_smd:Texas_DPY0002A_0.6x1mm_P0.65mmD801, D1803, D2001
20.15Resistor_SMD:R_1206_3216MetricR1203, R1204
2100uForb_weaver_smd:CAP_EEEHAH101UAPC1213, C1214
210pFCapacitor_SMD:C_0402_1005MetricC810, C1819
210uFCapacitor_SMD:C_1206_3216MetricC1906, C1907
2110kResistor_SMD:R_0402_1005MetricR1818, R1904
213kResistor_SMD:R_0402_1005MetricR802, R2010
215pFCapacitor_SMD:C_0402_1005MetricC601, C602
21uFCapacitor_SMD:C_0805_2012MetricC1705, C1905
22.2uFCapacitor_SMD:C_0805_2012MetricC1211, C1212
222nFCapacitor_SMD:C_0603_1608MetricC503, C1202
222uFCapacitor_SMD:C_1206_3216MetricC1706, C1707
227Resistor_SMD:R_0402_1005MetricR601, R602
2436333045822orb_weaver_smd:SMT_1045822_WRESW601, SW602
25.1kResistor_SMD:R_0402_1005MetricR201, R202
27.87kResistor_SMD:R_0402_1005MetricR607, R1901
2Conn_Coaxial_HL-BNC-KHDAorb_weaver_connectors:CONN_BNC_HL-BNC-KHDAJ901, J1101
2DAC80501ZDGSRorb_weaver_smd:Texas_DGS0010A_VSSOP-10_3x3mm_P0.5mmU801, U1801
2SN74LVC2G17DRYRorb_weaver_smd:DRY6U1501, U1803
2TBH-1x02-3.5mmorb_weaver_tht:PhoenixContact_MCV_1,5_2-G-3.5_1x02_P3.50mm_VerticalJ1601, J1801
2TBH-1x05-3.5mmorb_weaver_tht:PhoenixContact_MCV_1,5_5-G-3.5_1x05_P3.50mm_VerticalJ1103, J2001
2TPS73733QDRBRQ1orb_weaver_smd:TPS737Q1U701, U1001
2USBLC6-2P6orb_weaver_smd:USBLC6-2P6_SOT-666U201, U301
10Resistor_SMD:R_0402_1005MetricR2009
10.36Resistor_SMD:R_1206_3216MetricR303
110Resistor_SMD:R_0603_1608MetricR1816
110nFCapacitor_SMD:C_0603_1608MetricC501
112MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY601
116MHzorb_weaver_smd:OSC_ECS-2520S33-160-FN-TRX1201
120kResistor_SMD:R_0402_1005MetricR801
1220nFCapacitor_SMD:C_0805_2012MetricC502
12SK1589-T1B-VBPackage_TO_SOT_SMD:SOT-23Q2001
140kResistor_SMD:R_0603_1608MetricR508
1470nFCapacitor_SMD:C_1206_3216MetricC1817
16.34kResistor_SMD:R_0402_1005MetricR1812
175kResistor_SMD:R_0402_1005MetricR2003
1ADS8689IPWRorb_weaver_smd:TSSOP-16_4.4x5mm_P0.65mmU2002
1BUK7D36-60EXorb_weaver_smd:BUK7D3660EX_NEXU1805
1FH12-50S-0.5SVA(54)orb_weaver_connectors:Hirose_FH12-50S-0.5SVA_1x50-4MP_P0.5mm_VerticalJ1301
1INA821IDRorb_weaver_smd:SOIC-8_3.9x4.9mm_P1.27mmU2001
1MAX6816EUS+Torb_weaver_smd:SOT192P237X122-4NU1601
1MMBT5550LT1GPackage_TO_SOT_SMD:SOT-23Q2002
1REF5010AIDRorb_weaver_smd:SOIC-8_3.9x4.9mm_P1.27mmU2004
1RJ45-8P8Corb_weaver_connectors:RJ45_Molex_855085001_Vertical_THTJ301
1RP2040Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mmU601
1S115Qorb_weaver_smd:SOD-123FLD1802
1SBRT15U50SP5-13orb_weaver_smd:POWERDI5_DIOD501
1TBH-1x02-5.08mmorb_weaver_tht:PhoenixContact_MSTBVA_2,5_2-G-5,08_1x02_P5.08mm_VerticalJ501
1TBH-1x04-3.5mmorb_weaver_tht:PhoenixContact_MCV_1,5_4-G-3.5_1x04_P3.50mm_VerticalJ1102
1TMC5130A-TA-Torb_weaver_smd:TQFP-48-1EP_7x7mm_P0.5mm_EP5x5mm_ThermalVias_JLCPCBU1201
1TPS1HTC100QPWPRQ1orb_weaver_smd:Texas_HTSSOP-14-1EP_4.4x5mm_P0.65mm_EP3.4x5mm_Mask3.155x3.255mm_ThermalVias_JLCPCBU501
1TPSM365R6FRDNRorb_weaver_smd:RDN0011A-MFGU1901
1TPSM365R6V5RDNRorb_weaver_smd:RDN0011A-MFGU1701
1USB-Corb_weaver_connectors:USB_C_Receptacle_GCT_USB4145-03-0070-C_16P_VerticalJ201
1W25Q128JVPIQPackage_SON:WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4.3mmU602

Similar boards

  • 4 layers100 × 60 mmCamera gpio interface pcb, the printed circuit board in 3D

    Camera gpio interface pcb

    peterpolidoro/camera-gpio-interface-pcb

    KiCad design and documentation for a passive interface board between three FLIR Blackfly S cameras, a pyControl breakout and a Neuropixels OneBox: screw-terminal camera connectors, BNC inputs and outputs, a 50-pin…

    158 parts
  • 4 layers40 × 40 mmTmc5160-usb, the printed circuit board in 3D

    Tmc5160-usb

    janelia-kicad/tmc5160-usb

    A stepper controller and driver board combining a TMC5160 and RP2040.

    103 parts
  • 4 layers60 × 160 mmCluster pcb, the printed circuit board in 3D

    Cluster pcb

    janelia-kicad/cluster-pcb

    PCB for each cluster of prisms in the Voigts Lab honeycomb maze.

    163 parts
  • 2 layers80 × 30 mmAc sensor, the printed circuit board in 3D

    Ac sensor

    sshoecraft/ac-sensor

    AC Sensor used in hydronic HVAC system

    24 parts
  • 4 layersControllerV2Kicad, the printed circuit board in 3D

    ControllerV2Kicad

    kscalelabs/motor-controller

    K-Scale Motor Controller

    150 parts5
  • 2 layers10.1 × 5 mmSmartBP SG, the printed circuit board in 3D

    SmartBP SG

    CanGulmez/PCB-Designs

    PCB board designs with KiCAD 8

    9 parts
  • 4 layers100 × 55 mmResonant converter, the printed circuit board in 3D

    Resonant converter

    Dominik-Workshop/resonant-converter

    Resonant converter PCB, 60V -> 12V 10A

    147 parts1MIT

Questions

How big is the Mouse joystick pcb PCB?

It measures 100 × 80 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Mouse joystick pcb use?

364 parts, built around the RP2040, SN74LV541ARKSR, SN74LVC2G17DRYR and INA821IDRGT. 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 Mouse joystick pcb KiCad files?

From the peterpolidoro/mouse-joystick-pcb repository on GitHub, at the commit this page was made from: the board is kicad/mouse-joystick-pcb.kicad_pcb and its schematic kicad/5v_to_3v3_tps73733_1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mouse joystick pcb design in my own project?

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