Comments on: ESP32 I2C Master and Slave (I2C Communication Between Two ESP32) – Arduino IDE https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 11 Jul 2025 09:30:37 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-1067609 Fri, 11 Jul 2025 09:30:37 +0000 https://randomnerdtutorials.com/?p=155800#comment-1067609 In reply to Young.

Hi.
No.
I2C and I2S are two completely different protocols.
Regards,
Sara

]]>
By: Young https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-1067351 Thu, 10 Jul 2025 23:06:10 +0000 https://randomnerdtutorials.com/?p=155800#comment-1067351 Hello. Does this method apply the same way to I2S?

]]>
By: Pubudu https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-1020200 Thu, 27 Mar 2025 15:01:18 +0000 https://randomnerdtutorials.com/?p=155800#comment-1020200 I tried this code on a ESP32 I2C Slave mode. My I2C master was a PICO. Slave was able to work correctly up to 200 kHz. Beyond that, it was not able to ACK on time. There was only 8″ difference between the two circuits. PICO was sending clean pulses but slave was not able to keep up with it. I used 1 kOhm pull up resisters. I monitored the signals with oscilloscope and observed it.

]]>
By: Victor Reijs https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-990858 Thu, 12 Dec 2024 11:14:13 +0000 https://randomnerdtutorials.com/?p=155800#comment-990858 In reply to Dave Lowther.

Thanks for your reaction!
Looking now at the Wire.h I see the statement:
#define I2C_BUFFER_LENGTH 128

So that indeed explains the 128byes. I will see if I can edit this file and run/compile again.

Thanks.

]]>
By: Dave Lowther https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-990694 Wed, 11 Dec 2024 17:55:25 +0000 https://randomnerdtutorials.com/?p=155800#comment-990694 In reply to Victor Reijs.

There will be some size limit due to the size of the buffer allocated in the Wire library. According to docs.arduino.cc/language-reference/en/functions/communication/wire/ the limit is 32 bytes. Searching for “ESP32 I2C buffer size” indicates it’s probably 128 bytes e.g. forum.arduino.cc/t/what-is-the-wire-buffer-limit-on-the-esp32/649989/3

]]>
By: Victor Reijs https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-957544 Sun, 15 Sep 2024 09:46:43 +0000 https://randomnerdtutorials.com/?p=155800#comment-957544 In reply to Ivan.

Hello Ivan, I see something similar (using the i2c link between a ESP8266 and ESP32. On both I use Wire.h. The maximum size seems to be 128Bytes (I only checked it from ESP8266 to ESP32 over the I2C link). I have not been able to find a reason (a tutorial, or e-mails, etc on Google).

Any help is still appreciated (I now split my messages…)

]]>
By: Steve Spence https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-931319 Thu, 27 Jun 2024 16:31:10 +0000 https://randomnerdtutorials.com/?p=155800#comment-931319 In reply to Gary.

THIS ^^^

]]>
By: Steve Spence https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-931316 Thu, 27 Jun 2024 16:29:37 +0000 https://randomnerdtutorials.com/?p=155800#comment-931316 In reply to Ted.

You don’t get to redefine industry terms. we have male and female connectors (no non-binary) motherboards and daughter cards, and yes, master / slave processes.

]]>
By: Gary https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-928847 Fri, 21 Jun 2024 14:41:01 +0000 https://randomnerdtutorials.com/?p=155800#comment-928847 In reply to tiredOfPC.

We know it’s nothing but virtue signalling. But the truly sad part is that while you and I just roll our eyes, the people who actually profit from human trafficking today are laughing their posteriors off. They absolutely LOVE the distraction because the more effort spent on bickering about worthless activities like this, the less effort is focused on actually going after them. Slavery is alive in well in the world today in places and forms that would surprise us all, and the ‘masters’ relish these futile attempts to change their hearts and minds. But if someone wants to think they are leading the army against injustice by changing some words in a source file, then gee whiz, I’m sure that’ll really show those bad guys a thing or two!

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/#comment-928801 Fri, 21 Jun 2024 10:50:29 +0000 https://randomnerdtutorials.com/?p=155800#comment-928801 In reply to Ivan.

Hi.
Unfortunately, I didn’t test that.
Regards,
Sara

]]>