Main

sbarisic·MagMouse·hardware/modular/main/Main.kicad_pcb

Main PCB layout, top view — open source ESP32 board by sbarisic

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.

QtyPartRefs
1
TPD2EUSB30DRTR
Texas Instruments
U1
1
TPS62162DSGR
Texas Instruments
U2
1
ESP32-S3-MINI-1-N8
Espressif Systems
U3
3
DRV8231ADSGR
Texas Instruments
U4, U5, U6
3
TMAG5253BA2IQDMRR
Texas Instruments
U7, U8, U9
1
ADS7038IRTER
Texas Instruments
U10
1
TUSB320LAIRWBR
Texas Instruments
U11
2
TPS259470LRPWR
Texas Instruments
U12, U13
1
SN74LVC2G04DCKR
Texas Instruments
U14
1
SN74LVC1G123DCUR
Texas Instruments
U15
3
SN74LVC08APWR
Texas Instruments
U16, U17, U18
1
TLV9001IDBVR
Texas Instruments
U19
1
TPD2E2U06DCKR
Texas Instruments
U20
3
SN74LVC125APWR
Texas Instruments
U25, U29, U37
1
TPS22919DCKR
Texas Instruments
U28
1
ICM-42688-P
TDK InvenSense
U32
1
TPS7A2450DBVR
Texas Instruments
U33
1
SN74LV1T34DBVR
Texas Instruments
U34
1
PMW3360DM-T2QU
PixArt
U35
1
TLV75519PDBVR
Texas Instruments
U36
Show 35 more
QtyPartRefs
1
TPS22918DBVR
Texas Instruments
U38
1
SN74LVC1G125DBVR
Texas Instruments
U39
3
2N7002
Jiangsu Changjing Electronics Technology
Q1, Q2, Q3
1
TYPE-C-31-M-12
Korean Hroparts Elec
J1
3
C265003
Soldered wires Power_1x02
J2, J3, J4
1
ENCODER_8P
Soldered wires Signal_2x04
J6
1
WHEEL_SIGNAL_30P
Soldered wires Signal_2x15
J8
1
WHEEL_POWER_2P
Soldered wires Power_1x02
J10
1
TS-1088-AR02016
RESET
XUNPU
SW1
1
TS-1088-AR02016
BOOT
XUNPU
SW2
1
SMBJ12A
Littelfuse
D1
1
SMBJ6.0A
Littelfuse
D2
2
BAT54-7-F
Diodes Incorporated
D3, D4
1
SK6805-EC15
OPSCO Optoelectronics
D5
1
SRP4020CC-3R3M
Bourns
L1
17
CL21A106KAYNNNE
10uF/25V
Samsung Electro-Mechanics
C1, C2, C3, C5, C8, C11, C14, C23 +9
8
CL10A105KB8NNNC
1uF/50V
Samsung Electro-Mechanics
C4, C19, C20, C21, C24, C27, C63, C89
31
CC0603KRX7R9BB104
100nF
YAGEO
C6, C7, C9, C10, C12, C13, C15, C16 +23
2
0603B103K500NT
10nF
Guangdong Fenghua Advanced Tech
C25, C26
3
CL10B225KP8NNNC
2.2uF/10V
Samsung Electro-Mechanics
C71, C81, C82
1
CL10B103KB8NNNC
10nF
Samsung Electro-Mechanics
C72
1
CL10B102KB8NNNC
1nF/50V
Samsung Electro-Mechanics
C79
1
CL10A475KP8NNNC
4.7uF/10V
Samsung Electro-Mechanics
C84
43
0603WAF1002T5E
10k
UNI-ROYAL
R3, R4, R7, R8, R9, R10, R11, R14 +35
3
0603WAF330JT5E
33R
UNI-ROYAL
R5, R6, R58
8
0603WAF3301T5E
3.3k
UNI-ROYAL
R12, R18, R24, R42, R43, R56, R57, R60
1
0603WAF8873T5E
887k
UNI-ROYAL
R25
23
0603WAF1003T5E
100k
UNI-ROYAL
R26, R27, R31, R32, R33, R34, R35, R36 +15
5
0603WAF1001T5E
1k
UNI-ROYAL
R28, R44, R45, R64, R69
4
0603WAF2212T5E
22.1k
UNI-ROYAL
R29, R41, R65, R68
1
0603WAF4701T5E
4.7k
UNI-ROYAL
R59
1
0603WAF0000T5E
0R
UNI-ROYAL
R125
1
0603WAF3300T5E
330R
UNI-ROYAL
R128
1
0603WAF390JT5E
39R
UNI-ROYAL
R132
3
0603WAF3302T5E
33k
UNI-ROYAL
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

Similar boards