Uploaded March 2021 | Updated November 2026, 3 hours ago
Modelling analog filters, discretisation, and implementation of the digitally-equivalent filters on a real-time, embedded system (STM32). Includes theory, DSP, firmware, and results.
(AD: This video includes a paid promotion for JLCPCB.)
Git: github.com/pms67/LittleBrain-STM32F4-Sensorboard
30k Q&A survey: https://forms.gle/jX3MLiZbUHhss6DMA
Visit jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs. (AD)
If you're enjoying my content, please consider becoming a patron:
patreon.com/phils94
[TIMESTAMPS]
00:00 Introduction
00:38 JLCPCB and LittleBrain PCB (Ad)
01:19 30k Subs Survey
01:37 Overview
02:48 Digital Filtering Advantages
03:13 Going From Analog to Digital
03:39 Modelling Analog Filters
04:17 Example: RC Low-Pass Filter
05:12 Discretising the Filter
05:54 Backward Euler Method
06:27 RC Low-Pass Filter Difference Equation
07:45 Practical Tips (-3dB, Sampling Period)
08:54 Filter Header File
09:50 Filter Source File
12:03 Main Source File Modifications
13:40 Implementation Demo
ID: QIBvbJtYjWuHiTG0uCoK
Modelling analog filters, discretisation, and implementation of the digitally-equivalent filters on a real-time, embedded system (STM32). Includes theory, DSP, firmware, and results.
(AD: This video includes a paid promotion for JLCPCB.)
Git: github.com/pms67/LittleBrain-STM32F4-Sensorboard
30k Q&A survey: https://forms.gle/jX3MLiZbUHhss6DMA
Visit jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs. (AD)
If you're enjoying my content, please consider becoming a patron:
patreon.com/phils94
[TIMESTAMPS]
00:00 Introduction
00:38 JLCPCB and LittleBrain PCB (Ad)
01:19 30k Subs Survey
01:37 Overview
02:48 Digital Filtering Advantages
03:13 Going From Analog to Digital
03:39 Modelling Analog Filters
04:17 Example: RC Low-Pass Filter
05:12 Discretising the Filter
05:54 Backward Euler Method
06:27 RC Low-Pass Filter Difference Equation
07:45 Practical Tips (-3dB, Sampling Period)
08:54 Filter Header File
09:50 Filter Source File
12:03 Main Source File Modifications
13:40 Implementation Demo
ID: QIBvbJtYjWuHiTG0uCoK

