STM32F103 PWM audio player with DMA connection guide
STM32F103 PWM audio player with DMA STM32F103C8T6 Blue Pill wiring guide with power, signal assignments, and bench checks.
STM32F103C8T6 Blue Pill
49 contacts Current packagePower the board from USB
RequiredUse a single USB cable to power the board through its native connector. Leave external power headers disconnected. Check the 3.3 V rail before attaching the debug probe.
- USB power input
- USB host VBUS
- VBUS (H4-1)
- USB return
- USB host ground
- GND (H4-5)
- Board logic rail
- 3V3 (H3-1)
- 3.3 V measurement point
Bench checks
- Identify the USB power input and ground in the board schematic.
- Measure roughly 3.3 V between the board logic rail and ground. Check for a short or wrong connector if the rail is low.
STM32F103C8T6 Blue Pill connector map
Connection scenarios
Check the PB6 PWM waveform
Run the playback test with a high-impedance probe attached to PB6 and a common ground. Use a buffer and filter designed for the load before connecting an audio transducer.
Bench checks
- Start with fixed low, mid and high samples to verify duty cycle and timer preload.
- Use a short ramp to verify that duty cycle changes at the expected sample cadence. Confirm DMA transfer completion and the chosen idle state.
Original PWM audio project and RM0008 Rev 21, DMA request mapping.
STM32F103C8T6 Blue Pill wiring map
H1-12 · A7
Routes to MCU PA7. Choose the applicable GPIO or peripheral function in the MCU documentation.
Models and documents
This guide follows the archived Blue Pill example using a short unsigned 8-bit, 16 kHz sample array in Flash. The output is first checked as a logic waveform.
- STM32F103C8T6 Blue Pill
- The documented blue PCB has two 20-contact headers, SWD and Micro USB. Its PC13 user LED is active low. The USB D+ pull-up varies across production boards.
- Original Spark Logic project discussion· Author’s hardware, firmware and bench notes.
- STMicroelectronics RM0008 reference manual· Timer modes, DMA request mapping and USB registers.
- STM32-base · STM32F103C8T6 Blue Pill· Board identification, connector numbering and documented net destinations.
- STMicroelectronics MCU datasheet· MCU electrical specifications and package pin functions.
- STM32F103C8T6 Blue Pill schematic· PCB power, debug, connector and peripheral wiring.
