DSP Labs
  • INTRODUCTION
  • BILL OF MATERIALS
  • 1. OVERVIEW AND INSTALLATION
    • 1.1 Hardware
    • 1.2 Software
      • CubeMX
      • SW4STM32
      • Eclipse tips
    • 1.3 First project!
  • 2. AUDIO PASSTHROUGH
    • 2.1 Audio I/O theory
      • Microphone
      • Stereo decoder
    • 2.2 Updating peripherals
    • 2.3 Wiring audio I/O
    • 2.4 Coding passthrough
  • 3. ALIEN VOICE EFFECT
    • 3.1 How it works
    • 3.2 Real-time DSP tips
    • 3.3 Real-time with Python
    • 3.4 C implementation
  • 4. DIGITAL FILTER DESIGN
    • 4.1 Design approaches
    • 4.2 Real-time implementation
  • 5. GRANULAR SYNTHESIS
    • 5.1 How it works
    • 5.2 Implementation
  • 6. LINEAR PREDICTION
    • 6.1 Theory behind LPC
    • 6.2 Implementation
  • 7. DFT PITCH SHIFTING
    • 7.1 How it works
    • 7.2 Python implementation
Powered by GitBook
On this page
  • Microcontroller
  • Microphone
  • DAC + Audio Jack

Was this helpful?

  1. 1. OVERVIEW AND INSTALLATION

1.1 Hardware

Previous1. OVERVIEW AND INSTALLATIONNext1.2 Software

Last updated 6 years ago

Was this helpful?

In this section, we introduce the different hardware components that will be used in our lab exercises:

Both the microphone and the DAC will rely on the I2S (Inter-IC Sound) bus specification for audio transfer. This is a 3-line serial bus consisting of a data line for two time-multiplexed channels, a word select line, and a clock line. More information about the I2S bus specification can be found .

Microcontroller

The board we will be using comes from the STM32 Nucleo-64 family. In particular, we will be using the STM32 Nucleo-64 development board with the . You can find more information about this family of boards by reading the .

Microphone

DAC + Audio Jack

Figure: STM32 Nucleo development board. .

The microphone part we will be using is the by Adafruit. We describe the component in more detail in the , as we build a passthrough (passing the microphone input directly to the output), which is the "hello world" equivalent for audio.

Figure: Adafruit I2S MEMS Microphone Breakout. .

The microphone we are using measures an analog (continuous in time and amplitude) signal and returns a digital (discrete in time and amplitude) signal, which can be further processed by our microcontroller. In order to playback or listen to this digital signal, it is necessary to convert it back to an analog signal; this can be done with a DAC (Digital-to-Analog Converter). We will be using Adafruit's , which contains the DAC, an audio jack for connecting headphones, and the necessary additional components. We will describe the DAC in more detail as we build a passthrough in the .

Figure: Adafruit I2S Stereo Decoder - UDA1334A Breakout. .

Picture source
I2S MEMS Microphone Breakout
following chapter
Picture source
I2S Stereo Decoder Breakout
following chapter
Picture source
here
STM32F072RB microcontroller unit
official documentation
Microcontroller
Microphone
DAC + audio jack