espressif / arduino-esp32

Arduino core for the ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP_I2S new library Slave mode clarification.

raprakashvi opened this issue · comments

Board

ESP32 Dev

Device Description

Plain module with I2S elements

Hardware Configuration

NAN

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

40 Mhz

PSRAM enabled

no

Upload speed

115200

Description

Hi, I am going through documentation to use the two I2S ports available and need to use one of them in Slave mode. I found earlier examples of people using two I2S ports together with one in master and the other in Slace with shared SCK and WS pins for the I2S peripheral.

I have been integrating the new library in my code and saw this documentation on the new library page:

"I2S Configuration
Master / Slave Mode
In Master mode (default), the device generates clock signal sck and word select signal on ws.

In Slave mode the device listens on attached pins for the clock signal and word select - i.e. unless externally driven the pins will remain LOW. This mode is not supported yet."

Is the Slave mode still being supported in the new library? I don't see any argument option in I2S class or begin function to include the mode of I2S peripheral. I have tested getting both those ports work by simultaneously capturing sound from mics on Port 0 and Port 1 by creating different I2S class objects and it works but has a lot of crackling sound and muffled sound on respective ones. Is there a default Master/Slave allocation or the Slave mode is not being supported for now? Thanks.

Sketch

NAN

Debug Message

NAN

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

It is supported as long as the ADC provides all needed signals (BCK, WS, DIN)

cracks and pops are probably due to wrong configurations. You need to provide more info on your setup if you want us to be able to further help