Skip to the content
2 layers120 × 110 mmLearsim pcbs, the printed circuit board in 3D

Learsim pcbs

axdra/Learsim

collected files for learsim

Size
120 × 110 mm
Copper layers
2
Thickness
1.6 mm
Parts
64
Nets
82
Pads
272
Tracks, vias
754, 76
Pours
6
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Oct 2020
Updated
13 Aug 2026

Overview

Learsim pcbs is an open-source printed circuit board by axdra, from the axdra/Learsim repository on GitHub. It is a 2-layer board of 120 × 110 mm with 64 parts on 82 nets, routed with 754 tracks and 76 vias.

It is built around the MAX7219M, 2MD1T1B1M2QES-5 and EC12E2430803. Its parts include 20 capacitors, 20 resistors, 9 diodes, 4 ICs and 3 switches. It belongs with the ESP32 and RISC-V boards of this library.

Main components

3

README

PCBs/Radio Panel/README.md

Learsim Radio Panel — PCB

KiCad project (learsim pcbs.kicad_*) for the Learsim flight-sim COM/NAV radio panel: an ESP32-C6 drives two MAX7219 LED drivers that multiplex two 6-digit 7-segment displays, plus two rotary encoders, six mode buttons with per-button SK6812 RGB backlights, two indicator LEDs and an SPDT toggle.

Block diagram

text
         USB-C 5V ── Vbus ─┬─ ESP32-C6 (Vsys)
                           ├─ MAX7219 U2/U3  V+
                           └─ SK6812 D1..D6  VDD
 ESP32-C6 (U1)
   GPIO6  ── SPI DIN ─▶ U2.DIN ─▶ U2.DOUT ─▶ U3.DIN     (daisy-chain)
   GPIO7  ── SPI CLK ─▶ U2.CLK, U3.CLK
   GPIO4  ── SPI LOAD▶ U2.LOAD, U3.LOAD
   GPIO21 ── LED DATA▶ D5 ▶ D1 ▶ D2 ▶ D3 ▶ D4 ▶ D6      (WS2812-style chain)
   GPIO15/16/5  ── Encoder SW1 (MHz)  A / B / push
   GPIO18/19/20 ── Encoder SW2 (KHz)  A / B / push
   GPIO2/0/1/14 ── COM1 COM2 NAV1 Switch1 buttons
   EXIO2 / EXIO3 (TCA9554) ── NAV2 / ADF1 buttons
   GPIO3 / GPIO17 ── COM1 / COM2 indicator LEDs (D7 / D8)
   EXIO6 / EXIO7 (TCA9554) ── SW3 toggle throws A / B

   U2 ─▶ DS2 (6-digit display)      U3 ─▶ DS1 (6-digit display)

ESP32-C6 GPIO map

FunctionESP32-C6 pinNet
MAX7219 SPI DINGPIO6SPI_DIN
MAX7219 SPI CLKGPIO7SPI_CLK
MAX7219 SPI LOAD/CSGPIO4SPI_LOAD
SK6812 data outGPIO21LED_DIN
Encoder MHz A / BGPIO15 / GPIO16 (TX)ENC1_A/B
Encoder MHz pushGPIO5ENC1_SW
Encoder KHz A / BGPIO18 / GPIO19ENC2_A/B
Encoder KHz pushGPIO20ENC2_SW
COM1 buttonGPIO2BTN_COM1
COM2 buttonGPIO0BTN_COM2
NAV1 buttonGPIO1BTN_NAV1
NAV2 buttonEXIO2 (TCA9554)BTN_NAV2
ADF1 buttonEXIO3 (TCA9554)BTN_ADF1
Switch1 buttonGPIO14BTN_Switch1
COM1 indicator LEDGPIO3COM1_LED
COM2 indicator LEDGPIO17 (RX)COM2_LED
SW3 toggle throw 1EXIO6 (TCA9554)SW3_A
SW3 toggle throw 2EXIO7 (TCA9554)SW3_B
Power inUSB-C (Vbus)+5V
Logic rail3V3+3V3

Spare pins for expansion: GPIO8, GPIO9, EXIO1, EXIO4, EXIO5. Note GPIO8/GPIO9 are ESP32-C6 strapping/boot pins (GPIO9 low at reset selects download mode) — only attach loads there that are guaranteed high-or-floating at reset (GPIO8 also drives the module's onboard RGB LED). GPIO22/GPIO23 are NOT spare: they are the I2C bus (SDA/SCL) to the module's onboard TCA9554 expander that reads the NAV2/ADF1 buttons and SW3 — leave them unconnected; only I2C slaves may ever attach there.

Encoder MHz B is on the TX pin (GPIO16) and the COM2 LED on RX (GPIO17), so the UART0 serial console is not available; use the ESP32-C6's native USB for flashing/logs. The ROM bootloader drives TX briefly at reset — harmless for the encoder, but expect a short glitch on ENC1_B during boot.

SW3 (SPDT toggle, 2MD1T1B1M2QES-5). Common pole (pin 2) → GND; each throw read with a 10 kΩ pull-up to +3V3 (pin 1 → EXIO6 via R15, pin 3 → EXIO7 via R16). A throw reads LOW when selected and HIGH otherwise, so firmware can distinguish both positions (and a centre-OFF state if the part has one). SW3 sits on the TCA9554 expander (EXIO6/EXIO7) specifically to keep it off the GPIO8/GPIO9 strapping pins — an ON-ON toggle always grounds one throw, and GPIO9 held low at reset would put the chip in download mode and stop the board booting. (ENC1_A remains on GPIO15, also a strapping pin, but an idling encoder there is low-risk. The second pole of SW3, pins 4–6, is unused.)

SK6812 backlight chain

The RGB LEDs are reverse-mount SK6812MINI-E on the back of the board, shining through cutouts under each Cherry-MX button. The data chain order follows board position, not reference-designator order:

text
GPIO21 ▶ D5 (Switch1) ▶ D1 (COM1) ▶ D2 (COM2) ▶ D3 (NAV1) ▶ D4 (NAV2) ▶ D6 (ADF1)

Firmware must use this index order (0 = Switch1, 1 = COM1, … 5 = ADF1).

MAX7219 ↔ display wiring (common-cathode)

Each MAX7219 drives one display. U2 → DS2, U3 → DS1. Segment lines are the display anodes, digit lines are the cathodes.

MAX7219Display pinMAX7219Display pin
SEG_A (14)A (11)DIG0 (2)DIG1 (14)
SEG_B (16)B (7)DIG1 (11)DIG2 (13)
SEG_C (20)C (4)DIG2 (6)DIG3 (12)
SEG_D (23)D (1)DIG3 (7)DIG4 (9)
SEG_E (21)E (3)DIG4 (3)DIG5 (8)
SEG_F (15)F (10)DIG5 (10)DIG6 (5)
SEG_G (17)G (6)DIG6, DIG7no-connect (only 6 digits)
SEG_DP (22)DP (2)

This matches the 6-digit display datasheet pinout (segments A=11, B=7, C=4, D=1, E=3, F=10, G=6, DP=2; digits DIG1..6 = 14,13,12,9,8,5). Set the MAX7219 scan limit to 6 digits in firmware.

Supporting components

RefValuePurpose
R1, R233 kΩMAX7219 ISET → V+ segment-current set (required)
R3–R810 kΩpull-ups for the six buttons (GPIO2/0/1/23/22/14)
R9–R1410 kΩpull-ups on encoder A / B / push lines
R15, R1610 kΩpull-ups on SW3 throws (EXIO6/EXIO7)
R17150 ΩCOM1 indicator LED (D7) series resistor
R18470 ΩCOM2 indicator LED (D8) series resistor — different value because D7/D8 are different LED colours
D7, D83 mm THT LEDCOM1 / COM2 indicator LEDs
C1, C310 µFMAX7219 V+ bulk decoupling
C2, C4100 nFMAX7219 V+ HF decoupling
C5100 nFESP32 3V3 decoupling
C6220 µF+5V rail bulk reservoir
C7–C12100 nFone per SK6812 (VDD–VSS)
C13–C18100 nFRC debounce cap on each encoder A / B / push line

Encoder debounce: each encoder A, B and push line has a 10 kΩ pull-up to +3V3 (R9–R14) and a 100 nF cap to GND (C13–C18), forming a ~1 ms RC low-pass that cleans contact bounce in hardware. Buttons are debounced in firmware.

Through-hole footprints (this iteration). All added passives use THT footprints for easy hand-assembly:

PartFootprint
R1–R18Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal (1/4 W axial)
100 nF (C2, C4, C5, C7–C18)Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm (ceramic disc)
10 µF (C1, C3)Capacitor_THT:CP_Radial_D5.0mm_P2.50mm (electrolytic)
220 µF (C6)Capacitor_THT:CP_Radial_D6.3mm_P2.50mm (electrolytic)
D7, D8LED_THT:LED_D3.0mm

The 10 µF / 220 µF caps (C1, C3, C6) are electrolytic and polarized — the terminal on the +5V net is the + side. The SK6812 RGB LEDs remain SMD (no THT part exists).

Design notes / to verify before fab

  • PCB reroute pending for SW3. The schematic moves SW3_A/SW3_B from GPIO8/GPIO9 (U1 pads 11/12) to EXIO6/EXIO7 (U1 pads 19/20). Run Update PCB from Schematic and reroute those two tracks, then re-run DRC.
  • 3.3 V logic vs 5 V rails. MAX7219 V+ and SK6812 VDD are at 5 V while the ESP32 drives 3.3 V logic. This usually works but is marginally out of MAX7219 VIH spec (3.5 V min); for robustness either run the MAX7219s / first SK6812 (D5) at ~4.3 V via a diode drop, or add a level shifter on DIN/CLK/LOAD and LED data.
  • +5 V trace width. The +5 V distribution is currently routed at 0.2 mm while the board can draw several hundred mA (6× SK6812 up to ~60 mA each plus two MAX7219-driven displays). Widen the 5 V trunk to ≥1 mm or pour it, and consider a B.Cu GND pour (this also clears the DRC starved-thermal warnings on U3/SW1).
  • Powered from USB-C. The board runs entirely off the ESP32-C6 module's USB-C; make sure the host/cable can supply the load, and consider capping SK6812 brightness in firmware if the USB source is current-limited.
  • Encoder pinout. EC12E2430803 is wired A/B = quadrature, C = common (GND), D/E = push switch. Confirm A/C pin identity against the specific part's datasheet.

Verification status

Checked with KiCad 10 kicad-cli (ERC, DRC, netlist export):

  • Schematic↔PCB parity clean before the SW3 pin move; SW3 reroute on the PCB is the one outstanding layout task (see above).
  • ERC: remaining errors are the intentionally-spare pins (GPIO8/GPIO9, EXIO1–5, 3V3_EN, RUN, MAX7219 DIG6/DIG7, U3 DOUT) plus missing-PWR_FLAG warnings on the +5V/+3V3 rails — all benign.
  • DRC: 3 starved-thermal errors on the F.Cu GND pour (U3 GND pads, SW1 common); connectivity is intact via tracks, and a B.Cu GND pour would clear them.

Parts

64
QtyValueFootprintReferences
15100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2, C4, C5, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18
1410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16
6SW_PushPCM_Switch_Keyboard_Kailh:SW_Kailh_Choc_V2ADF1, COM1, COM2, NAV1, NAV2, Switch1
210uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1, C3
233kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2
25.1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR19, R20
2LED-6DIGIT-0.36in-CC7-Segment Display:LED-6DIGIT-0.36in-CC_14PDS1, DS2
2MAX7219Package_DIP:DIP-24_W7.62mmU2, U3
10.1µFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC20
110µFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC19
1150Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR17
11N5819Diode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD9
1220uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC6
12MD1T1B1M2QES-5Rotary:SW-TH_2MD1T1B1M2QES-5SW3
1470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR18
1ADF1LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD6
1COM1LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD1
1COM1 LEDLED_THT:LED_D3.0mmD7
1COM2LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD2
1COM2 LEDLED_THT:LED_D3.0mmD8
1ESP32-C6-DEV-KIT-N8ESP32-Pico:ESP32-C6-PicoU1
1KHzRotary:SW-TH_EC12EXXXXSW2
1MHzRotary:SW-TH_EC12EXXXXSW1
1NAV1LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD3
1NAV2LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD4
1Switch1LED_SMD:LED_SK6812MINI-E_3.2x2.8mm_P1.5mm_ReverseMountD5
1TYPE-C 6PLCH10.0 073Rotary:USB-C-TH_TYPE-C-6PLCH10.0-073U4

More from axdra/Learsim

1
  • 2 layers122.8 × 48.8 mmRadio Ident, the printed circuit board in 3D

    Radio Ident

    axdra/Learsim

    collected files for learsim

    31 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 layers482.6 × 35.6 mmPrecision clock, the printed circuit board in 3D

    Precision clock

    mitxela/PrecisionClock-Hardware

    PCB design for the Precision Clock Mk III

    49 parts41
  • 2 layers85.6 × 41 mmHl alyx glove, the printed circuit board in 3D

    Hl alyx glove

    StarGate01/hl-alyx-glove

    Firmware and Hardware for a Half-Life: Alyx Gravity Glove Replica

    38 parts21MIT
  • 2 layers542.3 × 27.3 mmGlowboardng, the printed circuit board in 3D

    Glowboardng

    Eigenbaukombinat/glowboard

    The Glowboard Plotter plots images using 64 UV LEDs attached in a line moved over a 120cmx60cm glow-in-the-dark sheet by a stepper.

    69 parts6
  • 2 layers70 × 50.1 mmDoom clock, the printed circuit board in 3D

    Doom clock

    stecman/avr-doomclock

    GPS clock on an ATTiny with MAX7219 7-segment driver

    24 parts5MIT
  • 2 layers91.4 × 119.4 mmPainel pcb1, the printed circuit board in 3D

    Painel pcb1

    ArqueologiaDigital/PatinhoFeio_Painel_KICAD

    63 parts4
  • 2 layers142.2 × 64.4 mmFcu mb, the printed circuit board in 3D

    Fcu mb

    VirtualGit/HomeCockpitA320

    A320 Home Cockpit project

    69 parts4

Questions

How big is the Learsim pcbs PCB?

It measures 120 × 110 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Learsim pcbs use?

64 parts, built around the MAX7219M, 2MD1T1B1M2QES-5 and EC12E2430803. 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 Learsim pcbs KiCad files?

From the axdra/Learsim repository on GitHub, at the commit this page was made from: the board is PCBs/Radio Panel/learsim pcbs.kicad_pcb and its schematic PCBs/Radio Ident/Radio Ident.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Learsim pcbs design in my own project?

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