Uploaded May 2026 | Updated November 2026, 3 hours ago
Printf, variable monitoring, debugging, and more using the serial wire trace output (SWO).
Limited-time: $2 for 6-layer PCBs up to 100×100 mm - grab your $33 coupon now: jlcpcb.com/events/6-layer-pcb?from=PhilsLab (Ad)
OSHWLab Stars 2026: oshwlab.com/activities/stars2026
Altium Develop: altium.com/yt/philslab (Ad)
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94
[LINKS]
SWO Basics: black-magic.org/usage/swo.html
[TIMESTAMPS]
00:00 Intro
01:46 JLCPCB (Ad)
03:21 Altium Develop (Ad)
04:26 SWO & HW Overview
07:31 CubeIDE Set-Up
09:03 ITM Port & SendChar
12:12 printf via ITM
13:14 Enabling SWV
16:04 Multiple ITM Ports
18:34 DWT Comparator Variable Monitor
22:44 Outro
Printf, variable monitoring, debugging, and more using the serial wire trace output (SWO).
Limited-time: $2 for 6-layer PCBs up to 100×100 mm - grab your $33 coupon now: jlcpcb.com/events/6-layer-pcb?from=PhilsLab (Ad)
OSHWLab Stars 2026: oshwlab.com/activities/stars2026
Altium Develop: altium.com/yt/philslab (Ad)
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94
[LINKS]
SWO Basics: black-magic.org/usage/swo.html
[TIMESTAMPS]
00:00 Intro
01:46 JLCPCB (Ad)
03:21 Altium Develop (Ad)
04:26 SWO & HW Overview
07:31 CubeIDE Set-Up
09:03 ITM Port & SendChar
12:12 printf via ITM
13:14 Enabling SWV
16:04 Multiple ITM Ports
18:34 DWT Comparator Variable Monitor
22:44 Outro
![DSP Overdrive (Asymmetrical Clipping) in Software (STM32) - Phils Lab #153
Discover Easy, Affordable, and Reliable PCB manufacturing with JLCPCB! Register to get $70 New customer coupons: https://jlcpcb.com/?from=PhilsLab (AD: This video includes a paid promotion for JLCPCB and Altium.)
How to design and implement an audio asymmetrical clipping overdrive/distortion algorithm on a custom STM32-based digital signal processing system.
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[LINKS]
Previous Overdrive Video: https://www.youtube.com/watch?v 0ys155xv1Q
STM32 DSP Introduction: https://www.youtube.com/watch?v=VDhmVrbSpqA
STM32 I2S/ADC/DMA: https://www.youtube.com/watch?v=zlGSxZGwj-E
FIR Filters: https://www.youtube.com/watch?v=uNNNj9AZisM
IIR Filters: https://www.youtube.com/watch?v=QRMe02kzVkA
Audio EQ: https://www.youtube.com/watch?v=4o gUht_Xc
[TIMESTAMPS]
00:00 Solo
00:18 Intro
01:55 Previous Video
02:23 JLCPCB (Ad)
03:32 Analogue Overdrive
04:53 Asymmetrical Clipping
06:43 Static Non-Linearity Parameters
08:32 Time & Frequency Domain
10:15 Block Diagram
12:14 Code (STM32)
17:08 Test - Time & Frequency Domain
20:50 Test - Guitar Playthrough
23:39 Outro DSP Overdrive (Asymmetrical Clipping) in Software (STM32) - Phils Lab #153](https://i.ytimg.com/vi/rnvEA7SOaSA/mqdefault.jpg)
![I2C Hardware & PCB Design - Phils Lab #132
I2C implementation tips (pull-up resistor sizing, bus capacitance, schematic gotchas, and PCB design). PCBs by PCBWay https://www.pcbway.com (AD: This video includes a paid promotion for PCBWay).
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://www.github.com/pms67
[SOCIAL]
https://www.instagram.com/philslabyt
[LINKS]
How To Write A Driver (STM32, I2C): https://www.youtube.com/watch?v JQAve05o_0
I2C Bus Specification and User Manual: https://www.nxp.com/docs/en/user-guide/UM10204.pdf
Designing with I2C Bus Devices: https://www.nxp.com/docs/en/training-reference-material/DESIGNING-WITH-I2C-BUS-DEVICES.pdf
I2C Bus Pull-Up Resistor Calculation: https://www.ti.com/lit/an/slva689/slva689.pdf?ts=1608399660926
Why, When, and How To Use I2C Buffers: https://www.ti.com/lit/an/scpa054/scpa054.pdf?ts=1709118605496
[TIMESTAMPS]
00:00 Introduction
01:50 PCBWay (Ad)
02:33 I2C Basics
07:19 Bus Capacitance
11:15 Pull-Up Resistors
18:29 Repeaters, Level Shifters, and Multiplexers
21:06 Schematic Tips
25:16 PCB Design Tips
34:20 Outro I2C Hardware & PCB Design - Phils Lab #132](https://i.ytimg.com/vi/sCHK3P5tn7s/mqdefault.jpg)

![STM32 USB HID Custom Joystick/Gamepad - Phils Lab #149
⚡️JLCPCB Black Friday Mega Sale!⚡️ Save up to $252 on your JLC orders and enter to win amazing prizes: https://jlcpcb.com/black-friday-2024/?from=PhilsLab (AD: This video includes a paid promotion for JLCPCB and Altium.)
Firmware tutorial on how to combine custom STM32-based hardware with the USB HID (human interface device) class to emulate a USB joystick or gamepad.
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
Altium 365 Free Trial: https://www.altium365.com/yt/philslab (AD)
[GIT]
https://www.github.com/pms67
[SOCIAL]
https://www.instagram.com/philslabyt
[LINKS]
Design Files: https://github.com/pms67/QueenB
Interactive Designs: https://pms67.github.io/
USB HID basics: https://en.wikipedia.org/wiki/USB_human_interface_device_class
USB HID: https://www.usb.org/hid
Introduction to HID report descriptors: https://docs.kernel.org/hid/hidintro.html
HID descriptor tool: https://usb.org/document-library/hid-descriptor-tool
Adafruit report descriptor guide: https://adafruit-playground.com/u/Gamblor21/pages/a-beginners-guide-to-writing-usb-hid-report-descriptors-by-a-beginner
Microsoft HID tools: https://github.com/microsoft/hidtools
Controller Tester: https://www.onlinemictest.com/controller-tester/
[TIMESTAMPS]
00:00 Intro
00:32 Design Files
01:11 JLCPCB (Ad)
02:01 Altium A365 Free Trial (Ad)
02:29 HID Intro
03:11 Hardware Overview & HID Use Cases
05:14 CubeIDE Basic Config & Pinout
08:11 Clock Configuration
08:58 ADC + DMA + Timer Set-Up
13:18 USB HID Middleware
15:36 ADC Code
17:44 ADC Test
18:52 GPIO Reads
20:09 usbd_hid.h/.c
24:04 Report Descriptor
30:08 Fill & Send Report
33:30 Test
35:24 Outro STM32 USB HID Custom Joystick/Gamepad - Phils Lab #149](https://i.ytimg.com/vi/umkD1piCNvc/mqdefault.jpg)
![(Sponsored) Mixed-Signal Hardware/PCB Design Tips - Phils Lab #88
Tips to improve performance when designing mixed-signal (analogue + digital) hardware and PCBs. Demonstrated in Altium Designer via a custom digital guitar effects processing platform. PCBs by PCBWay https://www.pcbway.com
(AD: This video includes a paid promotion for PCBWay and Altium).
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
Advanced Hardware Design Course Survey
https://forms.gle/X4jwvtZeJ1jTXh7r9
[GIT]
https://github.com/pms67
[TIMESTAMPS]
00:00 Introduction
00:33 Altium Designer Free Trial (Ad)
01:14 PCBWay (Ad)
02:09 Hardware Overview
03:30 Tip #1 - Grounding
06:18 Tip #2 - Separation and Placement
09:23 Tip #3 - Crossing Domains (Analogue - Digital)
11:55 Tip #4 - Power Supplies
15:09 Tip #5 - Component Selection
17:48 Outro (Sponsored) Mixed-Signal Hardware/PCB Design Tips - Phils Lab #88](https://i.ytimg.com/vi/v6fTa6LRJLI/mqdefault.jpg)
![Class D Audio Amplifier Hardware Design - Phils Lab #125
Class D audio amplifier basics, part selection, schematic and PCB design, and test. PCBs by PCBWay https://www.pcbway.com (AD: This video includes a paid promotion for PCBWay).
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[LINKS]
Afrotechmods Class D video: https://www.youtube.com/watch?v=O1UagNkcxi4
Power amplifier classes: https://en.wikipedia.org/wiki/Power_amplifier_classes
Inductor selection guide: https://www.ti.com/lit/an/sloa242a/sloa242a.pdf?ts=1699515133285&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252Fde-de%252FTAS6421-Q1
TPA3116D2 IC: https://www.ti.com/product/TPA3116D2
[TIMESTAMPS]
00:00 Intro
00:27 PCBWay and Git Repo (Ad)
01:01 Class D Amplifier Basics
05:25 IC Choice
07:36 Schematic
16:18 PCB
22:51 No Load Test
25:18 Guitar Demo
26:57 Outro Class D Audio Amplifier Hardware Design - Phils Lab #125](https://i.ytimg.com/vi/wCYNTt5krDM/mqdefault.jpg)
![Delay-Based Audio FX Software Implementation (DSP with STM32) - Phils Lab #140
Software implementation of a digital delay effect in C on a real-time STM32-based embedded DSP system. Theory of IIR comb filters, delay parameters, and modelling. PCBs by PCBWay https://www.pcbway.com (AD: This video includes a paid promotion for PCBWay.)
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://www.github.com/pms67
[SOCIAL]
https://www.instagram.com/philslabyt
[LINKS]
Comb Filter & Delay Lines: https://youtu.be/YpbTlZAOmyA
Z-Transform: https://youtu.be/5Z3KAKs-EZs
[TIMESTAMPS]
00:00 Introduction
01:07 PCBWay (Ad)
01:44 Hardware
04:52 Delay Line
06:58 Delay Block Diagram and Parameters
09:34 Advanced Delay Structures
11:14 Practical Considerations
14:30 C Implementation
22:30 Test Set-Up
22:52 Frequency Response Measurement
24:54 Demo with Guitar
27:35 Outro Delay-Based Audio FX Software Implementation (DSP with STM32) - Phils Lab #140](https://i.ytimg.com/vi/wd6I_wrGK_k/mqdefault.jpg)
![RC Low-Pass Filter Deep-Dive - Phils Lab #118
Passive RC low-pass filter basics, theory, real-world tests and demos, practical considerations, and examples both in the time- and frequency-domain. PCBs by PCBWay https://www.pcbway.com (AD: This video includes a paid promotion for PCBWay and Altium).
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[LINKS]
Capacitor Basics: https://www.youtube.com/watch?v=kUruN6WBgSw
ST App Note: https://www.st.com/resource/en/application_note/an2834-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf
SAR ADC: https://www.analog.com/en/analog-dialogue/articles/front-end-amp-and-rc-filter-design.html
[TIMESTAMPS]
00:00 Intro
01:12 Altium (Ad)
01:52 PCBWay (Ad)
02:19 Basics
07:00 Time-Domain Analysis
11:48 Test Set-Up
12:14 Time-Domain Demo
14:41 Frequency-Domain Analysis
16:56 Bode Plots
19:53 Frequency-Domain Demo
22:29 Source & Load Effects
25:41 Loading Demo
26:59 Cascading Stages
27:53 Component Non-Idealities
32:08 Non-Idealities Demo
34:21 Further Practical Considerations
39:53 Practical Examples
45:29 Outro RC Low-Pass Filter Deep-Dive - Phils Lab #118](https://i.ytimg.com/vi/xAuBqK4QsCc/mqdefault.jpg)

![PCB Traces 101 - Phils Lab #112
Basics and guidelines for PCB traces (tracks), including geometry/materials, sizing (power and signal), thermals, current-handling, controlled impedance, delay, and more. (AD: This video includes a paid promotion for Altium).
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[LINKS]
IPC-2221 calculator: https://www.4pcb.com/trace-width-calculator.html
Trace inductance calculator: https://spok.ca/index.php/resources/tools/106-traceindcalc
Differential pairs video: https://www.youtube.com/watch?v=xwrdvhm4vgw
Controlled impedance: https://www.protoexpress.com/blog/controlled-impedance-really-matters/
PCB design for EMI/SI video: https://www.youtube.com/watch?v=VtzPL8wQ8-E
Critical length calculator: https://www.protoexpress.com/tools/bandwidth-rise-time-and-critical-length-calculator/
Kicad controlled impedance video: https://www.youtube.com/watch?v=0fteCxn5XXA
Stackup/controlled impedance video: https://www.youtube.com/watch?v=p3w22veWMbk
[TIMESTAMPS]
00:00 Introduction
00:43 Altium Designer Free Trial (Ad)
01:09 Basics
03:51 Geometry
07:07 Geometry/Material Cost
07:49 Resistance, Inductance, Capacitance
11:33 Power Delivery
12:59 IPC-2221 Calculator
14:09 PDN Inductance
15:31 Inductance Calculator
16:43 Power Planes
17:09 Differential Pairs
17:38 Controlled Impedance
18:54 Critical Length Calculator
20:05 Contr. Imp. Configs & Further Resources
21:30 Propagation Delays & Delay Matching
23:01 Practical Guidelines
29:55 Outro PCB Traces 101 - Phils Lab #112](https://i.ytimg.com/vi/xEVntmYLARw/mqdefault.jpg)
