The Simplest Digital Filter (STM32 Implementation) - Phils Lab #92 @PhilsLab
The Simplest Digital Filter (STM32 Implementation) - Phils Lab #92  @PhilsLab
Uploaded January 2023 | Updated November 2026, 3 hours ago
How to implement a simple digital filter (low-pass and high-pass exponential moving average (EMA)) on a real-time embedded system (STM32 + audio codec). Useful for noise reduction, removing DC offsets, and more in simple situations.
Discussion on filter basics, advantages & disadvantages, theory, implementation in C, and real-time time- and frequency-domain tests.

(AD: This video includes a paid promotion for Altium).

[SUPPORT]
Free trial of Altium Designer: altium.com/yt/philslab (AD)

Patreon: patreon.com/phils94

Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education

Advanced Hardware Design Course Survey
https://forms.gle/X4jwvtZeJ1jTXh7r9

[GIT]
github.com/pms67

[LINKS]
Instagram: instagram.com/philslabyt

[TIMESTAMPS]
00:00 Introduction

00:44 Altium Designer Free Trial (Ad)

01:15 What We'll Look At
01:47 EMA Filter Basics
03:40 Digital Filter Basics

05:03 Low-Pass Filter Theory
08:36 Filter Coefficient Effect on Frequency Response (Alpha)
09:57 Software Implementation in C (Low-Pass)
13:11 Low-Pass Filter Real-Time Test

16:39 High-Pass Filter Theory
18:32 Filter Coefficient Effect on Frequency Response (Beta)
19:11 Software Implementation in C (High-Pass)
20:23 High-Pass Filter Real-Time Test

23:04 Outro
The Simplest Digital Filter (STM32 Implementation) - Phils Lab #92Boost Converter PCB Design - Phils Lab #106Mixed-Signal Hardware Design Overview | Audio SoM | STM32 & Altium - Phils Lab #45Chat with Dave Jones from EEVblog (Part 1 of 2) - Phils Lab #52Killer Queen Guitar Solo with HarmoniesAudio EQ Software Implementation (STM32) - Phils Lab #89(Sponsored) Z-Transform - Practical Applications - Phils Lab #27Inductor Hardware Design Basics (+Measurement & Modelling) - Phils Lab #160Power Supply Rejection Ratio (PSRR) Basics & Measurement - Phils Lab #163(Sponsored) RF + MCU PCB Design Review - Phils Lab #76(Sponsored) Extended Kalman Filter Software Implementation - Sensor Fusion #4 - Phils Lab #73Course Release - Mixed-Signal Hardware Design with KiCad - Phils Lab #44
Phil’s Lab |

The Simplest Digital Filter (STM32 Implementation) - Phil's Lab #92

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER