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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,305
» Latest member: krycha1
» Forum threads: 4,110
» Forum posts: 20,618

Full Statistics

Online Users
There are currently 111 online users.
» 0 Member(s) | 96 Guest(s)
Amazonbot, Baidu, Bytespider, Crawl, DuckDuckGo, Google, PetalBot, bot

Latest Threads
KC868-A6 ESPHome demo con...
Forum: KC868-A6
Last Post: admin
1 hour ago
» Replies: 7
» Views: 14,861
Firmware for KCS 868 A8 v...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
1 hour ago
» Replies: 1
» Views: 2
How to get started
Forum: KC868-A16
Last Post: Lomagno
8 hours ago
» Replies: 27
» Views: 7,355
KC868-A6v3 ESP32-S3 IO pi...
Forum: KC868-A6v3
Last Post: admin
Today, 08:03 AM
» Replies: 2
» Views: 2,265
The watch shows the wrong...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Today, 12:27 AM
» Replies: 4
» Views: 261
Can't make AC868-A6 V1.4S...
Forum: N30
Last Post: admin
Yesterday, 11:24 PM
» Replies: 3
» Views: 22
N30 power supply
Forum: N30
Last Post: admin
Yesterday, 11:23 PM
» Replies: 3
» Views: 75
difficulty writing to SD ...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 07:30 AM
» Replies: 2
» Views: 45
ESP32 Smart Controller – ...
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
06-29-2026, 10:09 PM
» Replies: 6
» Views: 742
KC868-COLB Tuya Integrati...
Forum: Development
Last Post: namalumfard
06-29-2026, 01:42 PM
» Replies: 11
» Views: 1,454

  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: 881)
   

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: 716)
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: 643)
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: 648)
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: 681)
Print this item

  [Arduino source code for KC868-A8M]-02 DS18B20
Posted by: KinCony Support - 04-14-2023, 03:15 AM - Forum: KC868-A8M - Replies (2)

Code:
#include <DS18B20.h>

DS18B20 ds(14);   //IO13

void setup() {
  Serial.begin(115200);
}

void loop() {
 
    Serial.printf("Temperature: %.2f C\n",ds.getTempC());
    delay(1000);
}
[Arduino source code for KC868-A8M]-02 DS18B20



Attached Files
.zip   KC868-A8M_DS18B20.zip (Size: 514 bytes / Downloads: 685)
Print this item