Skip to main content

Questions tagged [i2s]

Despite the name, it is unrelated to the bidirectional I²C bus. I²S is a media-specific protocol which uses at least three signals: Bit CLK, Word CLK, and at least one data line.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

STM32 I2S Callback and Data Width Clarification

I am using the STM32F407VG and PmodI2S2 to transfer 24-bit audio. For the most part I have followed this tutorial. So far everything works and I have audio throughput and the ability to manipulate it. ...
Luke Galea's user avatar
2 votes
1 answer
79 views

Is this extra cycle before the MSB a common thing with serial bit timing?

The products that this is specifically around are the Pmod I2S2 which uses the Cirrus CS5343 ADC and CS4344 DAC. It is plugged into a STM32F407G-DISC1. Now I am having some trouble figuring out ...
robert bristow-johnson's user avatar
0 votes
0 answers
50 views

How do I convert an I2S/TDM signal to a CAN signal

I'm getting output from the Analog Devices ADXL317 and I want to convert the output signal to a CAN signal. I don't think many CAN transceivers can take input from the I2S bus, so I need to find ...
Skop's user avatar
  • 1
1 vote
2 answers
60 views

Synchronizing multiple I2S codecs on stm32f405

I am designing an audio device that requires two CODECs to be connected to the MCU - two stereo outputs, two stereo inputs. When working with a single codec, no problems with synchronization occur ...
sx107's user avatar
  • 1,109
0 votes
0 answers
48 views

Problem with I2S and IIR-filter

I am working on a system that receives audio data over Bluetooth using a BM83. This is transmitted to an STM32F7 over ADC, an IIR-filter is applied and the data is transmitted out over I2S. The ADC ...
mgr's user avatar
  • 1
1 vote
0 answers
30 views

Cross-compile and run aac-fdk on Cortext M0+ like the RP2040

I am creating a small device that should be able to input sound from a I2S microphone and to compress this sound using AAC LC compression. In another thread I was recommended a Arm Cortex M for this ...
www.jensolsson.se's user avatar
0 votes
0 answers
17 views

I2S Interface between Bluetooth Module and CODEC

I need to interface my CYBT-343026-01 bluetooth module to the AK4619 CODEC via I2S interface. The problem is that CYBT-343026-01 only provides BICK and LRCLK, but it doen't provide MCLK which is also ...
Andrea's user avatar
  • 145
0 votes
0 answers
74 views

Receive i2S data to RP2040, PIO and DMA from MEMS microphone (SPH0645LM4H-B)

It pretty much seem to work. I have in the PIO been able to generate the clock and word select and the microphone is sending data continuously which can be verified with a logic analyser. (maybe it ...
www.jensolsson.se's user avatar
0 votes
1 answer
71 views

Trying to drive a I2S MEMS microhpone (SPH0645LM4H) using RP2040 PIO but timing seems bad and I dont get any audio back

So I want to connecte an i2s MEMS microhpone to a RP2040. I have made a PIO program that looks like this: ...
www.jensolsson.se's user avatar
1 vote
2 answers
135 views

ICS-43434 microphone esp32 wroom 32-d

I've been trying to read the ICS-43434 microphone using esp32 wroom 32-d but I'm getting negative values that stay in more or less the same range, despite varying noise levels. What am I doing wrong? ...
Zik's user avatar
  • 11
0 votes
0 answers
80 views

PCM to dbspl conversion in esp-idf

using i2s interface of esp32-wroom-32 i am getting PCM data from PDM micro-phone. how can i measure acoustic sound pressure level? below is datasheet sheet of micro-phone. from 16-bit array how can i ...
Moaz Azam's user avatar
0 votes
1 answer
90 views

STM32H7 Baremetal I2S Circular DMA

I am trying to run an I2S ES8388 codec from a stm32h750. Without DMA, the codec is working just fine, and I can output and receive data to and from it respectively. But, I'm experiencing problems with ...
sx107's user avatar
  • 1,109
-1 votes
1 answer
223 views

Sending ADC I2S output to PC through USB port

I want to use PCM1808PWR ADC at 96kHz 24-bit to convert analog instrument signal to digital (in short I want to build USB audio interface). How should I send I2S output from ADC through USB port? I ...
user363431's user avatar
0 votes
1 answer
230 views

integration of multiple microphones in same ESP32-S3 I2S interface

I'm currently working on a graduation project where I am tasked with building an embedded system using an ESP32-S3 and four MEMS microphones capable of detecting ultrasonic waves. The goal is to ...
jabel's user avatar
  • 3
0 votes
1 answer
153 views

Horrible noise coming from speaker when using SDIO

I have both an SD card and a MAX98357A (I2S Amplifier) breakout board connected to my STM32 Nucleo. As soon as I open a file for reading in FatFs using the f_open ...
Movieboy's user avatar
  • 217
0 votes
1 answer
109 views

I2S communication WS line function

I was reading the official I2S documentation from Philips and I have some doubts on its functioning (I'm new to this protocol with respect to PDM). The WS line is used to select either the left or ...
Luca's user avatar
  • 3
0 votes
0 answers
221 views

ESP32 I2S with a MAX98357

I have hooked up an ESP32-WROOM to a MAX98357 I2S Amp. I'm using the ESP32-audioI2S library playing from an SD card. ESP is USB powered while the amp is powered from a bench power supply. I'm using a ...
MustSeeMelons's user avatar
0 votes
4 answers
560 views

Multiplexing I2S: multuple I2S devices on single bus

I am working on a project which involves capturing audio from a linearly-arranged array of microphones, and processing that data to identify the peak frequency (highest amplitude) detected by each ...
Joe Mills's user avatar
2 votes
1 answer
71 views

Reason for the degraded I2S signal

I'm working with one of the devices from the NXP's IMX family - the IMX93 evaluation board. I've managed to setup the sound card drivers already, the next step was to test I2S signals output via the ...
Antoni's user avatar
  • 121
2 votes
1 answer
124 views

Opinion on Solution for minimal CPU use for STM32 based precision external ADC conversion timing

I have been working on a data acquisition system that requires fairly high sample rates given the resolution and dynamic range requirements. The front end performs well, but to avoid wasting large ...
Luke Gary's user avatar
  • 1,085
0 votes
1 answer
425 views

I2S DAC UDA1334A module distortion under load

I am trying to use a UDA1334A I2S DAC module (pictured below on the right) with an ESP32-S3. I connected everything as described in the documentation by Adafruit (https://learn.adafruit.com/adafruit-...
Nejc Jezersek's user avatar
0 votes
0 answers
69 views

SDRAM and I2S on STM32

I am using an STM32F429 discovery board to develop a DSP platform for making some sound effects. I have I2S streaming and passing through, and I have SDRAM configured where I can talk to it and even ...
Adam's user avatar
  • 95
0 votes
0 answers
259 views

Can I connect multiple different devices via a single I2S interface?

I am using a microcontroller with only one I2S interface. I am using MAX98357A which has 1 sound chip. There is 1 microphone, SPH0645. Can I connect these ICs to the same line provided that I cannot ...
FAFİ's user avatar
  • 51
0 votes
2 answers
2k views

Record audio with digital I2S MEMS microphone and store audio as wav file on PC

I would like to use a digital I2S microphone to record audio and store it as wav on a PC, preferably over serial connection. I have tried this with the boards ESP32 dev kit v1, MKR Wifi 1010 and ...
VGF's user avatar
  • 1
1 vote
0 answers
134 views

Connecting two I2S data line from an audio codec using only one of the I2C's control clocks

I'm planning to receive audio data from an Audio codec (ak4619). I need to receive signals from 4 microphones and this device permit that through two left/right chanels. In CubeIDE, I selected a MCU (...
Prof_Sims's user avatar
  • 110
0 votes
1 answer
246 views

What is the role of master clock speed on DAC?

In the I2S protocol we have 3 signal + one none-standard master clock (mentioned by Olin Lathrop): data LRCK/FCK (frame synchronizer) BCK (bit clock) MCK/SCK (master clock) Question 1: Why do we ...
mohammadsdtmnd's user avatar
1 vote
1 answer
593 views

Data coherency with DMA and I2S audio on STM32H7

Moving from a audio effect prototype based on the STM32F407 to the STM32H757. Did a lot of stuff on the F4 with audio but on the H7 I'm getting stuck and can't get a simple audio loopback with DMA. I'...
Alefal's user avatar
  • 31
0 votes
1 answer
908 views

Raspberry Pi I2S speaker and microphones on the same connection

I am planning on buying an I2S speaker amplifier for my Raspberry Pi project. I already have the microphones for it. My question is whether the I2S interface can support speaker and mic at the same ...
Collin's user avatar
  • 75
2 votes
1 answer
1k views

How to remove INMP441 MEMS microphone low-frequency noise

I have code that allows me to record I2S audio from the INMP441 MEMS microphone module using an ESP32. The data is read from the data out pin of the device. When I take the Fourier transform of this ...
Grabt234's user avatar
1 vote
0 answers
108 views

Can I transmit audio sampled with I2S driver from ESP32 using Si24R1 (Chinese clone of nRF24L01)?

I'm trying to transmit audio via nRF24 with an ESP32 development board using a driver library from nopnop2002. I'm using the i2s-adc esp-idf lib functions to get data from an analog microphone and I ...
curioso's user avatar
  • 67
0 votes
1 answer
2k views

Unable to get any kind of audio from I2S INMP441 omnidirectional microphone on ESP32 devboard

I am trying to get an I2S INMP441 omnidirectional microphone module to interface with an ESP32 devboard. I have been unable to get any kind of information from it. I have tried multiple ESP32s and ...
Slynyr's user avatar
  • 3
1 vote
1 answer
347 views

Delay in I2S audio from SD card

This question was already asked on specific arduino forum but I didnt recieve any answers and views were very limited hence I am posting here for better reach. I am trying to play wav file saved in SD ...
dharmikP's user avatar
  • 525
2 votes
1 answer
226 views

Interlacing two physical I2S data lines into one

I'm looking for hardware that will take two physical I2S data lines, both clocked using the same WS and BCLK lines, and interlace each sample from them together to one output I2S line at double the ...
RomanPort's user avatar
-1 votes
2 answers
446 views

Is I2S or USB the most direct link to my DAC's processor?

I’m building my first streamer and I’m trying to determine the most direct route ( the least amount of conversion) to my DAC. I use a Denafrips Terminator II DAC. Would a USB signal be converted to ...
JackJohnson316 's user avatar
1 vote
1 answer
812 views

Cause of I2S microphone not working

I am attempting to connect a DMM-4026-B-I2S-EB-R to an ESP32-S2-DevKitC. I am writing this code in the Arduino IDE. It is based on the code from this article. I believe my code works; I included it ...
SunriZe225's user avatar
-1 votes
1 answer
46 views

What are the most common realistic scenarios where SOC (MCU) is used as target (slave) in I2S commmunication?

I need to test the functionality of SOC and I2S software driver for slave mode (target mode.) I don't want to use another I2S channel in the same SOC as master. I am looking for a realistic scenario ...
Manikanta A M's user avatar
1 vote
1 answer
213 views

STM32F746 I2S clock fails

I have discovery board STM32f746NG In first try I've set this: Activate I2S2 with piout: PB4->WS - PI3->SD - PI1->CK. Instantly after activating I2S periferal with command ...
mohammadsdtmnd's user avatar
1 vote
0 answers
3k views

ESP32 High Sample Rate I2S

Recently, I've been working on a project that involves receiving a high sample rate I2S signal and writing it to an SD card with an ESP32. At the moment, however, I believe I'm struggling to even ...
RomanPort's user avatar
0 votes
0 answers
387 views

Capturing High Speed I2S To SD Card

I've been working on a project that involves receiving two high speed I2S lines and writing the data off of them to an SD card. The interface has the word select and bit clock I2S lines shared between ...
RomanPort's user avatar
2 votes
2 answers
492 views

I2S microphone data synchronization for left and right channel

I have I2S MEMS microphones (transmitters, stereo) in slave mode and a microcontroller in master mode. When the WS pin iw 0 (low) the data available on the SD pin is for the left channel (microphone ...
CuriousByte's user avatar
4 votes
1 answer
374 views

If I invert an I2S data line, it inverts the audio, right?

It seemed obvious to me, but then I read all these audio forums where they're talking about overflow, tones, etc. and I just want to make sure I'm not missing something. If you take an I2S signal: ...
endolith's user avatar
  • 28.8k
1 vote
0 answers
181 views

Capturing High Sample Rate I2S via USB

Recently, I started working on a project to convert my Sony XDR-F1HD radio to a device that I can connect to over ideally USB to record the RF signal off of the air. All demodulation and processing is ...
RomanPort's user avatar
1 vote
0 answers
199 views

I2S slave communication without an MCU - how to generate the clocks?

I am designing an audio amplifier circuit which uses an I2S digital MEMS mic (INMP441) for picking up voice signals and an I2S class-D amplifier (MAX98357A) for amplification. I have attached the ...
Sri's user avatar
  • 87
5 votes
3 answers
2k views

I2S communication

I am designing an audio amplifier circuit which consists of an I2S digital MEMS mic (INMP441) for picking up voice signals and an I2S class-D amplifier (MAX98357A) for amplification. Both these ICs ...
Sri's user avatar
  • 87
0 votes
0 answers
245 views

No sound from I2S codec

I have a STM32F411R Nucleo board and I'm trying to connect it to a CS4245 audio codec to play audio but I can't get any sound out of it. The connections are: Nucleo CS4245 PB10 (I2S3 MCLK) 40 (MCLK2)...
santonel's user avatar
1 vote
1 answer
5k views

Multi channel I2S vs TDM

I need to receive 8 channels of 24 bits at 48KHz. So I have two possibilities to accomplish that: either using 4 I2S or TDM. I would like to understand the difference in clock rates between I2S and ...
Arubu's user avatar
  • 111
1 vote
2 answers
572 views

I2S voltage shifters needed?

I am designing the schematics for my new PCB and I need to output some audio signals (totally new to this). I am using an ESP32-SOLO-1 as MCU and the TFA9879HN as audio driver. The TFA9879HN is ...
maniel92's user avatar
3 votes
1 answer
200 views

Resistor between 74595 SRCLR and GND

What is the function of this resistor and is it okay with this value ? Rizki
Rizkis Walker's user avatar
0 votes
0 answers
72 views

Connecting a large number of I²S busses to a computer

I'd like to try designing a digital mixer using a Raspberry Pi CM 4. The first problem I'm facing is how to connect a large number of ADCs and DACs to the Pi. These converters have a resolution of 24 ...
Cedric's user avatar
  • 437
0 votes
1 answer
406 views

switching between multiple clock (I2S, audio)

I'm trying to draw a schematic that I need for selecting a single clock among four possible clock sources. I'd like to select the source using a simple 4 way mechanical switch. The sources are: 22....
Dimitri Petrucci's user avatar