![]() |
|
Troubles using I2C/IIC bus - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22) +--- Thread: Troubles using I2C/IIC bus (/showthread.php?tid=8204) |
Troubles using I2C/IIC bus - ksarz - 06-19-2025 I am having troubles using I2C interface on KC868-A6-V1. Programming using Arduino IDE 2.3.6 So I tried running programmes for digital inputs, relays and the built-in "Wire Scan" example with a sensor connected and none of them work. Here are the error texts: Wire Scan: "EScanning for I2C devices ... E (522034) i2c.master: probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up Error 5 at address 0x01 E (522094) i2c.master: probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up Error 5 at address 0x02 (all the other adresses) (529474) i2c.master: probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up Error 5 at address 0x7D E (529534) i2c.master: probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up Error 5 at address 0x7E No I2C devices found" Relays: "E(76561) i2c.master: I2C hardware NACK detected E (76561) i2c.master: I2C transaction unexpected nack detected E (76561) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed E (76567) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed" Digital inputs: "E (9060) i2c.master: I2C hardware NACK detected E (9060) i2c.master: I2C transaction unexpected nack detected E (9060) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed E (9066) i2c.master: i2c_master_receive(1240): I2C transaction failed KEY1 PRESSED KEY2 PRESSED KEY3 PRESSED KEY4 PRESSED KEY5 PRESSED KEY6 PRESSED KEY7 PRESSED KEY8 PRESSED" RE: Troubles using I2C/IIC bus - admin - 06-19-2025 do you have defined SDA and SCL pin in arduino code? RE: Troubles using I2C/IIC bus - ksarz - 06-19-2025 (06-19-2025, 10:38 AM)admin Wrote: do you have defined SDA and SCL pin in arduino code? they are. I have both redefined pins in the files and defined them in Wire.begin() RE: Troubles using I2C/IIC bus - admin - 06-19-2025 you can use our arduino demo code directly to test. RE: Troubles using I2C/IIC bus - ksarz - 06-19-2025 (06-19-2025, 11:42 AM)admin Wrote: you can use our arduino demo code directly to test. yeah, I did. The relay and digital input programmes are the demo ones RE: Troubles using I2C/IIC bus - admin - 06-19-2025 do you use this demo? https://www.kincony.com/forum/showthread.php?tid=1866 do you have installed PCF8574 arduino library firstly? RE: Troubles using I2C/IIC bus - ksarz - 06-20-2025 (06-19-2025, 11:44 PM)admin Wrote: do you use this demo?Yes, this one and https://www.kincony.com/forum/showthread.php?tid=1865 Yes, I have the library RE: Troubles using I2C/IIC bus - ksarz - 06-20-2025 Also, were the relay LEDs supposed to turn on and then off one by one every time the board was powered? Because they did first few times, but now they don't RE: Troubles using I2C/IIC bus - admin - 06-21-2025 that's factory testing firmware, after you downloaded arduino code, it will be over write on ESP32. RE: Troubles using I2C/IIC bus - ksarz - 06-25-2025 I need to flash the controller before starting programming UART and I2C? (06-19-2025, 11:44 PM)админ Wrote: вы используете эту демоверсию? Тhis Demo version dies not work correct,sorry. |