Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Embedded Audio Storage and Analysis: I2S, DMA, FFT, Spectrum Analysis, SD Card, FatFS, Recorder, Playback.
Introduction
Welcome(Same as Promo) (0:36)
Course Requirements
MUST READ: About the Course Structure
Understanding Audio Signals
Introduction to Audio Signals (3:08)
Analog and Digital Audio (2:19)
The Audio Cycle, Period and Frequency (2:01)
The I2S Protocol
Overview of the I2S Protocol (2:43)
Features of the I2S protocol (2:25)
Understanding the I2S Protocol (2:45)
Key Components of the I2S Bus (2:02)
How the I2S Protocol Works (3:38)
Differences between the I2C and I2S Protocols (1:54)
Understanding Left Justified and Right Justified Formats (2:35)
The I2S Device Roles (3:22)
Understanding Stereo Sound and Left /Right Channels (2:19)
Overview of the STM32 I2S Peripheral (1:25)
Source Code Download
Setting Up
Downloading CubeIDE (2:34)
Installing CubeIDE (2:38)
Getting the required documentation (7:41)
Getting the required package for bare-metal development (21:19)
Testing the project setup (15:54)
Developing Required Generic Drivers
Important information about this section
Programming : Enabling the Floating Point Unit (FPU) (18:00)
Programming : Developing a UART Driver - Analyzing the Documentation (11:35)
Programming : Developing a UART Driver - Listing out the steps (4:00)
Programming : Developing a UART Driver - Implementing the Init. function (22:13)
Programming : Developing a UART Driver - Implementing the Write function (5:39)
Programming : Developing a UART Driver - Testing the Driver (6:39)
Programming : Developing the System Timebase - Analyzing the Documentation (8:28)
Programming : Developing the System Timebase - Implementing the Init. function (9:52)
Programming : Developing the System Timebase - The rest of the functions (12:15)
Programming : Developing the System Timebase - Testing the Timebase (5:34)
Programming : BSP : Listing the out the Required Functions (7:55)
Programming : Writing the LED Driver (5:01)
Programming : Writing the PushButton Driver (4:00)
Programming : Testing the Board Support Package (3:35)
Programming : Analyzing the Documentation (5:21)
Programming : Listing out the steps for developing the ADC Driver (5:27)
Programming : Writing the ADC Initialization function (13:21)
Programming : Writing the ADC Read function (14:05)
Programming : Analyzing the Documentation for the SPI Driver (7:34)
Programming : Intializing the GPIO Pins for SPI (11:00)
Programming : Implementaing Structures for Configruation Parameters (15:29)
Programming : Configuring the Parameters (15:41)
Programming : Writing the SPI Initialization function (14:55)
Programming : Writing the SPI Transmit Function (Pt.1) (9:27)
Programming : Writing the SPI Transmit Function (Pt.2) (10:26)
Programming : Transmitting 16-bit Data (17:54)
Programming : Transmitting 8-bit Data (6:46)
Programming : Receiving Data (11:05)
Programming : Testing the SPI Driver (15:47)
Increasing the System Frequency
Programming: Setting Up the F407 Project (12:39)
Programming: Listing out the Steps (4:23)
Programming: Analyzing the System Clock Tree (8:48)
Programming: Increasing the System Speed(Pt.1) (4:49)
Programming: Increasing the System Speed(Pt.2) (15:20)
Programming: Increasing the System Speed(Pt.3) (7:54)
Developing the Bare-Metal I2S Polling Driver
Programming: Analyzing the MCU's I2S Modules and Pins (9:17)
Programming: Implementing the i2s3_gpio_init_function( ) (4:31)
Programming: Configuring the I2S Parameters(Pt.1) (7:59)
Programming: Configuring the I2S Parameters(Pt.2) (2:27)
Programmin Implementing the I2S Transmit Function (3:05)
Programming: Troubleshooting (1:06)
Programming: Testing the I2S Transmit Driver (12:46)
Spectrum Analysis with Fast Fourier Transform(FFT)
Introduction to the Section (1:29)
Getting the Right STM32 HAL Package (8:16)
Getting familiar with the Setup and HAL (36:08)
Downloading the Required Documentation (9:03)
Programming: Integrating STM32 HAL into the Audio Project (19:08)
Programming: Adding the Arm CMSIS-DSP Library (4:36)
Programming: Configuring the System Clock (5:00)
Programming: Overview of the Required I2S Configuration (3:25)
Programming: Identifying the Required I2S Pins (5:48)
Programming: Configuring the GPIO Pins for the I2S (5:03)
Programming: Configuring_the_i2s_parameters (2:48)
Programming: Configuring the DMA Streams for Full Duplex I2S Communication (10:04)
Programming: Enabling_the_DMA_Stream_Interrupts (2:02)
Programming: Creating the Spectrum Analyzer Files (2:20)
Programming: Defining the Required Macros (4:13)
Programming: Performing FFT on the Input Buffer (4:37)
Programming: Calculating the Magnitudes and Converting to dB (5:28)
Programming: Assigning Calculated Values to Frequency Bands (4:38)
Programming: Implementing the Transfer State Enumerator Type (3:05)
Programming: Implementing the DMA Interrupt Handlers and Callback Functions (9:58)
Programming: Initializing the FFT Handler and Starting the DMA (5:01)
Programming: Combining the Left and Right Channels and Computing the FFT (14:36)
Programming: Building and Debugging the Project (8:12)
IMPORTANT: Pmod Jumper
Programming: Testing the System (3:28)
Programming: Visualizing the Spectrum Analyzer (7:10)
Recording Audio Profiles to an SD Card
Programming: Integrating the FatFS Filesystem (6:54)
Programming: Integrating the SD Card Driver Files (3:22)
Programming: Testing the SD Card Integration (21:18)
Programming: The the Audio Profile Buffer (5:06)
Programming: Writing to the Audio Profile File (3:21)
Programming: Updating the Audio Profile File (1:48)
Programming: Testing the Audio Profile Capture System (11:50)
Playing Audio Files from an SD Card
Programming: Adjusting the I2S Audio Parameters (4:41)
Programming: Listing out the Steps for Parsing the Audio File (2:40)
Programming: Openning the Audio Fleaand Skipping the WAV Header (4:58)
Programming: Reading the Actual Audio Data (6:47)
Programming: Updating the Transfer State Variable (2:27)
Programming: Filling Up the Audio Buffer (7:53)
Programming: Loading the Audio Files onto the SD Card (2:01)
Programming: Testing the SD Card Audio Player (4:41)
Closing
Closing Remarks
Programming: Testing the I2S Transmit Driver
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock