Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,613
» Latest member: buggyrentals
» Forum threads: 4,352
» Forum posts: 21,390

Full Statistics

Online Users
There are currently 92 online users.
» 0 Member(s) | 78 Guest(s)
Amazonbot, Bing, Bytespider, Crawl, Google, PetalBot, bot

Latest Threads
KC868-A16 V3 – HTTPS GET ...
Forum: "KCS" v3 firmware
Last Post: admin
10 hours ago
» Replies: 4
» Views: 109
Shipping costs new CT Cla...
Forum: N30
Last Post: Vega
Today, 10:02 AM
» Replies: 2
» Views: 70
ds3231 added to esphome, ...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 02:59 AM
» Replies: 2
» Views: 133
how to use DS3231/SD8931 ...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 02:58 AM
» Replies: 0
» Views: 66
Whether KinCony have Alie...
Forum: KC868-AI
Last Post: admin
Yesterday, 02:25 AM
» Replies: 1
» Views: 53
how to use ethernet and w...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 12:24 AM
» Replies: 0
» Views: 64
Ethernet jack link LED se...
Forum: B16M
Last Post: admin
11-23-2026, 11:40 PM
» Replies: 1
» Views: 39
KinCony N30 – CT clamp se...
Forum: N30
Last Post: admin
11-22-2026, 11:53 PM
» Replies: 1
» Views: 60
KC868-A8v3 (KCS v3.27.4) ...
Forum: KinCony integrate with Loxone home automation
Last Post: admin
11-22-2026, 11:44 PM
» Replies: 1
» Views: 82
Single-family home automa...
Forum: DIY Project
Last Post: lulu01
11-22-2026, 10:42 PM
» Replies: 5
» Views: 1,287

  KC868-A16S ESP32 16 Channel Relay Board Released
Posted by: admin - 04-17-2023, 11:11 AM - Forum: News - Replies (13)

We have designed KC868-A16S (ESP32 16 channel relay board) for home automation DIYer. it can easy integrate to home assistant by ESPHome. the hardware have 16CH relay (MAX AC250V 10A) output + 16CH digital input + 4CH analog input, support RS485 + Ethernet + WiFi + Bluetooth + 4G SIM7600 or 2G SIM800L GSM module + DS3231 RTC module + manual control button panel.

[Image: KC868-A16S-1_01.jpg]
[Image: KC868-A16S-1_02.jpg]
[Image: KC868-A16S-1_03.jpg]
[Image: KC868-A16S-1_04.jpg]

Print this item

  Do the relay on this board support DC as well as AC
Posted by: primeroz - 04-16-2023, 05:50 PM - Forum: KC868-A4 - Replies (1)

In the docs I see the relay only indicate 10A 250V AC. 

Most relay module for Arduino I can see on AliExpress also support DC up to 30V.

Do this relay support DC as well ? 

I need to drive an alarm Siren with it which expects 12V DC 

Thanks

Print this item

  KC868-E16S board/schematic errors
Posted by: AshS - 04-16-2023, 09:41 AM - Forum: KC868-E16S/E16P - Replies (7)

I have been trying to get the A1-A4 inputs working without success.

Working from this drawing: KC868-E16S schematic

I have found some errors:

[Image: KC868-E16-S-fault.png]

I have marked up the errors in red.

A1/CHA1 is connected to R92
A2CHA2 is connected to R91
A3/CHA3 is connected to R83
A4/CHA4 is connected to R82

It seems that the labelling on the board connectors, shown below, is incorrect.

[Image: Screenshot-2023-04-16-at-11-44-40.png]

A1 is connected to GPIO36
A2 is connected to GPIO34
A3 is connected to GPIO35
A4 is connected to GPIO39


Input AA1 is connected to LM224 pin 12
Input AA2 is connected to LM224 pin 10
Input AA3 is connected to LM224 pin 5
Input AA4 is connected to LM224 pin 3

The component labelling of the board matches the corrections that I have made for you on the drawing.

Additionally, you will see that two of the zero ohm resistors on my board, R82 and R83 are open circuit, marked with an X.

Please can you tell me how this can be resolved and provide a link to a correct drawing for my board.

Please can you confirm which GPIO is connected to which Analogue input.

Thank you.

Print this item

  KC868-A6 PCB size details
Posted by: admin - 04-15-2023, 01:15 PM - Forum: KC868-A6 - No Replies


.pdf   A6 SIZE.pdf (Size: 52.1 KB / Downloads: 1137)
   

Print this item

  Control relay on KC868-E16S from K868-AM using RS485
Posted by: AshS - 04-14-2023, 09:17 PM - Forum: KC868-AM - Replies (1)

I am using ESPHome on a E16S and an AM board.

I need to control 1 relay on the E16S from the AM board using RS485.

Please can you tell me how do use this?

I have not used RS485 before.

Thank you.

Print this item

  KC868-A16 - Different digital Output modes
Posted by: oxedgar - 04-14-2023, 04:42 AM - Forum: DIY Project - Replies (8)

Hello, I try to get KCS-Firmware to work has i want...
I have one output to need to work in two modes ...
the first is  normal On-OFF toggle with one input triggered (this work fine)
The the second mode is to delayed this same output if i trigger another input (this do not work)

The result is to provide one wall button to ON Off Light and for the same light one motion PIR not temporised to work with specific delay set in this smart controller!
Can i make this with KCS firmware?

Print this item

  [Arduino source code for KC868-A8M]-06 RS485
Posted by: KinCony Support - 04-14-2023, 03:19 AM - Forum: KC868-A8M - Replies (6)

[Arduino source code for KC868-A8M]-06 RS485

Code:
#define A8M_RS485_RX 15
#define A8M_RS485_TX 13
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,A8M_RS485_RX,A8M_RS485_TX);//A8M
  Serial2.println("A8M RS485 SEND is OK!!"); 
}

void loop() {
  /*print the received data of RS485 port*/
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it
   }
  delay(200);
}



Attached Files
.zip   KC868-A8M_RS485.zip (Size: 596 bytes / Downloads: 960)
Print this item

  [Arduino source code for KC868-A8M]-05 OUTPUT
Posted by: KinCony Support - 04-14-2023, 03:16 AM - Forum: KC868-A8M - No Replies

Code:
#include "Arduino.h"
#include "PCF8574.h"

#define SDA 5
#define SCL 4

PCF8574 pcf8574_RE1(0x24,SDA,SCL);//DO
void setup()
{
    Serial.begin(115200);
for(int i=0;i<=7;i++)
{
   pcf8574_RE1.pinMode(i, OUTPUT);
}
   pcf8574_RE1.begin();

for(int i=0;i<=7;i++)
{
  pcf8574_RE1.digitalWrite(i, LOW);delay(200);
}
for(int i=0;i<=7;i++)
{
  pcf8574_RE1.digitalWrite(i, HIGH);delay(200);
}   
}

void loop()
{
  /******Output is all off by default, and can be turned
on or off manually when pressed by the keypad**************/
for(int i=0;i<=7;i++)
{
  pcf8574_RE1.digitalWrite(i, HIGH);delay(100);
}

}
[Arduino source code for KC868-A8M]-05 OUTPUT



Attached Files
.zip   KC868-A8M_OUTPUT.zip (Size: 664 bytes / Downloads: 870)
Print this item

  [Arduino source code for KC868-A8M]-04 LAN8720_UDP
Posted by: KinCony Support - 04-14-2023, 03:16 AM - Forum: KC868-A8M - No Replies

[Arduino source code for KC868-A8M]-04 LAN8720_UDP

Code:
#include <ETH.h>
#include <WiFiUdp.h>

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN   18   
#define ETH_TYPE       ETH_PHY_LAN8720
#define ETH_CLK_MODE   ETH_CLOCK_GPIO17_OUT

WiFiUDP Udp;                      //Create UDP object
unsigned int localUdpPort = 4196; //local port

// Set it based on the IP address of the router
IPAddress local_ip(192, 168, 1, 200);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);

void setup()
{
  Serial.begin(115200);
  Serial.println();
   
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH

  // write confir for static IP, gateway,subnet,dns1,dns2
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {
    Serial.println("LAN8720 Configuration failed.");
  }else{Serial.println("LAN8720 Configuration success.");}
 
/* while(!((uint32_t)ETH.localIP())) //wait for IP
  {

  }*/
  Serial.println("Connected");
  Serial.print("IP Address:");
  Serial.println(ETH.localIP());

  Udp.begin(localUdpPort); //begin UDP listener
}

