Easy IoT is a simplest IoT Solution presented by DFRobot
By Piero76
#44410
Hello everyone,
I have a Firebeetle ESP32 and I am trying to use the device with Arduino IDE to receive audio from 2 microphones.

Specifically I am using the MAX9867 codec (with its EVKIT) which should communicate in I2S with esp32.

For the initial setup I followed this tutorial:
https://wiki.dfrobot.com/FireBeetle_ESP ... 8#target_6

For the I2s example I referred to this tutorial (I should see the data viewable in the Arduino IDE serial plotter):
https://diyi0t.com/i2s-sound-tutorial-for-esp32/

However, the problems I encountered are these:

1) The serial monitor does not work from USB: I can program the device, even if 5 times out of 10 the device goes into error (if I connect to the UART TX with another uart to USB bridge, on another COM, I can read the data).
I've tried with this simple code to test the usb serial, but I can't see anything on the usb serial port:
Code: Select all
void setup() {
 pinMode(LED_BUILTIN, OUTPUT);
 digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
 Serial.begin(115200);
 digitalWrite(LED_BUILTIN, LOW);   // turn the LED on (HIGH is the voltage level)
}
void loop() {
static unsigned long i = 0;
 digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(2000); 
 Serial.println("Hello");
 Serial.println(i++);
 //delay(1000);
 digitalWrite(LED_BUILTIN, LOW);   // turn the LED on (HIGH is the voltage level)
 delay(2000);
}
2) From the UART I read from, I can't see any data coming from the I2S.

If I connect a logic analyzer to the pins out of the codec I see the packets.
In the documentation I read, I could not understand the I2S pinout.

In the DFrobot () site image it should look like this:

BCLK = 14,
LRCLK = 17,
DO = 4
DI = 6

From Examples of ESPRESSIF (https://docs.espressif.com/projects/esp ... s/i2s.html)

BCLK = 26,
LRCLK = 25,
DO = 22
DI = not indicated

I need help

Thanks for all information
#44433
Hi,
thank you for the answer,
The D0 and D1 Pins aren't connected and I can't see anything on the USB COM port with Arduino IDE Serial Monitor ( I try to use Tera Term and the same thing happens).
If I connect an UART to USB device to the D1 pin, I can see the text in the firmware on the new device com port.