Open herry93 opened 9 months ago
@me-no-dev - Please take a look. Thanks.
@herry93 - I know that some ESP32-S3 devkit use IO48 as RGB LED. This is the case for the M1 devkit, but should not be the case for the C1.
Can you just check if the board LED is IO38 or IO48? Thanks!
@herry93 - If you use other pins for I2C, does it work fine?
@herry93- Saya tahu bahwa beberapa devkit ESP32-S3 menggunakan IO48 sebagai LED RGB. Hal ini berlaku pada devkit M1, namun tidak berlaku pada C1.
Bisakah Anda memeriksa apakah LED papannya IO38 atau IO48? Terima kasih!
The PIN for the LED is on GPIO48
pin 48 can't just blink
@herry93- Jika Anda menggunakan pin lain untuk I2C, apakah berfungsi dengan baik?
Yes, of course I tried using another GPIO and it worked normally
Not sure where (or when) I saw this, but if I'm not mistaken I have seen some peripheral code recently where pin masks were stored per 24 bit in 32-bit words as some RTOS shared values. As pin 48 is outside this range of 2x 24-bit, could this be related?
Sorry I really can't remember where I saw this. I only remember thinking "hmm that's odd" when I saw it.
I finally found an S3-board which has GPIO-47 & 48 exposed and hooked it up to a logic analyzer.
At least it seems to be able to send data (have not yet hooked up some I2C device to it)
SDA => GPIO-47 SCL => GPIO-48
Edit: Swapping the SDA/SCL also seems to send out proper I2C values:
@herry93 do you have pullups on those pins?
@herry93- Saya tahu bahwa beberapa devkit ESP32-S3 menggunakan IO48 sebagai LED RGB. Hal ini berlaku pada devkit M1, namun tidak berlaku pada C1. Bisakah Anda memeriksa apakah LED papannya IO38 atau IO48? Terima kasih!
The PIN for the LED is on GPIO48
Consider that there is a WS2812b RGB LED connected to this pin. Therefore there is circuit conneting IO48 to GND passing by the resistor and the LED microcontroller that is causing the issue.
pin 48 can't just blink
This is not a regular LED that would light up just by setting the IO to 3.3V. There is a protocol to make it work. I think that it may lack, as @me-no-dev said, some pull up to hold the line HIGH.
Saya akhirnya menemukan papan S3 yang telah mengekspos GPIO-47 & 48 dan menghubungkannya ke penganalisis logika.
Setidaknya tampaknya dapat mengirim data (belum menghubungkan beberapa perangkat I2C ke sana)
SDA => GPIO-47 SCL => GPIO-48
Sunting: Menukar SDA/SCL juga tampaknya mengirimkan nilai I2C yang tepat:
where did you find this? and what S3 Board are you using?
@herry93- Saya tahu bahwa beberapa devkit ESP32-S3 menggunakan IO48 sebagai LED RGB. Hal ini berlaku pada devkit M1, namun tidak berlaku pada C1. Bisakah Anda memeriksa apakah LED papannya IO38 atau IO48? Terima kasih!
PIN untuk LED ada di GPIO48
Pertimbangkan ada LED RGB WS2812b yang terhubung ke pin ini. Oleh karena itu ada sirkuit yang menghubungkan IO48 ke GND yang melewati resistor dan mikrokontroler LED yang menyebabkan masalah.
pin 48 tidak bisa berkedip begitu saja
Ini bukan LED biasa yang akan menyala hanya dengan mengatur IO ke 3.3V. Ada protokol untuk membuatnya berfungsi. Saya pikir itu mungkin kurang, misalnya@me-no-devkatanya, ada yang pull up untuk menahan garis TINGGI.
I have used PULLUP and I have removed the WS2812 LED.
@herry93- Saya tahu bahwa beberapa devkit ESP32-S3 menggunakan IO48 sebagai LED RGB. Hal ini berlaku pada devkit M1, namun tidak berlaku pada C1. Bisakah Anda memeriksa apakah LED papannya IO38 atau IO48? Terima kasih!
PIN untuk LED ada di GPIO48
Pertimbangkan ada LED RGB WS2812b yang terhubung ke pin ini. Oleh karena itu ada sirkuit yang menghubungkan IO48 ke GND yang melewati resistor dan mikrokontroler LED yang menyebabkan masalah.
pin 48 tidak bisa berkedip begitu saja
Ini bukan LED biasa yang akan menyala hanya dengan mengatur IO ke 3.3V. Ada protokol untuk membuatnya berfungsi. Saya pikir itu mungkin kurang, misalnya@me-no-devkatanya, ada yang pull up untuk menahan garis TINGGI. I have used PULLUP and I have removed the WS2812 LED.
I finally found an S3 board that had GPIO-47 & 48 exposed and connected it to a logic analyzer. At least it seems to be able to send data (haven't connected some I2C devices to it yet) SDA => GPIO-47 SCL => GPIO-48 Edit: Swapping SDA/SCL also seems to send the correct I2C values:
where did you find this? and what S3 Board are you using?
I have several LoLin S3 boards I think it is this one (the "original" S3 N16R8) (purple board) And I just used my own firmware (ESPEasy) and performed an I2C scan. Then captured the signals using my Logic Analyzer.
I2C working fine on 47(SDA) and 48(SCL) for me
Board
esp32-s3-devkitc-1
Device Description
DEVKIT C 1
Hardware Configuration
GPIO 47 and GPIO 48 are connected with I2C
Version
latest master (checkout manually)
IDE Name
PatformIO IDE
Operating System
WIN 10
Flash frequency
80 Mhz
PSRAM enabled
no
Upload speed
115200
Description
pins 48 and 47 cannot read I2C properly
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide