Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-32 arduino ide
#1
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
Reply
#2
KC868-A32 or A32 Pro?
take a photo of your arduino result , easy to understand.
Reply
#3
(10-03-2025, 08:29 AM)admin Wrote: KC868-A32 or A32 Pro?
take a photo of your arduino result , easy to understand.

it's a KC868-A32 . Here is the arduino result:


Attached Files Image(s)
   
Reply
#4
you can try with this arduino demo code:
https://www.kincony.com/forum/showthread.php?tid=1777
Reply
#5
As Im using the arduino IDE, I get the following error massage: error: no matching function for call to 'PCF8574:TongueCF8574(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.


Attached Files Image(s)
   
Reply
#6
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
Reply
#7
this is KC868-A32 digital input arduino demo code: https://www.kincony.com/forum/showthread.php?tid=1776
Reply
#8
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?


Attached Files Image(s)
   
Reply
#9
add code to set SDA and SCL pin for i2c bus.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)