Skip to the content
4 layers94.5 × 39.7 mmSTM32L4Q5CGT AudioSpectrumAnalyzer, the printed circuit board in 3D

This repository contains a 4-layer KiCad board for the STM32 Audio Spectrum Analyzer. The board has an STM32L4Q5CGT6 MCU and an I2S MEMS microphone (ICS-43434). It also has a pin header for a 2-inch LCD module (ST7789), USB-C with ESD protection and a Tag-Connect footprint for SWD.

Size
94.5 × 39.7 mm
Copper layers
4
Thickness
1.61 mm
Parts
39
Nets
48
Pads
171
Tracks, vias
370, 61
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
14 May 2026
Updated
6 Nov 2026

Overview

STM32L4Q5CGT AudioSpectrumAnalyzer is an open-source printed circuit board by OscarBazylewich, from the OscarBazylewich/STM32_Audio_Spectrum_Analyzer_CustomPCB repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 94.5 × 39.7 mm with 39 parts on 48 nets, routed with 370 tracks and 61 vias.

It is built around the STM32L4Q5CGT6, SPX3819M5-L-3-3/TR and USBLC6-2SC6, with the CL31B225KBHNNNE, TS-1187A-B-A-B and X322516MLB4SI among its other parts. Its parts include 14 capacitors, 4 ICs, 3 resistors, 2 connectors and 2 switches. It belongs with the audio and music and sensors and measurement boards and the STM32 boards of this library.

Main components

10

README

README.md

STM32 Audio Spectrum Analyzer - Custom PCB

This repository contains a small KiCad board (4 layers) for an audio spectrum analyzer. The board has an STM32L4Q5CGT6, an I2S microphone, a pin header for a Waveshare 2inch LCD Module (ST7789) and USB-C power.

License: GPL-3.0 MCU KiCad

KiCad 3D render of the top side of the board. The outline of the Waveshare 2inch LCD Module is on the left side of the board. The MCU, the crystal, the BOOT0 and RESET switches, the Tag-Connect pads, the LDO and the USB-C receptacle are on the right side.
The top side of the board in the KiCad 9.0 3D viewer, with all 3D models loaded.

This project uses an STM32L4Q5CGT6 microcontroller (MCU) to decrease the dimensions of the board. This MCU also has almost the same functions as most STM32 performance-line MCUs from ST that are applicable to this project. The initial prototype used a Nucleo-F767ZI board (refer to Related projects).

The board has these functions:

  • It receives power and USB data through the USB-C receptacle.
  • It reads audio from an ICS-43434 I2S microphone on the board.
  • It controls the LCD module with SPI.

Note: This repository contains only project files (schematic Revision A, date 2026-03-31). It does not contain fabrication outputs, assembly data, test results or firmware for this board.

Features

  • STM32L4Q5CGT6: Arm Cortex-M4, a maximum of 120 MHz, 1024 KB flash, 320 KB RAM, LQFP-48 package
  • USB-C for 5 V power and USB 2.0 full-speed data, with ESD protection
  • SPX3819 3.3 V LDO (500 mA) that supplies one +3V3 rail for all the parts on the board
  • ICS-43434 MEMS microphone (I2S, 24-bit) on the board, connected to the SAI2 pins
  • 1x8 pin header for a Waveshare 2inch LCD Module (ST7789) on SPI1
  • Tag-Connect TC2030 footprint for SWD
  • BOOT0 and RESET switches

Hardware

Primary parts

RefPartFunction
U4STM32L4Q5CGT6 (LQFP-48)Microcontroller
X116 MHz crystal (9 pF, ±10 ppm)HSE clock
U1SPX3819M5-L-3-33.3 V, 500 mA LDO
J1USB-C receptacle, USB 2.0, 16 pinsPower and USB data
U2USBLC6-2SC6ESD protection on D+ / D-
MK1TDK InvenSense ICS-43434I2S MEMS microphone (bottom side)
U31x8 pin header, 2.54 mmConnection for the Waveshare 2inch LCD Module
S1, S2Tactile switchesBOOT0 and RESET
J2Tag-Connect TC2030 footprintSWD, SWO, NRST and +3V3 (pads and locating holes only, not in the BOM)

The schematic contains the name of the manufacturer, the MPN and the LCSC part number of each BOM part.

Pinout

InterfaceSignalMCU pinConnects to
DisplayDINPA7 (SPI1_MOSI)U3 pin 3
DisplayCLKPA5 (SPI1_SCK)U3 pin 4
DisplayCSPA3 (GPIO)U3 pin 5
DisplayDCPA2 (GPIO)U3 pin 6
DisplayRSTPA1 (GPIO)U3 pin 7
DisplayBLPA0 (GPIO)U3 pin 8
MicrophoneWSPB12 (SAI2_FS_A)MK1 pin 1
MicrophoneSCKPB13 (SAI2_SCK_A)MK1 pin 4
MicrophoneSDPB15 (SAI2_SD_A)MK1 pin 6
USBD-PA11 (USB_OTG_FS_DM)J1 through U2
USBD+PA12 (USB_OTG_FS_DP)J1 through U2
SWDSWDIOPA13J2 pin 2
SWDRESETNRSTJ2 pin 3
SWDSWCLKPA14J2 pin 4
SWDSWOPB3J2 pin 6

The power pins are:

  • U3 pin 1 and J2 pin 1 are +3V3.
  • U3 pin 2 and J2 pin 5 are GND.
  • On the microphone, pin 5 is VDD (+3V3) and pin 3 is GND. LR (pin 2) connects to GND.

The schematic gives only the interface names (SPI or SAI), not the peripheral names. The peripheral names in parentheses in the table are from the KiCad STM32L4Q5CGTx symbol.

Board

  • 94.5 x 39.7 mm, with 1 mm rounded corners and four M3 mounting holes
  • 4 layers: a top layer for signals, two inner GND planes, and a bottom layer for signals and a +3V3 pour
  • Approximately 1.6 mm thick, with a HAL lead-free finish, a green solder mask and a white silkscreen
  • The microphone is on the bottom side. All other parts are on the top side.

Circuit

  • Power path. VBUS from the USB-C receptacle goes through a 2.2 µH series inductor (L1) into the SPX3819 LDO. Each side of L1 has a 2.2 µF capacitor. The LDO is on when USB power is available, because its EN pin connects to its input. One +3V3 rail supplies power to all items on the board: VDD, VDDA, VDDUSB, the Waveshare 2inch LCD Module and the microphone. VBAT also connects to +3V3, and the board has no battery for VBAT.
  • USB. 5.1 kΩ pull-down resistors on CC1 and CC2 identify the board as a USB sink. D+ and D- go through the USBLC6-2SC6 to PA12 and PA11. The SBU pins have no connection.
  • Clock. A 16 MHz crystal with C0G load capacitors (10 pF) connects to PH0/PH1. The crystal footprint has a front-copper keep-out area. This area prevents copper pour below the crystal. The board has no 32.768 kHz LSE crystal (PC14/PC15 have no connection).
  • Microphone. The ICS-43434 is on the bottom side. Its footprint has a 0.5 mm hole through the board for the acoustic port of the microphone. WS, SCK and SD connect to PB12, PB13 and PB15.
  • Display. The board has a pin header footprint for the Waveshare 2inch LCD Module. This LCD module was available before the project, and it connects directly to the pin header. The board has a silkscreen outline with the label "2inch LCD Module". The board also has four 3.2 mm holes for the mounting holes of the LCD module. The LCD module is on the left two-thirds of the board, and all other parts are on the right third.
  • BOOT0 and RESET. S1 connects BOOT0 (PH3) to +3V3. When S1 is open, a 10 kΩ resistor keeps BOOT0 low. S2 connects NRST to GND. Each of the two lines has a 100 nF filter capacitor.

How to start

  1. Install KiCad 10.0 or a higher version.

    Note: The project files are in the KiCad 10 format. KiCad 9 and previous versions cannot open these files.

  2. Clone the repository:

    sh
    git clone https://github.com/OscarBazylewich/STM32_Audio_Spectrum_Analyzer_CustomPCB.git
  3. Open STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pro in KiCad.

    Note: The project files contain the symbols and the footprints. Thus, KiCad opens the project without other libraries.

  4. If you want the full 3D view (View > 3D Viewer in the PCB Editor), install the JLCPCB KiCad Library with the Plugin and Content Manager.

    Note: KiCad uses the ${KICAD8_3RD_PARTY} path variable to find the 3D models for X1, S1, S2, L1 and C1.

    If KiCad does not show the 3D models of these parts, do these steps:

    1. Open Preferences > Configure Paths.
    2. If the list does not contain KICAD8_3RD_PARTY, add a path variable with this name.
    3. Set ${KICAD8_3RD_PARTY} to the folder that contains 3dmodels/com_github_CDFER_JLCPCB-Kicad-Library.
  5. In the Schematic Editor, do the ERC.

  6. In the PCB Editor, do the DRC.

  7. In the PCB Editor, go to File > Fabrication Outputs > Gerbers.

  8. Set an output folder, for example gerbers/.

    Note: The output folder in the saved plot settings is the project folder. If you do not set an output folder, KiCad writes the output files to the project folder.

  9. Select the copper, mask, paste, silkscreen and Edge.Cuts layers.

  10. Click Plot.

  11. Click Generate Drill Files....

  12. In the Generate Drill Files dialog, click Generate.

As an alternative to steps 7 to 12, use these commands in the repository folder:

sh
kicad-cli pcb export gerbers --output gerbers/ STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcb
kicad-cli pcb export drill --output gerbers/ STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcb

Repository structure

text
.
├── STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pro   # KiCad 10 project: design rules, net classes, BOM fields
├── STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_sch   # Schematic on one sheet (Revision A)
├── STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcb   # 4-layer PCB layout, 94.5 x 39.7 mm
├── .gitattributes                                  # Lets GitHub count the KiCad files in its language statistics
├── LICENSE                                         # GNU GPL v3.0
└── README.md

3D renders

The KiCad 9.0 renders include all 3D models, but the board corners are not rounded. The KiCad 10.0 renders do not include all 3D models (the 3D models of X1, S1, S2, L1 and C1 are missing). But these renders show the added GND pour on layers 1 and 4, and the rounded corners of the board outline in this repository.

KiCad 9.0: top sideKiCad 9.0: bottom side
KiCad 9.0 render of the top side of the board, with all 3D modelsKiCad 9.0 render of the bottom side of the board, with the ICS-43434 microphone, the pins of the LCD pin header and the mounting holes
KiCad 10.0: top sideKiCad 10.0: bottom side
KiCad 10.0 render of the top side of the board, with rounded corners. The 3D models of the crystal (X1), the switches (S1, S2), the inductor (L1) and the tantalum capacitor (C1) are missing.KiCad 10.0 render of the bottom side of the board, with the ICS-43434 microphone and the pins of the LCD pin header

Related projects

Credits

  • Oscar Bazylewich made this KiCad project.
  • The footprints and 3D models for X1, S1, S2, L1 and C1 are from the JLCPCB KiCad Library of CDFER. The symbols for X1, S1 and S2 are also from this library.
  • The symbol and the outline of the Waveshare 2inch LCD Module are from a custom library.
  • All other symbols, footprints and 3D models are from the standard KiCad libraries.

License

The license of this project is the GNU General Public License v3.0. Refer to LICENSE.

Parts

39
QtyValueFootprintReferences
8100nCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC4, C6, C7, C8, C9, C10, C11, C14
6FiducialFiducial:Fiducial_1mm_Mask2mmFID1, FID2, FID3, FID4, FID5, FID6
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_PadH1, H2, H3, H4
210pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC12, C13
22u2Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C3
25k1Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1, R2
2Tactile Button, 160gfPCM_JLCPCB:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL-2S1, S2
110kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR3
110uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC5
116MHzPCM_JLCPCB:OSC-SMD_4P-L3.2-W2.5-BLX1
12u2PCM_JLCPCB:C_CASE-A-3216-18(mm)C1
12u2PCM_JLCPCB:L_1206L1
1Conn_ARM_SWD_TagConnect_TC2030Connector:Tag-Connect_TC2030-IDC-FP_2x03_P1.27mm_VerticalJ2
1ICS-43434Sensor_Audio:InvenSense_ICS-43434-6_3.5x2.65mmMK1
1SPX3819M5-L-3-3Package_TO_SOT_SMD:SOT-23-5U1
1STM32L4Q5CGT6Package_QFP:LQFP-48_7x7mm_P0.5mmU4
1USB TYPE C 16PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ1
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U2
1Waveshare LCD DisplayConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalU3

The 38 most common of 39 parts.

Similar boards

  • 2 layersProtoZero, the printed circuit board in 3D

    ProtoZero

    OpenBotBrain/mcu-board

    Some design notes for an MCU board.

    9 parts
  • 4 layers120 × 100 mmNts player, the printed circuit board in 3D

    Nts player

    beeb/nts-player

    Standalone web-radio player

    99 partsApache-2.0
  • 4 layers64.6 × 55.2 mmWhisker, the printed circuit board in 3D

    Whisker

    HeyPCB/whisker

    Drop-in controller for Petoi's Nybble robot cat running the stock OpenCat firmware: ATmega328P, PCA9685, MPU-6050, USB-C, 3 A buck, protected battery input. 4-layer KiCad 10 board plus printed cradle.

    118 partsCERN-OHL-S-2.0
  • 2 layers100 × 100 mmUlva controller, the printed circuit board in 3D

    Ulva controller

    ivere27/ulva

    controller board for robotics and agriculture

    106 partsMIT
  • 2 layers70 × 70 mmIntercom, the printed circuit board in 3D

    Intercom

    romanvrable/openmic

    Open, as in open source, audio processing code and PCBs

    73 parts2GPL-3.0
  • 4 layers60 × 60 mmCube os, the printed circuit board in 3D

    Cube os

    Tim4769/cube-os

    Fallout/Burnout-style hardware project repository scaffold.

    82 partsMIT
  • 2 layers70 × 70 mmRecorder, the printed circuit board in 3D

    Recorder

    Yang-xy-svg/ESP_OpenMic

    This project is subject to the licence in the LICENCE file, and even if that says it is an open source project, you cannot sell boards or cases bearing the Andrews & Arnold Ltd name, the A&A logo, the registered…

    71 partsGPL-3.0

Questions

How big is the STM32L4Q5CGT AudioSpectrumAnalyzer PCB?

It measures 94.5 × 39.7 mm and has 4 copper layers, 1.61 mm thick.

What parts does the STM32L4Q5CGT AudioSpectrumAnalyzer use?

39 parts, built around the STM32L4Q5CGT6, SPX3819M5-L-3-3/TR, USBLC6-2SC6 and CL31B225KBHNNNE. 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 STM32L4Q5CGT AudioSpectrumAnalyzer KiCad files?

From the OscarBazylewich/STM32_Audio_Spectrum_Analyzer_CustomPCB repository on GitHub, at the commit this page was made from: the board is STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcb and its schematic STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32L4Q5CGT AudioSpectrumAnalyzer design in my own project?

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