void loop()
{
  int packetSize = Udp.parsePacket(); //get package size
  if (packetSize)                     //if have received data
  {
    char buf[packetSize];
    Udp.read(buf, packetSize); //read current data

    Serial.println();
    Serial.print("Received: ");
    Serial.println(buf);
    Serial.print("From IP: ");
    Serial.println(Udp.remoteIP());
    Serial.print("From Port: ");
    Serial.println(Udp.remotePort());

    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data
    Udp.print("Received: ");   
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer
    Udp.endPacket();            //send data
  }
}



Attached Files
.zip   KC868-A8M_LAN8720_UDP.zip (Size: 1.13 KB / Downloads: 897)
Print this item

  [Arduino source code for KC868-A8M]-03 INPUT
Posted by: KinCony Support - 04-14-2023, 03:15 AM - Forum: KC868-A8M - No Replies

Code:
/*KC868-A8M input trigger output*/
#include "Arduino.h"
#include "PCF8574.h"

#define SDA 5
#define SCL 4
// Set i2c address
PCF8574 pcf8574_IN1(0x22,SDA,SCL);
PCF8574 pcf8574_RE(0x24,SDA,SCL);
unsigned long timeElapsed;
void setup()
{
    Serial.begin(115200);
    delay(1000);
    pcf8574_RE.pinMode(P0, OUTPUT);
    pcf8574_RE.pinMode(P1, OUTPUT);
    pcf8574_RE.pinMode(P2, OUTPUT);
    pcf8574_RE.pinMode(P3, OUTPUT);
    pcf8574_RE.pinMode(P4, OUTPUT);
    pcf8574_RE.pinMode(P5, OUTPUT);
    pcf8574_RE.pinMode(P6, OUTPUT);
    pcf8574_RE.pinMode(P7, OUTPUT);
   
    pcf8574_IN1.pinMode(P0, INPUT);
    pcf8574_IN1.pinMode(P1, INPUT);
    pcf8574_IN1.pinMode(P2, INPUT);
    pcf8574_IN1.pinMode(P3, INPUT);
    pcf8574_IN1.pinMode(P4, INPUT);
    pcf8574_IN1.pinMode(P5, INPUT);
    pcf8574_IN1.pinMode(P6, INPUT);
    pcf8574_IN1.pinMode(P7, INPUT);
    pcf8574_IN1.begin();
    pcf8574_RE.begin();
}

void loop()
{
uint8_t val1 = pcf8574_IN1.digitalRead(P0);
uint8_t val2 = pcf8574_IN1.digitalRead(P1);
uint8_t val3 = pcf8574_IN1.digitalRead(P2);
uint8_t val4 = pcf8574_IN1.digitalRead(P3);
uint8_t val5 = pcf8574_IN1.digitalRead(P4);
uint8_t val6 = pcf8574_IN1.digitalRead(P5);
uint8_t val7 = pcf8574_IN1.digitalRead(P6);
uint8_t val8 = pcf8574_IN1.digitalRead(P7);
if (val1==LOW) {
  pcf8574_RE.digitalWrite(P0,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P0,HIGH);
if (val2==LOW) {
  pcf8574_RE.digitalWrite(P1,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P1,HIGH);
if (val3==LOW)  {
  pcf8574_RE.digitalWrite(P2,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P2,HIGH);
if (val4==LOW)  {
  pcf8574_RE.digitalWrite(P3,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P3,HIGH);
if (val5==LOW)  {
  pcf8574_RE.digitalWrite(P4,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P4,HIGH);
if (val6==LOW)  {
  pcf8574_RE.digitalWrite(P5,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P5,HIGH);
if (val7==LOW)  {
  pcf8574_RE.digitalWrite(P6,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P6,HIGH);
if (val8==LOW)  {
  pcf8574_RE.digitalWrite(P7,LOW);
  delay(100);
  }
else pcf8574_RE.digitalWrite(P7,HIGH);

    delay(300);
}
[Arduino source code for KC868-A8M]-03 INPUT



Attached Files
.zip   KC868-A8M_INPUT.zip (Size: 822 bytes / Downloads: 906)
Print this item