Main
sbarisic·MagMouse·hardware/modular/main/Main.kicad_pcb
About the Main PCB
Main is an open source ESP32 PCB design by sbarisic, published on GitHub under the Custom license license. It is a 4-layer board measuring 80 × 125 mm, with 207 components from 55 distinct parts.
Its main chip is the ESP32-S3-MINI-1-N8, from the ESP32 family. Other key parts include the TPD2EUSB30DRTR, TPS62162DSGR, DRV8231ADSGR, TMAG5253BA2IQDMRR and ADS7038IRTER. By type, the board carries 94 resistors, 64 capacitors, 31 ICs, 7 connectors, 5 diodes and 3 transistors.
From the project
Open source hall-effect based mouse - no mechanical contacts - no failure points
2026-09-11. Main and wheel routed with zero unrouted connections. Mechanics remain provisional.
Independent main and wheel schematics now exist. They include J8/J9 signal headers, J10/J11 power headers and local disconnect bias. The wheel also has local bulk storage, TVS and a discharge resistor. Both pass ERC. See the interface review for the implemented changes, verification commands and remaining power-return, wheel-storage and SPI3 timing findings. The wheel PCB has all 87 footprints on its 55 x 60 mm outline. All connections are routed, with zero native unrouted items and zero physical…
Main components on the Main
Main bill of materials (BOM)
207 components, 55 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | TPD2EUSB30DRTR Texas Instruments | Texas_DRT-3 | U1 |
| 1 | TPS62162DSGR Texas Instruments | Texas_DSG0008A_WSON-8-1EP_2x2mm_P0.5mm_EP0.9x1.6mm | U2 |
| 1 | ESP32-S3-MINI-1-N8 Espressif Systems | ESP32-S2-MINI-1 | U3 |
| 3 | DRV8231ADSGR Texas Instruments | Texas_DSG0008A_WSON-8-1EP_2x2mm_P0.5mm_EP0.9x1.6mm | U4, U5, U6 |
| 3 | TMAG5253BA2IQDMRR Texas Instruments | Texas_X2SON-4-1EP_1.1x1.4mm_P0.5mm_EP0.8x0.6mm | U7, U8, U9 |
| 1 | ADS7038IRTER Texas Instruments | WQFN-16-1EP_3x3mm_P0.5mm_EP1.68x1.68mm | U10 |
| 1 | TUSB320LAIRWBR Texas Instruments | Texas_X2QFN-12_1.6x1.6mm_P0.4mm | U11 |
| 2 | TPS259470LRPWR Texas Instruments | Texas_RPW0010A | U12, U13 |
| 1 | SN74LVC2G04DCKR Texas Instruments | SOT-363_SC-70-6 | U14 |
| 1 | SN74LVC1G123DCUR Texas Instruments | VSSOP-8_2.3x2mm_P0.5mm | U15 |
| 3 | SN74LVC08APWR Texas Instruments | TSSOP-14_4.4x5mm_P0.65mm | U16, U17, U18 |
| 1 | TLV9001IDBVR Texas Instruments | SOT-23-5 | U19 |
| 1 | TPD2E2U06DCKR Texas Instruments | SOT-323_SC-70 | U20 |
| 3 | SN74LVC125APWR Texas Instruments | TSSOP-14_4.4x5mm_P0.65mm | U25, U29, U37 |
| 1 | TPS22919DCKR Texas Instruments | SOT-363_SC-70-6 | U28 |
| 1 | ICM-42688-P TDK InvenSense | LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U32 |
| 1 | TPS7A2450DBVR Texas Instruments | SOT-23-5 | U33 |
| 1 | SN74LV1T34DBVR Texas Instruments | SOT-23-5 | U34 |
| 1 | PMW3360DM-T2QU PixArt | PixArt_PMW3360DM_T2QU | U35 |
| 1 | TLV75519PDBVR Texas Instruments | SOT-23-5 | U36 |
Show 35 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | TPS22918DBVR Texas Instruments | SOT-23-6 | U38 |
| 1 | SN74LVC1G125DBVR Texas Instruments | SOT-23-5 | U39 |
| 3 | 2N7002 Jiangsu Changjing Electronics Technology | SOT-23 | Q1, Q2, Q3 |
| 1 | TYPE-C-31-M-12 Korean Hroparts Elec | USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |
| 3 | C265003 Soldered wires Power_1x02 | Wire_Power_1x02_P2.54mm | J2, J3, J4 |
| 1 | ENCODER_8P Soldered wires Signal_2x04 | Wire_Signal_2x04_P2.54mm | J6 |
| 1 | WHEEL_SIGNAL_30P Soldered wires Signal_2x15 | Wire_Signal_2x15_P2.54mm | J8 |
| 1 | WHEEL_POWER_2P Soldered wires Power_1x02 | Wire_Power_1x02_P2.54mm | J10 |
| 1 | TS-1088-AR02016 RESET XUNPU | SW_SPST_TS-1088-xR020 | SW1 |
| 1 | TS-1088-AR02016 BOOT XUNPU | SW_SPST_TS-1088-xR020 | SW2 |
| 1 | SMBJ12A Littelfuse | D_SMB | D1 |
| 1 | SMBJ6.0A Littelfuse | D_SMB | D2 |
| 2 | BAT54-7-F Diodes Incorporated | SOT-23 | D3, D4 |
| 1 | SK6805-EC15 OPSCO Optoelectronics | OPSCO_SK6805_EC15 | D5 |
| 1 | SRP4020CC-3R3M Bourns | L_Bourns_SRP4020CC | L1 |
| 17 | CL21A106KAYNNNE 10uF/25V Samsung Electro-Mechanics | C_0805_2012Metric | C1, C2, C3, C5, C8, C11, C14, C23 +9 |
| 8 | CL10A105KB8NNNC 1uF/50V Samsung Electro-Mechanics | C_0603_1608Metric | C4, C19, C20, C21, C24, C27, C63, C89 |
| 31 | CC0603KRX7R9BB104 100nF YAGEO | C_0603_1608Metric | C6, C7, C9, C10, C12, C13, C15, C16 +23 |
| 2 | 0603B103K500NT 10nF Guangdong Fenghua Advanced Tech | C_0603_1608Metric | C25, C26 |
| 3 | CL10B225KP8NNNC 2.2uF/10V Samsung Electro-Mechanics | C_0603_1608Metric | C71, C81, C82 |
| 1 | CL10B103KB8NNNC 10nF Samsung Electro-Mechanics | C_0603_1608Metric | C72 |
| 1 | CL10B102KB8NNNC 1nF/50V Samsung Electro-Mechanics | C_0603_1608Metric | C79 |
| 1 | CL10A475KP8NNNC 4.7uF/10V Samsung Electro-Mechanics | C_0603_1608Metric | C84 |
| 43 | 0603WAF1002T5E 10k UNI-ROYAL | R_0603_1608Metric | R3, R4, R7, R8, R9, R10, R11, R14 +35 |
| 3 | 0603WAF330JT5E 33R UNI-ROYAL | R_0603_1608Metric | R5, R6, R58 |
| 8 | 0603WAF3301T5E 3.3k UNI-ROYAL | R_0603_1608Metric | R12, R18, R24, R42, R43, R56, R57, R60 |
| 1 | 0603WAF8873T5E 887k UNI-ROYAL | R_0603_1608Metric | R25 |
| 23 | 0603WAF1003T5E 100k UNI-ROYAL | R_0603_1608Metric | R26, R27, R31, R32, R33, R34, R35, R36 +15 |
| 5 | 0603WAF1001T5E 1k UNI-ROYAL | R_0603_1608Metric | R28, R44, R45, R64, R69 |
| 4 | 0603WAF2212T5E 22.1k UNI-ROYAL | R_0603_1608Metric | R29, R41, R65, R68 |
| 1 | 0603WAF4701T5E 4.7k UNI-ROYAL | R_0603_1608Metric | R59 |
| 1 | 0603WAF0000T5E 0R UNI-ROYAL | R_0603_1608Metric | R125 |
| 1 | 0603WAF3300T5E 330R UNI-ROYAL | R_0603_1608Metric | R128 |
| 1 | 0603WAF390JT5E 39R UNI-ROYAL | R_0603_1608Metric | R132 |
| 3 | 0603WAF3302T5E 33k UNI-ROYAL | R_0603_1608Metric | R141, R142, R143 |
Main design files
The KiCad project lives in the sbarisic/MagMouse repository on GitHub; these links point at the commit this page was built from.
Main: common questions
What microcontroller does the Main use?
The Main is built around the ESP32-S3-MINI-1-N8, from the ESP32 family.
How big is the Main PCB?
The Main measures 80 × 125 mm, has 4 copper layers and is 1.578 mm thick.
How many components are on the Main?
207 components, from 55 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Main design files?
From the sbarisic/MagMouse repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Main design in my own project?
It is published under Custom license, which limits how it may be reused; read the license before building on it.
Can I test firmware for the Main without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug ESP32 firmware against it before you order a PCB.
More boards in MagMouse
ESP32
Panel
sbarisic
151 × 139 mm292 parts4LCustom license2ESP32
MagMouse
sbarisic
60 × 95 mm273 parts4LCustom license2ESP32
Lower
sbarisic
70 × 100 mm92 parts2LCustom license2Wheel
sbarisic
55 × 60 mm82 parts4LCustom license2Upper
sbarisic
70 × 100 mm81 parts2LCustom license2Encoder
sbarisic
14 × 18 mm3 parts4LCustom license2
Similar boards
ESP32
OSO-BOOK-B1
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Powertrain
byrantech
64 × 45.4 mm171 parts4LMIT4.3kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8k