

STM32L4Q5CGT AudioSpectrumAnalyzer
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
10STM32L4Q5CGT6
LQFP-48(7x7)-40℃~+85℃ 1.71V~3.6V 120MHz 12bit 12bit 1MB 32 Bit 320KB ARM Cortex-M4 Built-in FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)SPX3819M5-L-3-3/TR
SOT-23-5-40℃~+125℃ 1 16V 3.3V 340mV@(500mA) 40uVrms 500mA 70dB 90uA Fixed Over Current Protection、Over Temperature Protection、Enable Positive SOT-23-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSMaxLinearVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)CL31B225KBHNNNE
12062.2uF 50V X7R ±10% 1206 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTTS-1187A-B-A-B
SMD-4P,5.1x5.1mm-30℃~+85℃ 1.5mm 1.6N 100,000 cycles 12V 5.1mm 5.1mm 50mA Gold No Round Button SPST Surface Mount,Vertical Without Bracket SMD-4P,5.1x5.1mm Tactile Switches ROHSXKB ConnectionTactile SwitchesX322516MLB4SI
SMD3225-4P-40℃~+85℃ 16MHz 50Ω 9pF Crystal Oscillator ±10ppm ±20ppm SMD3225-4P Crystals ROHSYXCCrystalsT491A225K035AT
CASE-A-3216-18(mm)-55℃~+125℃ 2.2uF 35V 4Ω@100kHz ±10% CASE-A-3216-18(mm) Tantalum Capacitors ROHSKEMETTantalum CapacitorsLQM31PN2R2M00L
12062.2uH 238mΩ 40MHz 900mA Multilayer inductor ±20% 1206 Inductors (SMD) ROHSMurataInductors (SMD)ICS-43434
LGA-6(3.5x2.7)-26dB -40℃~+85℃ 0.98mm 1.65V~3.63V 2.65mm 3.5mm 550uA 64dB I2S Omnidirectional Omnidirectional pickup LGA-6(3.5x2.7) MEMS Microphones ROHSTDK InvenSenseMEMS MicrophonesKH-TYPE-C-16P
SMD-40℃~+85℃ 1 10,000 cycles 16P 30V 3A 7.81mm Female Surface Mount, Right Angle Type-C SMD USB Connectors ROHSkinghelmUSB Connectors
README
README.mdSTM32 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.
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
| Ref | Part | Function |
|---|---|---|
| U4 | STM32L4Q5CGT6 (LQFP-48) | Microcontroller |
| X1 | 16 MHz crystal (9 pF, ±10 ppm) | HSE clock |
| U1 | SPX3819M5-L-3-3 | 3.3 V, 500 mA LDO |
| J1 | USB-C receptacle, USB 2.0, 16 pins | Power and USB data |
| U2 | USBLC6-2SC6 | ESD protection on D+ / D- |
| MK1 | TDK InvenSense ICS-43434 | I2S MEMS microphone (bottom side) |
| U3 | 1x8 pin header, 2.54 mm | Connection for the Waveshare 2inch LCD Module |
| S1, S2 | Tactile switches | BOOT0 and RESET |
| J2 | Tag-Connect TC2030 footprint | SWD, 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
| Interface | Signal | MCU pin | Connects to |
|---|---|---|---|
| Display | DIN | PA7 (SPI1_MOSI) | U3 pin 3 |
| Display | CLK | PA5 (SPI1_SCK) | U3 pin 4 |
| Display | CS | PA3 (GPIO) | U3 pin 5 |
| Display | DC | PA2 (GPIO) | U3 pin 6 |
| Display | RST | PA1 (GPIO) | U3 pin 7 |
| Display | BL | PA0 (GPIO) | U3 pin 8 |
| Microphone | WS | PB12 (SAI2_FS_A) | MK1 pin 1 |
| Microphone | SCK | PB13 (SAI2_SCK_A) | MK1 pin 4 |
| Microphone | SD | PB15 (SAI2_SD_A) | MK1 pin 6 |
| USB | D- | PA11 (USB_OTG_FS_DM) | J1 through U2 |
| USB | D+ | PA12 (USB_OTG_FS_DP) | J1 through U2 |
| SWD | SWDIO | PA13 | J2 pin 2 |
| SWD | RESET | NRST | J2 pin 3 |
| SWD | SWCLK | PA14 | J2 pin 4 |
| SWD | SWO | PB3 | J2 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
-
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.
-
Clone the repository:
sh git clone https://github.com/OscarBazylewich/STM32_Audio_Spectrum_Analyzer_CustomPCB.git -
Open
STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_proin KiCad.Note: The project files contain the symbols and the footprints. Thus, KiCad opens the project without other libraries.
-
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:
- Open Preferences > Configure Paths.
- If the list does not contain
KICAD8_3RD_PARTY, add a path variable with this name. - Set
${KICAD8_3RD_PARTY}to the folder that contains3dmodels/com_github_CDFER_JLCPCB-Kicad-Library.
-
In the Schematic Editor, do the ERC.
-
In the PCB Editor, do the DRC.
-
In the PCB Editor, go to File > Fabrication Outputs > Gerbers.
-
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.
-
Select the copper, mask, paste, silkscreen and Edge.Cuts layers.
-
Click Plot.
-
Click Generate Drill Files....
-
In the Generate Drill Files dialog, click Generate.
As an alternative to steps 7 to 12, use these commands in the repository folder:
kicad-cli pcb export gerbers --output gerbers/ STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcb
kicad-cli pcb export drill --output gerbers/ STM32L4Q5CGT-AudioSpectrumAnalyzer.kicad_pcbRepository structure
.
├── 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.md3D 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 side | KiCad 9.0: bottom side |
|---|---|
| KiCad 10.0: top side | KiCad 10.0: bottom side |
Related projects
- STM32_Audio_Spectrum_Analyzer_ST7789_and_INMP441: This project is the initial prototype and its firmware. It uses a Nucleo-F767ZI board, an ST7789 display and an INMP441 microphone.
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 100n | Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolder | C4, C6, C7, C8, C9, C10, C11, C14 |
| 6 | Fiducial | Fiducial:Fiducial_1mm_Mask2mm | FID1, FID2, FID3, FID4, FID5, FID6 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4 |
| 2 | 10p | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C12, C13 |
| 2 | 2u2 | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C2, C3 |
| 2 | 5k1 | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R1, R2 |
| 2 | Tactile Button, 160gf | PCM_JLCPCB:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL-2 | S1, S2 |
| 1 | 10k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R3 |
| 1 | 10u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C5 |
| 1 | 16MHz | PCM_JLCPCB:OSC-SMD_4P-L3.2-W2.5-BL | X1 |
| 1 | 2u2 | PCM_JLCPCB:C_CASE-A-3216-18(mm) | C1 |
| 1 | 2u2 | PCM_JLCPCB:L_1206 | L1 |
| 1 | Conn_ARM_SWD_TagConnect_TC2030 | Connector:Tag-Connect_TC2030-IDC-FP_2x03_P1.27mm_Vertical | J2 |
| 1 | ICS-43434 | Sensor_Audio:InvenSense_ICS-43434-6_3.5x2.65mm | MK1 |
| 1 | SPX3819M5-L-3-3 | Package_TO_SOT_SMD:SOT-23-5 | U1 |
| 1 | STM32L4Q5CGT6 | Package_QFP:LQFP-48_7x7mm_P0.5mm | U4 |
| 1 | USB TYPE C 16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J1 |
| 1 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6 | U2 |
| 1 | Waveshare LCD Display | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | U3 |
The 38 most common of 39 parts.
Similar boards
- 2 layers

- 2 layers66.5 × 35.8 mm

- 4 layers120 × 100 mm

- 4 layers64.6 × 55.2 mm

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 mm

- 2 layers70 × 70 mm

- 4 layers60 × 60 mm

- 2 layers70 × 70 mm

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).