Smart Home Automation Forum
KC868-A32 I2C communication with arduino - 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-A32/A32 Pro (https://www.kincony.com/forum/forumdisplay.php?fid=27)
+--- Thread: KC868-A32 I2C communication with arduino (/showthread.php?tid=6187)



KC868-A32 I2C communication with arduino - SixSixOne - 07-24-2024

I've purchased a KC868-A32 module and its functionallity is as expected.

I try to implement an I2C communication between the KC868-A32 module and an arduino device in order to control PWD IOs of the arduino through the KC868-A32 module (i.e. through Home assistant).

Could you please provide some instructions or an example on the code for the arduino device?

Thank you in advance
SSO


RE: KC868-A32 I2C communication with arduino - admin - 07-24-2024

i don't suggest to control by i2c. you can use by RS485 connect to other device.
if you MUST want use by i2c. OK, just add your i2c device driver into arduino main program code.


RE: KC868-A32 I2C communication with arduino - SixSixOne - 08-08-2024

(07-24-2024, 09:58 PM)admin Wrote: i don't suggest to control by i2c. you can use by RS485 connect to other device.
if you MUST want use by i2c. OK, just add your i2c device driver into arduino main program code.

Thank you for your reply.
May I have the correct tx / rx for UART of the KC868-A32 module?

uart:
  baud_rate: 9600
  debug:
    direction: BOTH
    dummy_receiver: true
    after:
      timeout: 10ms
  tx_pin: XX
  rx_pin: XX


Tks a lot
SSO


RE: KC868-A32 I2C communication with arduino - admin - 08-08-2024

Extend serial port on PCB (3.3v level):
RXD:GPIO33
TXD:GPIO32