Questions relating to Inter-IC Sound, typically on microcontrollers and the Raspberry Pi.
Questions tagged [i2s]
50 questions
1
vote
0 answers
STM32 I2S with DMA playing slow
I want to implement a WAV/MP3 player(now let's just say WAV) with an STM32, it reads it from the SD with FATFS, then transfer it to the I2S buffer with DMA.
The problem is that when I plug my speakers, it plays the song at the correct pitch(tone)…

Victor Casado
- 11
- 3
1
vote
1 answer
Distortion in ESP32 I2S audio playback with external DAC for sample frequency higher than 20kSps
Hardware: ESP32 DevKitV1, PCM5102 breakout board, SD-card adapter.
Software: Arduino framework.
For some time I am struggling with audio playback using a I2S DAC external to ESP32.
The problem is I can only play without distortion for low sample…

user13187525
- 13
- 1
- 3
0
votes
0 answers
How to organise data flow for DSP application (using I2S)?
I am creating a DSP application using the RP2040, an I2S ADC and an I2S DAC.
One of the primary requirements is low latency, the second is efficient usage of the CPUs to calculate the actual DSP algorithm.
I2S input and output is implemented using…
0
votes
1 answer
how to config I2S master clock in STM32F730?
I want to change MCLK fs rates for 44100 sample rate audio on STM32F703.
Right now my clock in STM32 is 207.36MHz
I2S PLL values: N=147, R=2, Q=2 and PLLI2SDivQ=10
I2S clock is supplied with PLLI2SR which clock is 112.896.
I have changed PLLI2SDivQ…

Nima Aghayan
- 109
- 1
- 7
0
votes
0 answers
Kernel panic when writing to I2S register
I am writing a very simple test driver (as a Linux kernel module) for an I2S peripheral for a Jetson AGX Xavier kit. Essentially, my test driver code performs an ioremap on the I2S base physical address, and tries to read a specific offset as…

Peterson Yuhala
- 26
- 1
- 4
0
votes
0 answers
Im trying to make a jukebox with I2S and ESP32 but when I try to play music from a folder instead of a specific song it doesn't work
Im trying to make a jukebox with an esp32 using I2S. When the button is pressed the music should play. I can already get 1 song playing but once I try to make songs play from a folder it doesnt seem to work for me. The code below is the working code…
0
votes
0 answers
How to generating Sine wave in MAX98357A with ESP32?
I am trying to generate sine wave through I2S (MAX98357A) . It showing sine wave but it is distorted as in the image. Below is my code
#include
#include
#define I2S_SAMPLE_RATE (44100)
#define I2S_SAMPLE_BITS 16
#define…

Arun K
- 61
- 6
0
votes
0 answers
I2s full-duplex communication with esp32 and arduino
I'm trying to do a kind of audio interface using the INMP441 microphone as input, and the MCU-5102 as output device. The idea is to do it in Real Time, with the perform of simple convolutions to make effects on output signal. But I can't do at even…
0
votes
1 answer
How to play pcm through I2S?
I have ESP32-WROOM-32D board and MAX98357A I2S board which i need to play 8Khz 8bit PCM audio. The pcm audio buffer is declared as a constant buffer in header wavedata.h like below
const uint8_t rawData[49428] = {0x52, 0x49, 0x46,…

Arun K
- 61
- 6
0
votes
0 answers
PCM3060 driver does not recognize i2s data from STM32
I am working on a PCM3060 driver and will share some of the initialization I am doing here. So this narrated post can help others looking on the internet perhaps.
Before getting to code, I do not have any input or output circuit. I am just…

Emir
- 1
0
votes
1 answer
Configure SAI peripheral on STM32H7
I'm trying to play a sound, on a single speaker (mono), from a .wav file in SD card using a STM32H7 controller and freertos environment.
I currently managed to generate sound but it is very dirty and jerky.
I'd like to show the parsed header content…

Raphlouk
- 1
- 1
0
votes
0 answers
Problem play audio file on STM32F7 with SAI
The task of this project is to read a .wav file from an external flash drive and play it, and you can listen with normal headphones.
We use an STM32 (STM32F769IITx) microcontroller with a WM8985, for the transmission we use an SAI with the DMA.
This…

Luca
- 1
0
votes
0 answers
ESP32 - Reading and playing back audio samples realtime (with I2S)
For a school project, I would like to get a bass-amplifier up-and-running with an ESP32. My idea for doing this is as follows:
I want to sample audio from AUX via I2S reading. Then I want to filter out the bass frequencies via a low-pass-filter.…

Thom Crielaard
- 81
- 1
- 6
0
votes
0 answers
Mp3 player with Esp32 using SD Card and MAX98357A module
I am working on a project, and I want to play some music notes out from an SD card to an I2S amplifier(MAX98357A) using ESP32. But I did not find anything useful. Just what I want to do is I have twelve(12) buttons and I want each button press to…

Waqas Ahmad
- 23
- 4
0
votes
1 answer
Is this PCM1860 connected ok for hardware control mode?
I connected the PCM1860 ADC in this manner. I expect data on my oscilloscope on the digital output (pin 18). I have so far only seen square wave on the clock pins but nothing on the data pin. Is this connected ok?

Don P
- 519
- 6
- 12