![KiCad 9 Hardware Design Tutorial (TI MSPM0) (1/2 Schematic) - Phils Lab #165
Step-by-step schematic and PCB design tutorial for Texas Instruments MSPM0-based hardware (USB, power, MCU, peripherals) in KiCad 9. (Part 1 of 2: Schematic)
Special Offer: Get $360 coupons for JLCPCB Layout Service: https://jlcpcb.com/features/layout?from=PhilsLab
[LINKS]
KiCad: https://www.kicad.org/
CCStudio: https://www.ti.com/tool/CCSTUDIO
MCU Part Page: https://www.ti.com/product/MSPM0G3507/part-details/MSPM0G3507SPTR
AN2867: https://www.st.com/resource/en/application_note/an2867-oscillator-design-guide-for-stm8afals-stm32-mcus-and-mpus-stmicroelectronics.pdf
[TIMESTAMPS]
00:00 Introduction
01:38 KiCad 9
02:14 MCU Choice
03:24 Code Composer Studio (CCStudio)
04:13 JLCPCB (AD)
05:26 Project and Schematic Creation
07:08 Adding Components
08:29 Creating Schematic Symbols
24:09 Adding MCU to Schematic
25:45 MCU Power & GND Connections
34:44 Analog VREF
39:31 Net Labels
41:19 NRST
46:02 Oscillators
57:00 USB Connector & ESD Protection
01:04:08 Power
01:11:50 USB Continued...
01:14:46 Debug Interface
01:20:56 Pinout Planning/Assignment
01:27:06 USB-UART IC
01:35:35 I2C Peripheral (Accelerometer)
01:41:35 Schematic Clean-Up
01:45:51 Net Classes & Colours
01:48:12 Electrical Rules Check (ERC)
01:51:18 Footprint Assignment Tool
01:52:07 Mounting Holes & Fiducial Markers
01:54:54 Outro/Next Video KiCad 9 Hardware Design Tutorial (TI MSPM0) (1/2 Schematic) - Phils Lab #165](https://i.ytimg.com/vi/O-zNn5k5Bn4/mqdefault.jpg)
![Embedded Linux + FPGA/SoC (Zynq Part 5) - Phils Lab #100
PetaLinux installation, build, and boot for an AMD/Xilinx Zynq SoC (System-on-Chip). Full start-to-finish tutorial, including embedded linux run, eMMC test, ethernet test, and more. 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
[LINKS]
Instagram: https://instagram.com/philslabyt
Petalinux: https://www.xilinx.com/products/design-tools/embedded-software/petalinux-sdk.html
[TIMESTAMPS]
00:00 Introduction
01:47 PCBWay (Ad)
02:24 Altium Designer Free Trial (Ad)
02:54 PetaLinux Overview
03:54 Virtual Machine + Ubuntu
04:37 PetaLinux Dependencies
05:25 PetaLinux Tools Install
06:06 Sourcing settings.sh
06:30 Hardware File (XSA)
08:48 Create New Project
09:55 Configure Using XSA File
11:52 Configure Kernel
13:03 Configure U-Boot
13:48 Configure rootfs
14:35 Build PetaLinux
15:09 Install Xilinx Cable Drivers
15:56 Hardware Connection
16:22 Console (Putty) Set-Up
17:43 Booting PetaLinux via JTAG
18:09 U-Boot Start-Up
18:38 PetaLinux Start-Up
19:49 Log-In & Basics
20:29 Ethernet (ping, ifconfig)
21:09 eMMC (partioning)
22:21 User apps (peek/poke)
22:41 Summary
23:30 Outro Embedded Linux + FPGA/SoC (Zynq Part 5) - Phils Lab #100](https://i.ytimg.com/vi/OfozFBfvWeY/mqdefault.jpg)
![STM32 PCB Design - Complete Walkthrough - Altium Designer & JLCPCB - Phils Lab #41
(AD: This video includes a paid promotion for JLCPCB and Altium.)
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
Entire step-by-step PCB design process going through the schematic, layout, and routing of a barebones STM32F4-based PCB including USB, a sensor, GPIO header, and small power supply circuitry in Altium Designer. All the way from schematic creation, through to four-layer PCB layout and routing, as well as sending it off for manufacture and assembly via JLCPCB.
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
PCBA from $0 (Free Setup, Free Stencil): https://jlcpcb.com/RHS (AD)
Patreon: https://www.patreon.com/phils94
[LINKS]
Git: https://github.com/pms67
KiCad Version: https://youtu.be/C7-8nUU6e3E
Altium Symbol and Footprint Creation: https://youtu.be/DVErHmX-qyw
[TIMESTAMPS]
00:00 Introduction
01:12 JLCPCB (Ad)
01:35 Altium Designer Free Trial (Ad)
01:55 Part Selection
(SCHEMATIC)
05:47 Project Creation, Schematic Creation, Libraries
09:41 STM32 Circuitry (STM32F411)
29:36 Sensor Circuitry (MPU-6050)
40:49 USB and Power Supply Circuitry
52:33 STM32 Pinout with STM32CubeIDE
1:05:31 SWD Circuitry
1:10:23 Annotating Schematic
1:11:30 Cleaning Up Schematic
1:15:03 Electrical Rules Check (ERC)
(PCB)
1:16:17 PCB Creation
1:17:10 Design Rules and Manufacturer Capabilities
1:20:00 Layer Stackup and Controlled Impedance Traces
1:24:25 Rough Layout and Component Placement
1:25:36 STM32 Layout
1:41:25 Sensor Layout
1:45:05 USB and Power Supply Layout
1:49:25 Mounting Holes
1:51:20 Board Outline
1:53:41 Refining Component Layout
1:55:19 Routing
2:16:39 Internal Layers (Ground Planes)
2:19:20 Ground Vias
2:21:15 Power Routing (+3V3)
2:30:39 Design Rule Check (DRC)
2:33:36 Silkscreen (Text and Logo)
2:35:49 Tooling Holes
(Production)
2:36:40 Gerber Files
2:41:40 Footprint Position (Pick and Place) File
2:42:59 Bill of Materials (BOM) File
2:44:50 Ordering at JLCPCB
ID: QIBvbJtYjWuHiTG0uCoK STM32 PCB Design - Complete Walkthrough - Altium Designer & JLCPCB - Phils Lab #41](https://i.ytimg.com/vi/PMEpQZ90f34/mqdefault.jpg)
![How To Get Your PCB Manufactured & Assembled - Phils Lab #94
Data needed to get a PCB manufactured and assembled, how to generate that information and those files. PCBs by PCBWay https://www.pcbway.com
(AD: This video includes a paid promotion for PCBWay and Altium).
Gerber files, stack-up/controlled impedance information, bill of materials (BOM), pick and place file (CPL), as well as assembly drawings.
Including walkthrough of the PCB ordering process.
[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
[LINKS]
Instagram: https://instagram.com/philslabyt
[TIMESTAMPS]
00:00 Introduction
01:00 Altium Designer Free Trial (Ad)
01:28 PCBWay (Ad)
01:47 Example PCBs
02:28 Checks
03:07 Make Sure You Have Inventory Stock
03:47 Choice & Capabilities of Manufacturer/Assembler
07:29 Gerber Files
10:49 Checking Gerber Files (CAM Viewer)
12:54 Additional Manufacturing Info (e.g. Controlled Impedance, Stack-Up)
18:17 Manufacturer Feedback (Adjusted Trace Widths, Adjusted Stack-Up)
19:40 Bill of Materials (BOM)
22:37 Pick and Place File (CPL)
24:22 Eurocircuits Assembly Checker Tool
25:38 Assembly Drawings
28:51 Create Assembly Drawings with Altium Designer Draftsman
31:45 Placing an Order with Assembly
34:28 Outro How To Get Your PCB Manufactured & Assembled - Phils Lab #94](https://i.ytimg.com/vi/PfGJDiz7-TQ/mqdefault.jpg)
![KiCad 7 STM32 Bluetooth Hardware Design (2/2 PCB) - Phils Lab #128
Step-by-step schematic and PCB design tutorial for STM32WB-based hardware (USB, RF, power) in KiCad 7. (Part 2 of 2) (Part 1: https://youtu.be/nkHFoxe0mrU) 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]
Instagram: https://www.instagram.com/philslabyt
[LINKS]
KiCad 7: https://www.kicad.org/
STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html
MCU Datasheet: https://www.st.com/resource/en/datasheet/stm32wb55ce.pdf
AN5165: https://www.st.com/resource/en/application_note/an5165-how-to-develop-rf-hardware-using-stm32wb-microcontrollers-stmicroelectronics.pdf
AN2867: https://www.st.com/resource/en/application_note/an2867-oscillator-design-guide-for-stm8afals-stm32-mcus-and-mpus-stmicroelectronics.pdf
Hardware Design Playlist: https://www.youtube.com/playlist?list=PLXSyc11qLa1YhVCZ5xWPuPsE5MkgEy5TF
Controlled Impedance: https://www.youtube.com/watch?v=0fteCxn5XXA
PCB Stack-Up & Build-Up: https://www.youtube.com/watch?v=QAOEtfvCaMw
Manufacturing & Assembly Files: https://www.youtube.com/watch?v=PfGJDiz7-TQ
[TIMESTAMPS]
00:00 Introduction
01:03 PCBWay (Ad)
01:42 Courses
02:19 PCB Set-Up
08:14 Design Rules
12:47 Trace and Vias Sizes
13:53 Controlled Impedance
19:15 Importing Components
20:19 Adding Missing 3D Models
24:53 Rats Nets and Net Colours
30:16 Initial Layout
36:16 Tag-Connect and USB Layout (Initial)
39:31 Mechanical Constraints
41:30 RF Layout (Initial)
42:36 Crystal Layout (Initial)
44:13 SMPS Layout (Initial)
45:28 UART Layout (Initial)
46:51 Layout Fine-Tuning
52:46 Decoupling Caps Layout
01:05:57 Misc. Layout
01:21:15 Board Outline
01:26:15 Routing Introduction
01:28:13 Ground Planes
01:31:38 Mounting Holes & Fiducial Markers
01:37:51 Via Placement
01:48:30 RF Routing
01:51:20 Crystal Routing
01:54:40 SMPS Routing
01:58:30 SWD Routing
02:00:21 USB Routing
02:05:29 Misc. Routing (NRST, BOOT0, UART, LED)
02:15:04 Power & Ground Routing
02:25:57 Stitching
02:28:08 Clean-Up (Silkscreen, Teardrops, Non-Functional Pads)
02:33:12 Design Rule Check (DRC)
02:36:03 Further Checks
02:38:11 Bill of Materials (BoM) and Pick n Place (CPL)
02:41:23 Gerber
02:43:54 Additional Documents
02:49:45 Ordering
02:55:56 Outro KiCad 7 STM32 Bluetooth Hardware Design (2/2 PCB) - Phils Lab #128](https://i.ytimg.com/vi/PlXd3lLZ4vc/mqdefault.jpg)
![Series Termination Resistor Selection (Practical Demo) - Phils Lab #155
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 select an appropriate series termination resistor based on oscilloscope measurements for digital systems. Including discussion on drive strength setting and practical tips.
[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]
Series Termination Basics Video: https://www.youtube.com/watch?v=nYvZ791-VZM
Rise & Fall Times Video: https://www.youtube.com/watch?v=UrnRPwrctRE
Output Impedance From IBIS: https://blog.lamsimenterprises.com/2010/12/22/drivers-output-impedance-from-ibis/
[TIMESTAMPS]
00:00 Intro
02:49 JLCPCB (Ad)
03:54 Altium 365 (Ad)
05:00 Hardware & Measurement Set-Up
07:30 Firmware Set-Up
09:25 Varying Drive Strength
09:41 0R (Very-High Drive Strength)
11:16 0R (Low Drive Strength)
12:01 0R (Medium Drive Strength)
13:19 25R
14:01 33R
14:23 50R
14:55 100R
15:12 Summary
16:29 Driver Output Impedance
18:41 Outro Series Termination Resistor Selection (Practical Demo) - Phils Lab #155](https://i.ytimg.com/vi/Poj4V9u9bMg/mqdefault.jpg)
![PCB Stack-Up and Build-Up - Phils Lab #56
What a PCB is made of (build-up), determining a suitable build-up, and manufacturer/manufacturing considerations. Second part of video discusses how to choose a suitable stack-up for your PCB design (i.e. what sequence of layers you should assign (GND/PWR/SIG)) for signal integrity, EMI, etc.
(AD: This video contains a paid promotion for Altium.)
[SUPPORT]
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
[LINKS]
GitHub: https://github.com/pms67
Rick Hartley Video: https://www.youtube.com/watch?v=ySuUZEjARPY
[TIMESTAMPS]
00:00 Intro
00:06 Altium Designer Free Trial (Ad)
(Build-Up)
00:27 Build-Up Basics
01:58 Layer Count
02:50 Prepreg
03:40 Core
04:18 Copper Foil
05:21 Manufacturability
06:36 Example Manufacturer Build-Up
07:23 Example Controlled Impedance Suggestion
07:49 Altium Designer Layer Stack Manager & Impedance Set-Up
09:13 PCB Manufacturer Build-Up Section
(Stack-Up)
09:56 Stack-Up Basics
10:57 Layer Types
12:09 Golden Rules for Determining Stack-Up
13:18 Goal: Prevent Fields from Spreading
13:58 Adjacent PWR + GND Layers
14:34 Improving a 4-Layer Stack-Up
17:05 Return/Transfer Vias
17:49 Additional Stack-Up Tips
18:55 Good Multi-Layer Stack-Ups
19:51 Rick Hartley Video
ID: QIBvbJtYjWuHiTG0uCoK PCB Stack-Up and Build-Up - Phils Lab #56](https://i.ytimg.com/vi/QAOEtfvCaMw/mqdefault.jpg)
![(Sponsored) IIR Filters - Theory and Implementation (STM32) - Phils Lab #32
Tutorial on IIR (Infinite Impulse Response) digital filters, including digital filtering overview, IIR filter theory, FIR vs IIR, Z-transform design/analysis, design using analogue prototypes, and finally an implementation on an embedded system (STM32).
(AD: This video includes a paid promotion for JLCPCB and Altium.)
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Visit https://jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs. (AD)
Patreon: https://www.patreon.com/phils94
Git: https://github.com/pms67
[TIMESTAMPS]
00:00 Introduction
00:19 JLCPCB and LittleBrain Files (Ad)
00:54 Altium Designer Free Trial (Ad)
01:26 Content
01:44 Digital Filter Basics
04:13 FIR vs IIR
05:41 IIR Filter Theory
10:15 IIR Filter Design Example 1 (Z-Transform)
13:54 IIR Filter Design Example 2 (Analogue Prototype)
15:41 Implementation (Header and Source Files)
17:47 Implementation (main.c)
18:48 Demonstration
ID: QIBvbJtYjWuHiTG0uCoK (Sponsored) IIR Filters - Theory and Implementation (STM32) - Phils Lab #32](https://i.ytimg.com/vi/QRMe02kzVkA/mqdefault.jpg)
![STM32 + LVGL Firmware Tutorial - Phils Lab #147
Get your JLCPCB invitation for Electronica 2024 and enter a draw to win a free flight ticket and exciting gifts: https://jlcpcb.com/Electronica/?from=PhilsLab (AD: This video includes a paid promotion for JLCPCB.)
How to integrate LVGL graphics libraries on a custom, STM32-based hardware platform. Including installation, configuration, driver linking, and UI creation basics.
[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]
STM32 + LCD (FMC): https://youtu.be/RWujOLXBFrc
LVGL: https://lvgl.io/
LVGL Docs: https://docs.lvgl.io/master/intro/introduction.html
EEZ Studio: https://www.envox.eu/studio/studio-introduction/
[TIMESTAMPS]
00:00 Intro
00:37 Previous Video
01:23 LVGL Documentation
02:29 JLCPCB (Ad)
03:30 Adding LVGL to Project
05:29 LVGL Configuration
07:34 Resolving Include Errors
08:53 Tick Interface
10:41 Display Interface
11:54 Draw Buffers
14:37 Display Buffer Flushing
18:47 Flush Callback
19:28 Timer Handler
20:42 UI Generation
23:46 Adding UI to Project
25:46 UI Demo #1
26:01 Modifying UI Elements in Firmware
28:13 UI Demo #2
28:34 Outro STM32 + LVGL Firmware Tutorial - Phils Lab #147](https://i.ytimg.com/vi/QYaGhSo5Uaw/mqdefault.jpg)
