Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Troubles using I2C/IIC bus
#1
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"
Reply
#2
do you have defined SDA and SCL pin in arduino code?
Reply
#3
(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()
Reply
#4
you can use our arduino demo code directly to test.
Reply
#5
(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
Reply
#6
do you use this demo?
https://www.kincony.com/forum/showthread.php?tid=1866
do you have installed PCF8574 arduino library firstly?
Reply
#7
(06-19-2025, 11:44 PM)admin Wrote: do you use this demo?
https://www.kincony.com/forum/showthread.php?tid=1866
do you have installed PCF8574 arduino library firstly?
Yes, this one and https://www.kincony.com/forum/showthread.php?tid=1865

Yes, I have the library
Reply
#8
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
Reply
#9
that's factory testing firmware, after you downloaded arduino code, it will be over write on ESP32.
Reply
#10
I need to flash the controller before starting programming UART and I2C?

(06-19-2025, 11:44 PM)админ Wrote: вы используете эту демоверсию?
https://www.kincony.com/forum/showthread.php?tid=1866
вы сначала установили библиотеку PCF8574 Arduino?

Тhis Demo version dies not work correct,sorry.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)