Skip to the content
2 layers300.5 × 95.6 mmMatrice, the printed circuit board in 3D

Lorsque la batterie est déchargée, le clavier sera branché à l'ordinateur via une prise USB. La prise de l'ordinateur va alimenter le clavier, et charger la batterie avec le courant restant.

Size
300.5 × 95.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
150
Nets
98
Pads
397
Tracks, vias
539, 22
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Jan 2026
Updated
19 Sep 2026

Overview

Matrice is an open-source printed circuit board by Bilaikra2014, from the Bilaikra2014/Keyboard repository on GitHub. It is a 2-layer board of 300.5 × 95.6 mm with 150 parts on 98 nets, routed with 539 tracks and 22 vias.

It is built around the 1N4148WT and COM-15141. Its parts include 71 switches, 70 diodes, 3 resistors and 1 connector.

Main components

2

README

Electronique/Clavier/µC_ESP32/README.md

Partie electronique - Microcontrôleur

Gestion d'alimentation et Chargeur Li-Po

Lorsque la batterie est déchargée, le clavier sera branché à l'ordinateur via une prise USB. La prise de l'ordinateur va alimenter le clavier, et charger la batterie avec le courant restant. Une prise USB A d'ordinateur peut fournir en général jusqu'à 500 mA.

Pour gérer l'alimentation et la charge, le composant utilisé sera le MCP73871 qui permet :

  • Gestion du Power Path : Alimente le système depuis l'USB tout en gérant la charge la batterie
  • Partage du courant : Donne la priorité à l'alimentation du système, le courant restant est alloué à la charge de la batterie
image

Alimentation et Puissance

  • In (18) : Alimentation du composant -> USB
  • Out (20) : Alimentation du système -> Régulateur LDO
  • Vbat (14) : Charge de la batterie -> Vbat
  • Vss (10) : Masse -> GND

Contrôle et Logique:

  • SEL (3) : Limite de courant à tirer sur l'USB -> LOW pour 500 mA (HIGH pour 1,8)
  • PROG2 (4) : Courant d'entré max à tirer -> HIGH pour 500 mA (HIGH pour 100mA)
  • CE (17) : Activation du système à l'état haut -> Vusb
  • TE (9) : Sécurité interne du temps de charge -> GND

Programmation et Sécurité:

  • PROG1 (13) : Courant de charge rapide -> R = 1000V/Ireg, on veut Ireg = 250mA donc R = 4k
  • PROG3 (12) : Seuil de fin de charge -> R = 40k
  • VPCC (2) :
  • VBAT_S (16): Sonde de tension -> Vbat
  • THERM (5) : Capteur de temperature ->

Indicateurs visuel: Ces broches tirent vers la masse, on y connecte des leds

  • PG (6) : Indication que l'USB est branché, à brancher à l'ESP32 pour qu'il detecte si on est sur batterie ou USB
  • STAT1 (8) : Indication de la phase de charge
  • STAT2 (7) : Indication de la fin de charge

Régulateur de tension

Le µC sera alimenté par du 5v ou bien du 3v7, or il n'accepte que du 3v3. Il faut donc utiliser un régulateur de tension. Le régulateur de tension utilisé est un BU33SD5WGTR.

image

Mesure de la batterie

La mesure de la batterie permet d'indiquer à l'utilisateur si le clavier à besoin d'être chargé ou pas. La tension étant supérieur aux 3v3 de l'esp32, il faut diviser cette tension pour qu'elle puisse être lue par l'esp32 à travers un pont diviseur de tension.

image

Pont Diviseur de tension:

Le pont diviseur de tension formé par R16 et R17 permet d'ajuster la tension mesurée par L'ESP32. La tension de la batterie varie entre 4v2 et 3v7, ce qui donnera pour l'ESP32 une tension mesurée entre 3v et 2,64v, ce qui est dans la plage de donnée mesurable.

Ajout des transistors Q3 et Q4:

Utiliser simplement un pont diviseur consommerait du courant en permanance, aussi minime soit-il. C'est pour cela que des transistors ont été ajouté. Le transistor Q2 est un mosfet canal P, qui lie la batterie au pont diviseur lorsqu'il est passant. Ce transistor est piloté par son complémentaire Q1, un canal N commandé par l'esp32. Ce transistor sera passant uniquement lors de la mesure déclenchée par l'ESP32. La résistance R15 sert de pull-up pour maintenir le transistor Q2 bloqué quand Q1 est bloqué. Ce montage permet de relier le pont diviseur à la batterie uniquement lors de la mesure, limitant ainsi la consommation du pont diviseur.

USB-C et protection ESD

Le port USB-C permet l'utilisation filaire du clavier, ainsi que la recharge de la batterie.

image

Les broches D+ et D- permettent la communication ESP32-Ordinateur. Les broches CC1 et CC2 doivent être liées à des résistances de 5k1 de pull-down pour que la source détecte la présence du clavier et délivre ainsi le 5v.

Parts

150
QtyValueFootprintReferences
701N4148WTDiode_SMD:D_SOD-523D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24 +54
5MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3, H4, H5
310kResistor_SMD:R_0805_2012MetricR3, R8, R10
1!MyFootprint:SW_Cherry_MX_Plate_1.00uSW54
1$MyFootprint:SW_Cherry_MX_Plate_1.00uSW57
1)MyFootprint:SW_Cherry_MX_Plate_1.00uSW51
1*MyFootprint:SW_Cherry_MX_Plate_1.00uSW58
1,MyFootprint:SW_Cherry_MX_Plate_1.00uSW41
10MyFootprint:SW_Cherry_MX_Plate_1.00uSW46
11MyFootprint:SW_Cherry_MX_Plate_1.00uSW6
12MyFootprint:SW_Cherry_MX_Plate_1.00uSW11
13MyFootprint:SW_Cherry_MX_Plate_1.00uSW16
14MyFootprint:SW_Cherry_MX_Plate_1.00uSW20
15MyFootprint:SW_Cherry_MX_Plate_1.00uSW24
16MyFootprint:SW_Cherry_MX_Plate_1.00uSW29
17MyFootprint:SW_Cherry_MX_Plate_1.00uSW33
18MyFootprint:SW_Cherry_MX_Plate_1.00uSW38
19MyFootprint:SW_Cherry_MX_Plate_1.00uSW42
1:MyFootprint:SW_Cherry_MX_Plate_1.00uSW49
1;MyFootprint:SW_Cherry_MX_Plate_1.00uSW45
1<MyFootprint:SW_Cherry_MX_Plate_1.00uSW9
1=MyFootprint:SW_Cherry_MX_Plate_1.00uSW56
1AMyFootprint:SW_Cherry_MX_Plate_1.00uSW7
1AltMyFootprint:SW_Cherry_MX_Plate_1.25uSW15
1BMyFootprint:SW_Cherry_MX_Plate_1.00uSW32
1CMyFootprint:SW_Cherry_MX_Plate_1.00uSW23
1COM-15141Rotary_Encoder:COM-15141_SPKSW37
1CTRLMyFootprint:SW_Cherry_MX_Plate_1.25uSW5
1Conn_02x13_Odd_EvenConnector_IDC:IDC-Header_2x13_P2.54mm_HorizontalJ1
1DMyFootprint:SW_Cherry_MX_Plate_1.00uSW18
1DefinirMyFootprint:SW_Cherry_MX_Plate_1.50uSW65
1DeleteMyFootprint:SW_Cherry_MX_Plate_1.00uSW61
1DownMyFootprint:SW_Cherry_MX_Plate_1.00uSW63
1EMyFootprint:SW_Cherry_MX_Plate_1.00uSW17
1EntrerMyFootprint:SW_Cherry_MX_Plate_1.75uSW64
1FMyFootprint:SW_Cherry_MX_Plate_1.00uSW22
1FnMyFootprint:SW_Cherry_MX_Plate_1.25uSW70
1GMyFootprint:SW_Cherry_MX_Plate_1.00uSW26
1HMyFootprint:SW_Cherry_MX_Plate_1.00uSW31
1IMyFootprint:SW_Cherry_MX_Plate_1.00uSW39
1JMyFootprint:SW_Cherry_MX_Plate_1.00uSW35
1KMyFootprint:SW_Cherry_MX_Plate_1.00uSW40
1LMyFootprint:SW_Cherry_MX_Plate_1.00uSW44
1LeftMyFootprint:SW_Cherry_MX_Plate_1.00uSW60
1MMyFootprint:SW_Cherry_MX_Plate_1.00uSW48
1NMyFootprint:SW_Cherry_MX_Plate_1.00uSW36
1OMyFootprint:SW_Cherry_MX_Plate_1.00uSW43
1PMyFootprint:SW_Cherry_MX_Plate_1.00uSW47
1PageDownMyFootprint:SW_Cherry_MX_Plate_1.00uSW67
1PageUpMyFootprint:SW_Cherry_MX_Plate_1.00uSW59
1QMyFootprint:SW_Cherry_MX_Plate_1.00uSW8
1RMyFootprint:SW_Cherry_MX_Plate_1.00uSW21
1R4MyFootprint:SW_Cherry_MX_Plate_1.00uSW73
1R5MyFootprint:SW_Cherry_MX_Plate_1.00uSW50
1R6MyFootprint:SW_Cherry_MX_Plate_1.00uSW55
1RightMyFootprint:SW_Cherry_MX_Plate_1.00uSW68
1SMyFootprint:SW_Cherry_MX_Plate_1.00uSW13
1S1MyFootprint:SW_Cherry_MX_Plate_1.25uSW71
1S2MyFootprint:SW_Cherry_MX_Plate_1.25uSW72
1ShiftMyFootprint:SW_Cherry_MX_Plate_1.25uSW4
1SpaceMyFootprint:SW_Cherry_MX_Plate_1.75uSW28
1SuppMyFootprint:SW_Cherry_MX_Plate_1.25uSW66
1TMyFootprint:SW_Cherry_MX_Plate_1.00uSW25
1TabMyFootprint:SW_Cherry_MX_Plate_1.50uSW2
1UMyFootprint:SW_Cherry_MX_Plate_1.00uSW34
1UpMyFootprint:SW_Cherry_MX_Plate_1.00uSW62
1VMyFootprint:SW_Cherry_MX_Plate_1.00uSW27
1VMajMyFootprint:SW_Cherry_MX_Plate_1.75uSW3
1WMyFootprint:SW_Cherry_MX_Plate_1.00uSW14
1WinMyFootprint:SW_Cherry_MX_Plate_1.25uSW10
1XMyFootprint:SW_Cherry_MX_Plate_1.00uSW19
1YMyFootprint:SW_Cherry_MX_Plate_1.00uSW30
1ZMyFootprint:SW_Cherry_MX_Plate_1.00uSW12
1^MyFootprint:SW_Cherry_MX_Plate_1.00uSW52
1ùMyFootprint:SW_Cherry_MX_Plate_1.00uSW53

More from Bilaikra2014/Keyboard

2
  • 2 layers39.6 × 51.8 mmClavier, the printed circuit board in 3D

    Clavier

    Bilaikra2014/Keyboard

    Lorsque la batterie est déchargée, le clavier sera branché à l'ordinateur via une prise USB. La prise de l'ordinateur va alimenter le clavier, et charger la batterie avec le courant restant.

    41 parts
  • 2 layers34.9 × 18.3 mmDongle, the printed circuit board in 3D

    Dongle

    Bilaikra2014/Keyboard

    Lorsque la batterie est déchargée, le clavier sera branché à l'ordinateur via une prise USB. La prise de l'ordinateur va alimenter le clavier, et charger la batterie avec le courant restant.

    15 parts

Similar boards

  • 2 layers181 × 97 mmOpenDeck r3.1.2, the printed circuit board in 3D

    OpenDeck r3.1.2

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    262 parts960Apache-2.0
  • 2 layers255.9 × 99.3 mmZerosprey42, the printed circuit board in 3D

    Zerosprey42

    beekeeb/zerosprey42

    Zerosprey42 Keyboard is a wired, beginner friendly, choc hotswap, MonoBlockSplit (Unibody), column-staggered, DIY mechanical keyboard.

    96 parts140
  • 4 layers65 × 56.5 mmSH RPi, the printed circuit board in 3D

    SH RPi

    hatlabs/SH-RPi-hardware

    Sailor Hat for Raspberry Pi hardware design files

    168 parts56
  • 2 layers59.6 × 42 mmMacropad synthplug mk2, the printed circuit board in 3D

    Macropad synthplug mk2

    todbot/macropadsynthplug

    Turn StemmaQT port by into Audio Out + MIDI In

    43 parts53CC0-1.0
  • 4 layers47 × 39.5 mmStealthburner Toolhead PCB, the printed circuit board in 3D

    Stealthburner Toolhead PCB

    acha666/RP2040_ToolheadPCB_SB

    A Toolhead PCB for VORON StealthBurner based on RP2040

    145 parts43GPL-3.0
  • 2 layers271.8 × 103.9 mmHotswap ble, the printed circuit board in 3D

    Hotswap ble

    ebastler/cornholius

    ZMK-based replacement PCB for Cornelius keyboard

    146 parts37
  • 2 layers275.5 × 92 mmOlice, the printed circuit board in 3D

    Olice

    floookay/olice

    The olice is 40% alice-like ortho keyboard. It features two board extension modules that can be magnetically attached on the sides.

    115 parts33
  • 4 layers35.5 × 14.5 mmComplete v1.0, the printed circuit board in 3D

    Complete v1.0

    drpykachu/Sonar-Watch

    A self-designed, home-made watch intended to tell time in a funky and unique way!

    225 parts23

Questions

How big is the Matrice PCB?

It measures 300.5 × 95.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Matrice use?

150 parts, built around the 1N4148WT and COM-15141. 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 Matrice KiCad files?

From the Bilaikra2014/Keyboard repository on GitHub, at the commit this page was made from: the board is Electronique/Clavier/Matrice/matrice.kicad_pcb and its schematic Electronique/Clavier/Matrice/batterie.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Matrice design in my own project?

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