Estimating altitude (relative) with pressure measurements via a barometric pressure sensor. All the way from theory with equations, to implementation on custom hardware and custom firmware written for an STM32 microcontroller. Utilising an I2C/SPI-based absolute pressure sensor (SPL06-001), showing how the driver code was written. Including basics on simple digital IIR low-pass filters.
Mixed-signal hardware design course:
[SUPPORT]
Free trial of Altium Designer:
PCBA from $0 (Free Setup, Free Stencil):
Tag-Connect:
Patreon:
[LINKS]
GitHub:
[TIMESTAMPS]
00:00 Introduction
00:11 Altium Designer Free Trial
00:34 JLCPCB & Design Files
01:06 Altitude from Pressure
02:10 Measuring Pressure
03:16 Calculations
04:15 Hydrostatic Method
05:17 Filtering Measurements
06:39 1st Order IIR Filter
08:05 Hardware Overview
09:11 Tag-Connect Debug Header/Probe
09:51 Pressure Sensor Datasheet (SPL06-001)
10:54 STM32CubeIDE Set-Up
12:04 Implementation (main.c)
16:31 Sensor Driver (SPL06.c/SPL06.h)
17:36 Initial Interrupt/Firmware Test
19:50 Pressure (Raw and Filtered) Measurement Test
23:30 Altitude Estimation Test
ID: QIBvbJtYjWuHiTG0uCoK