![]() |
|
KC868-32 arduino ide - 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-32 arduino ide (/showthread.php?tid=8623) |
KC868-32 arduino ide - martin - 10-03-2025 I have a new KC868-32. With USB connection, I loaded the exemple"01-control-one-relay" code from arduino ide. On the serial monitor I get the correct responses: "open relay 2 success" . But nothing happen on the board in reality. The relay is not switching. Do you know what could be the reason? Thank you very much indeed RE: KC868-32 arduino ide - admin - 10-03-2025 KC868-A32 or A32 Pro? take a photo of your arduino result , easy to understand. RE: KC868-32 arduino ide - martin - 10-03-2025 (10-03-2025, 08:29 AM)admin Wrote: KC868-A32 or A32 Pro? it's a KC868-A32 . Here is the arduino result: RE: KC868-32 arduino ide - admin - 10-03-2025 you can try with this arduino demo code: https://www.kincony.com/forum/showthread.php?tid=1777 RE: KC868-32 arduino ide - martin - 10-03-2025 As Im using the arduino IDE, I get the following error massage: error: no matching function for call to 'PCF8574: CF8574(TwoWire*, int, int, int)'PCF8574 pcf8574_R1(&I2Ctwo, 0x24, 15, 13); As a astarting point, Can you send me a arduino IDE code for just one relay? thank you very much indeed. RE: KC868-32 arduino ide - martin - 10-03-2025 Hello. It works now with the correct library. Could you please be so kind to send me aalso an arduino IDE code in order to access the 32 inputs? Thank you very much indeed RE: KC868-32 arduino ide - admin - 10-04-2025 this is KC868-A32 digital input arduino demo code: https://www.kincony.com/forum/showthread.php?tid=1776 RE: KC868-32 arduino ide - martin - 10-04-2025 Good day Dear Admin. Thank you very much for the code. I get unfortunatly a KO message (see hereafter). It does not work on my computer. Do you know what I could try to solve the issue? Thank you very much indeed Actually, do you have an Arduino IDE demo code which works for both inputs and outputs? RE: KC868-32 arduino ide - admin - 10-04-2025 add code to set SDA and SCL pin for i2c bus. |