No touch response or I2C data from CY8C20110-SX2I on ESP32

Nirajbabuaan
Posts: 2
Joined: Wed Jun 11, 2025 7:02 am

No touch response or I2C data from CY8C20110-SX2I on ESP32

Postby Nirajbabuaan » Wed Jun 11, 2025 7:11 am

Hi all,
We’re working on a custom PCB under our startup “Slogfy” where we’ve integrated the CY8C20110-SX2I capacitive touch IC with an ESP32 microcontroller. However, we’re not able to receive any data or touch status over I2C.
🔹 IC: CY8C20110-SX2I
🔹 Microcontroller: ESP32 (using Arduino IDE)
🔹 I2C Pins: SDA = GPIO21, SCL = GPIO22
🔹 Pull-ups: 4.7kΩ on SDA and SCL
🔹 I2C Address: 0x00 (or configured value)
🔹 Status: ESP32 detects device on I2C bus with scanner, but data read always returns 0 or fails.
We’ve attached:
📌 Our Schematic (PDF/image)
📌 PCB layout (image)
📌 Screenshot of serial output and code snippet

Things we've tried:
Confirmed 3.3V and GND supply is OK


Confirmed I2C lines with logic analyzer (optional)


Tried different delays and requestFrom() patterns


Used both Wire.h and other I2C libraries



Please help us identify what might be wrong—whether in hardware, address configuration, reset handling, or timing.
Thanks in advance 🙏
– Team Slogfy

[im
Screenshot 2025-06-07 at 10.29.34 PM.png
Screenshot 2025-06-07 at 10.29.34 PM.png (156.52 KiB) Viewed 55 times
Screenshot 2025-06-07 at 10.29.34 PM.png
Screenshot 2025-06-07 at 10.29.34 PM.png (156.52 KiB) Viewed 55 times
g][/img]
Attachments
Screenshot 2025-06-06 at 9.27.16 PM.png
Screenshot 2025-06-06 at 9.27.16 PM.png (1.95 MiB) Viewed 55 times
Screenshot 2025-06-07 at 10.29.16 PM.png
Screenshot 2025-06-07 at 10.29.16 PM.png (175.96 KiB) Viewed 55 times

Sprite
Espressif staff
Espressif staff
Posts: 10599
Joined: Thu Nov 26, 2015 4:08 am

Re: No touch response or I2C data from CY8C20110-SX2I on ESP32

Postby Sprite » Wed Jun 11, 2025 8:56 am

How did you 'confirm' the I2C lines with a logic analyzer? Can you post the traces here?

Nirajbabuaan
Posts: 2
Joined: Wed Jun 11, 2025 7:02 am

Re: No touch response or I2C data from CY8C20110-SX2I on ESP32

Postby Nirajbabuaan » Wed Jun 11, 2025 9:41 am

#include <Wire.h>

#define SDA_PIN 21 // Use GPIO21 for SDA
#define SCL_PIN 22 // Use GPIO22 for SCL

void setup() {
// Initialize serial communication
Serial.begin(115200);
delay(1000); // Give time for serial monitor to connect

// Initialize I2C with specified SDA and SCL pins
Wire.begin(SDA_PIN, SCL_PIN);

Serial.println(" I2C Scanner Starting...");
Serial.print("Using SDA: GPIO");
Serial.print(SDA_PIN);
Serial.print(" | SCL: GPIO");
Serial.println(SCL_PIN);
}

void loop() {
byte error, address;
int count = 0;

Serial.println("Scanning for I2C devices...");

for (address = 1; address < 127; address++) {
Wire.beginTransmission(address);
error = Wire.endTransmission();

if (error == 0) {
Serial.print("✅I2C device found at address 0x");
if (address < 16)
Serial.print("0");
Serial.println(address, HEX);
count++;
}
}

if (count == 0)
Serial.println("❌No I2C devices found.");
else
Serial.println("✅I2C Scan Complete.\n");

delay(3000); // Scan every 3 seconds
}



"serial print is-❌No I2C devices found."
WhatsApp Image 2025-06-07 at 8.32.44 PM.jpeg
WhatsApp Image 2025-06-07 at 8.32.44 PM.jpeg (91.3 KiB) Viewed 49 times

Sprite
Espressif staff
Espressif staff
Posts: 10599
Joined: Thu Nov 26, 2015 4:08 am

Re: No touch response or I2C data from CY8C20110-SX2I on ESP32

Postby Sprite » Thu Jun 12, 2025 9:18 am

How did you 'confirm' the I2C lines with a logic analyzer? Can you post the traces here?

Who is online

Users browsing this forum: Applebot, meta-externalagent, PetalBot and 2 guests