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
1 answer
39 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
58 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
89 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
57 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
  • 21
2 votes
1 answer
58 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,065
0 votes
1 answer
81 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
45 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
  • 75
0 votes
0 answers
143 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
0 answers
45 views

Output I2S master clock RK3399

Don't know how to output I2S master clock to a pin header. I'm using a board with RPI-like 40-pin header and RK3399 chip. I'm able to get I2S in/out signal (BCLK, LRCLK, DATA) with alsa, but I need ...
user avatar
0 votes
1 answer
1k 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
104 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
171 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
357 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
495 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
  • 55
0 votes
0 answers
21 views

Is this PCM1860 connected OK for hardware control mode?

I connected the PCM1860 ADC in this manner. I expected data on my oscilloscope on the digital output (pin 18). I have so far only seen a square wave on the clock pins but nothing on the data pin. Is ...
DonP's user avatar
  • 229
2 votes
1 answer
693 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
0 votes
0 answers
207 views

Code for audio recording using 2 I2S interfaces on ESP32

I have looked at reference code for the ESP32 and have been able to record audio from a I2S mic using a single I2S interface. I am unable to figure out how to use 2 interfaces at the same time and the ...
Grabt234's user avatar
1 vote
0 answers
83 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
950 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
250 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
149 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
314 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
666 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 ...
Sunzeri225's user avatar
-1 votes
1 answer
44 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
178 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
2k 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
323 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
1 vote
1 answer
331 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
298 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.7k
1 vote
0 answers
161 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
176 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
194 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
4k 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
414 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
175 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
70 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
  • 427
0 votes
1 answer
336 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
0 votes
0 answers
91 views

I2S: generate BCLK/WDCLK in the absence of a master device

I'm trying to understand if I can use 4 x PCM4222 ADCs (datasheet) with the ADAT generator AL1401 (datasheet). They would be working togheter using PCM audio mode, left-justified format, that both ...
Dimitri Petrucci's user avatar
1 vote
1 answer
712 views

CS8406 Audio Interface (I2S->I2C)

I'm attempting to interface a MEMS Microphone with an ESP32 through a CS8406. I am aware that the ESP32 has a well-documented I2S hardware interface however for my project I cannot use it. (It's going ...
Caleb's user avatar
  • 42
0 votes
1 answer
201 views

What is Analog Ground in UDA1334A?

I purchased Adafruit's UDA1334A I2S Stereo DAC, and I'm trying to figure out how to wire it to speakers. I see I have the Lout and Rout pins, which I suppose is the positive for the left and right ...
YoavKlein's user avatar
  • 205
0 votes
1 answer
606 views

Converting SPI/I2S to SAI peripheral setup help

Just a quick question, I just need some help figuring out what is what. The device that I am working with is the: STM32H753ZI reference I am coming from the I2S peripheral and wanting to setup the SAI ...
Leoc's user avatar
  • 1,413
3 votes
1 answer
178 views

Why is my frequency being effectively doubled?

I'll try to explain everything with detail as this is one will be a hard one to explain. Essentially what I am trying to achieve is sum both the left & right channel to produce a mono signal to be ...
Leoc's user avatar
  • 1,413
0 votes
1 answer
512 views

What is the meaning of pulling a pin HIGH (of an IC)?

Let's say I have a microcontroller (ESP8266) driving a DAC via a I2S protocol. So the ESP is connected with 3 pins to the DAC, and sending the data to it throught these pins. But I wonder, how exactly ...
YoavKlein's user avatar
  • 205
1 vote
1 answer
548 views

STM32H7 refuses to transmit any I2S samples

I am having the biggest issue with the I2S right now What is happening: For whatever reason the I2S does not want to transmit any samples VIA DMA. Doesnt matter what I do what I try. The weird thing ...
Leoc's user avatar
  • 1,413
1 vote
0 answers
622 views

How can I go about learning to output audio to a speaker using a STM32 board?

I am hoping someone can point me in the right direction. I am trying to learn how to output audio on a STM32 board. The board I have is the STM32F746ZG NUCLEO board. I have small (1-3) second audio ...
TheCoolest2's user avatar
0 votes
0 answers
118 views

How to capture the I2S signal via Raspberry Pi Zero?

I would like to capture the I2S data from ADC CS5340 by raspberry Pi zero, but I could not find relevant I2S API to use in raspberry pi zero. Could anyone help me on this? Thanks!
Hui Zhou's user avatar
0 votes
1 answer
62 views

How to set MCLK in CS4270

I need to use the cs4270 for audio codec and I find that there are three bits to set the ratio select in Mode control part. I do not know how to set these three bits and what is the MCLK use for?
Yun's user avatar
  • 1
0 votes
0 answers
310 views

Transmitting I2S over 6ft

I've been looking at audio ADCs with most rated at 192Ksps with 24 bit audio. Typically the output is in I2S, but I understand that the signal is not intended to go far. I understand that HDMI can ...
LinuxGogley's user avatar
0 votes
0 answers
277 views

Can an I2S speaker and microphone share the same I2S clock? What about word select?

If one is very tight on GPIOs, could an I2S TX and RX share any pins? Edit: The device I was thinking of was the ESP32, connected to an I2S microphone and speaker, for example SPH0645 and MAX98357A.
JC123's user avatar
  • 413