Skip to the content
2 layers82 × 134 mmPcb badge, the printed circuit board in 3D

execute fw/merge.py to merge STM32CubeIDE generated main.c with user code in main.cc into main.cc.

Size
82 × 134 mm
Copper layers
2
Thickness
1.6 mm
Parts
258
Nets
125
Pads
675
Tracks, vias
2,496, 307
Pours
3
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
10 Jan 2024
Updated
6 Sep 2026

Overview

Pcb badge is an open-source printed circuit board by john0312, from the john0312/hitcon-pcb-badge repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 82 × 134 mm with 258 parts on 125 nets, routed with 2,496 tracks and 307 vias.

It is built around the STM32F103CBT6, QX2304L33F and 74HC238D, with the IRM-H638T/TR2, LSM6DS3TR-C and JSM2301S among its other parts. Its parts include 141 diodes, 50 resistors, 23 capacitors, 20 transistors and 8 switches. It belongs with the lEDs and displays boards and the STM32 boards of this library.

Main components

11

README

README.md

HITCON PCB Badge

Firmware Development

execute fw/merge.py to merge STM32CubeIDE generated main.c with user code in main.cc into main.cc.

Choose your hardware

In STM32CubeIDE, go to Project > Build Configurations > Set Active > V1.1 / V2.0 / V2.1 / V2.2 to switch between hardware versions.
Then go to Run > Run Configurations choose the correct Run Configuration There are different firmware versions for each hardware revision.
To identify your hardware version, check the back of your badge.

  • V1.1 (2024 CMT Attendee)
  • V2.0 (2025 first prototype)
  • V2.1 (2025 last prototype)
  • V2.2 (2025 Attendee)

Timers and DMA Channels

  • IR Tx: PWM Output from TIM3_CH3, Output PB0, DMA1 Ch2
    • Compare: 63/4 = 16
    • Mode: Circular Normal Peripheral to Memory
PeripheralMemory
Increment AddressXV
Data WidthHalf WordHalf Word
  • IR Rx: DMA Triggered through TIM2_CH3, Input PA0 read by DMA1 Ch1
    • Compare: 105
    • Mode: Circular Peripheral to Memory
PeripheralMemory
Increment AddressXV
Data WidthHalf WordHalf Word
  • Led Rows/Cols: DMA Triggered through TIM1_UP, Output PB6-9(Rows), Output PB1-2/10-15(Cols), written by DMA1 Ch5
    • Mode: Circular Memory to Peripheral
PeripheralMemory
Increment AddressXV
Data WidthWordWord
  • Led Brightness control: PWM Output from TIM3_CH2
  • Buttons: Reads Input PA4-10, PA15 through TIM4_CH2, DMA1 Ch4
    • Compare: 5
    • Mode: Circular Peripheral to Memory
PeripheralMemory
Increment AddressXV
Data WidthHalf WordHalf Word
  • Cross-board communication TX: USART2 TX, DMA1 Ch7

  • Cross-board communication RX: USART2 RX, DMA1 Ch6

  • TIM4: Operates at 100Hz for Button

    • Prescaler: 12000-1
    • Counter Period: 10-1
  • TIM3: Operates at 38kHz for PWM out.

    • Prescaler: 5-1
    • Counter Period: 63-1
    • Master Mode Enable
  • TIM2:

    • Prescaler: 0
    • Counter Period: 4-1
    • Slave Mode: External Clock
    • Trigger Source: ITR2 (TIM3 Update Event)
    • Operates at 1/4 speed of TIM3, synchronization needed for IR pulse alignment and brightness adjustment.
    • Also operates at 1/4 bit time for capturing IR.
    • TIM2 = 38/4 kHz = 9.5kHz.
    • Bit time = 4/9.5kHz = 421us (each bit is 16 pulse).
  • TIM1:

    • Prescaler: 5-1
    • Counter Period: 1500-1
    • LED refreshes at 3200/16 = 200Hz.

Format

To check format, please install clang-format first.

sh
# under hitcon-pcb-badge
./lint.sh # check format
./lint.sh -i # auto format

Parts

258
QtyValueFootprintReferences
128LEDLED_SMD:LED_0402_1005Metric_Pad0.77x0.64mm_HandSolderD00, D01, D02, D03, D04, D05, D06, D07, D10, D100, D101, D102, D103, D104, D105, D106 +112
172N7002Package_TO_SOT_SMD:SOT-23Q9, Q90, Q91, Q92, Q93, Q94, Q95, Q96, Q97, Q98, Q910, Q911, Q912, Q913, Q914, Q915 +1
100.1uCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC1, C21, C30, C31, C32, C33, C40, C50, C51, C80
8100kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR5, R6, R7, R16, R17, R18, R19, R52
8300Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR90, R91, R92, R93, R94, R95, R96, R97
8SW_MEC_5EmyLib:SOIC4_TL3301SPF160RGTAPE_EWISW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8
710uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC20, C22, C23, C24, C25, C26, C92
7470Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR8, R9, R21, R31, R32, R33, R34
7NCLED_SMD:LED_PLCC_2835_HandsolderingD160, D162, D163, D164, D165, D166, D167
6NCResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR22, R29, R30, R35, R36, R53
54.7kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR3, R20, R50, R51, R54
5NCResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR162, R163, R165, R166, R167
20Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR10, R23
210MResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR4, R11
21uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC10, C11
220RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1, R2
220pCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC37, C38
25.1kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR24, R25
274HC238Package_SO:SOP-16_3.9x9.9mm_P1.27mmU4, U8
2Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4, J5
2JSM2301SPackage_TO_SOT_SMD:SOT-23Q2, Q50
2SOD4007-MSDiode_SMD:D_SOD-123FD2, D18
1100Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR61
1110RResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR164
1220Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR14
14.7uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC60
1BAT_2myLib:BH-AAA-B5AK001BT1
1CYL104R-33UHInductor_SMD:L_10.4x10.4_H4.8L20
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7
1Conn_01x02_PinConnector:JWT_A3963_1x02_P3.96mm_VerticalJ2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1DEALON USB-TYPE-C-018myLib:DEALON USB-TYPE-C-018J1
1IRM-H638T/TR2myLib:IRM-H638TU6
1LSM6DS3TR-CmyLib:QFN_S3TR-C_STMU5
1NCDiode_SMD:D_SOD-323_HandSolderingD1
1NCLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3
1NCCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC34
1NEWOPTO XYC-IRA2835A90-X4LED_SMD:LED_PLCC_2835_HandsolderingD161
1NSR0320MW2T1GDiode_SMD:D_SOD-323_HandSolderingD9
1QX2304L33FmyLib:SOT-23-5U2
1SI2302Package_TO_SOT_SMD:SOT-23Q1
1STM32F103CBT6Package_QFP:LQFP-48_7x7mm_P0.5mmU3
1TAXM8M4RFDCET2TOscillator:Oscillator_SMD_Abracon_ASE-4Pin_3.2x2.5mmY1
1TLV70328DBVRmyLib:SOT-23-5U1

Similar boards

  • 4 layers65 × 40 mmHEXBERRY V-20Q100, the printed circuit board in 3D

    HEXBERRY V-20Q100

    logitiles/HEXBERRY-V-20Q100-0.91

    Open Hardware FPGA platform

    195 parts4CERN-OHL-S-2.0
  • 2 layers86 × 13 mmPCBA INTERFACE, the printed circuit board in 3D

    PCBA INTERFACE

    intechstudio/grid-hardware

    50 parts59GPL-3.0
  • 2 layers391 × 131.1 mmAustin, the printed circuit board in 3D

    Austin

    AcheronProject/Austin

    Austin PCB

    599 parts18
  • 2 layers429.6 × 540.7 mmKeyboard, the printed circuit board in 3D

    Keyboard

    joshajohnson/louise

    A project between Josh and RiotPunch to build a 75% alice keyboard with a southpaw numpad.

    327 parts5
  • 2 layers285.8 × 95.3 mmLegshark65 rev2, the printed circuit board in 3D

    Legshark65 rev2

    jemmec/legshark

    An open source 60% (15 by 5) ortholinear keyboard designed with both flexability and familiarity in mind.

    210 parts3MIT
  • 2 layers100 × 90 mmMcu board, the printed circuit board in 3D

    Mcu board

    Kononenko-K/IN12-STM32-Nixie-Clock

    STM32 Nixie clock project.

    66 parts3
  • 2 layers344.7 × 123.1 mmAthena, the printed circuit board in 3D

    Athena

    BenjaminJAnderson/Orthodox

    557 parts1
  • 2 layers309.6 × 123.8 mmKB75HIW, the printed circuit board in 3D

    KB75HIW

    indrawahid7/Keyboard

    438 partsGPL-2.0

Questions

How big is the Pcb badge PCB?

It measures 82 × 134 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pcb badge use?

258 parts, built around the STM32F103CBT6, QX2304L33F, 74HC238D and IRM-H638T/TR2. 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 Pcb badge KiCad files?

From the john0312/hitcon-pcb-badge repository on GitHub, at the commit this page was made from: the board is pcb/kicad/pcb_badge/pcb_badge.kicad_pcb and its schematic pcb/kicad/pcb_badge/LED Matrix.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pcb badge design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).