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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,739
» Latest member: flooring
» Forum threads: 3,824
» Forum posts: 19,583

Full Statistics

Online Users
There are currently 15 online users.
» 0 Member(s) | 7 Guest(s)
AhrefsBot, Amazonbot, bot

Latest Threads
KinCony Z1 Problem
Forum: KC868-AG / AG Pro / AG8 / Z1
Last Post: admin
8 hours ago
» Replies: 10
» Views: 398
"KCS" v3.23.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
9 hours ago
» Replies: 0
» Views: 18
ERROR SIM not inserted SI...
Forum: KC868-E8T
Last Post: admin
9 hours ago
» Replies: 14
» Views: 386
N20 CT Shorting terminal ...
Forum: N20
Last Post: Vega
Yesterday, 08:18 PM
» Replies: 5
» Views: 280
sample code to receive ht...
Forum: F16
Last Post: admin
Yesterday, 05:28 AM
» Replies: 21
» Views: 756
Custom ESPHome firmware a...
Forum: KC868-A6
Last Post: admin
03-09-2026, 08:22 AM
» Replies: 39
» Views: 8,560
"KCS" v2.2.19 firmware BI...
Forum: "KCS" v2 firmware system
Last Post: admin
03-09-2026, 08:21 AM
» Replies: 2
» Views: 72
kWh resolution
Forum: N30
Last Post: admin
03-08-2026, 10:04 PM
» Replies: 22
» Views: 509
A32pro issue
Forum: News
Last Post: admin
03-08-2026, 05:53 AM
» Replies: 3
» Views: 56
N10 port modbus
Forum: N10
Last Post: admin
03-07-2026, 11:52 PM
» Replies: 13
» Views: 204

  KC868-D8 V4.37 new firmware update
Posted by: admin - 01-06-2022, 12:03 PM - Forum: News - Replies (5)

improvement:

when switch button work in "1 Key" mode . we let the "UP" and "DOWN" button ports with the same function. so that easy for connect two thick wire from two different places. such as this two thick wire not easy connect to one terminal pole.
   
   

update BIN file firmware by "KC868 Controller Network Bootloader" tool.

[Image: KC868-Controller-Network-Bootloader.png]
KC868 Controller Network Bootloader  

[Image: zip.png]   KC868 Controller Network Bootloader.zip

firmware BIN file

.zip   Dimmer8_V437_0106.zip (Size: 45.49 KB / Downloads: 746)

Print this item

  Smart Home Hardware
Posted by: Mati - 01-06-2022, 10:58 AM - Forum: DIY Project - Replies (7)

Hello all,
Which one of your product do you recommend for home automation.
I have RaspberryPi with home assistant. I would like to control blinds and lights via HA and also via manual wall switches. And later adding some sensors and stuff…
I was looking at Kincony relay module but there is so many options that I dont know which to choose for the best output.


Here is shematic what I would like to achieve.

   

Print this item

  KC868-A4 Serial Ports and Scl Sda ? and Voltage range of 4-20mA ports
Posted by: gokhan - 01-06-2022, 08:55 AM - Forum: KC868-HxB series Smart Controller - Replies (1)

Does  KC868-A4 model control card support to connect Nextion Screen by using Tx2 Rx2 of ESP32
or connect I2C LC by using SCL SDA ?

 I looked for but I think  KC868-A4 doesn't have SLC SDA and TX2 RX2 ports ? İf it has could you show us ?

Secondly I have 4-20mA sensor output and voltage of sensor terminals is 24V 
what happens if I connect 4-20mA sensor output to  KC868-A4 4-20mA ports 
does the 24V of supply voltage of sensor damage the ports of  KC868-A4  ? 

Huh

Print this item

  KC868-A16 ethernet work with home assistant by ESPHome configure
Posted by: admin - 01-06-2022, 02:04 AM - Forum: KC868-A16 - Replies (27)

esphome:
  name: a16
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0 


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light9"
    pin:
      pcf8574: pcf8574_hub_out_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

binary_sensor:
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

# Enable logging
logger:

# Enable Home Assistant API
api:

   

Print this item

  Controlling all wall sockets using Kincony products
Posted by: viktor - 01-05-2022, 09:23 PM - Forum: KC868-HxB series Smart Controller - Replies (5)

Hi guys,
I follow Kincony products for some time and really like all the features they bring. I'm not electrician, have no experience with smart installations yet, but have master's from computer networks. As we are moving to a new flat that requires complete re-construction, I'm playing with an idea to buy Kincony products and turn that place into a smart one. I'm not fan of wireless connections due to security, so was thinking about wiring everything - around 10 lights, 15 wall switches, 30 wall sockets and 4 external curtains. LAN network would be OK for me. I struggle with few things and maybe somebody in this forum can help me to answer them? Sorry If my questions are lame...

1. Is above described scenario OK for Kincony products?
2. I'm located in Europe and our sockets have max load of 16A. I see that KC868-H output ports have max load of 10A. So how can this control 16A sockets? Should I use those Omron relays that support 16A? If so how to chain them?
3. If I want to be able to turn on/off each wall socket separately, what products should I use and how to wire them? Max output ports I see in the list is 32, so seems like I need to do some chaining? Also, when it comes to connection, do I need to run separate L wire between relay appliance and sockets? When it comes to N and GND wires, those can be chained from one socket to another?
4. I understand that wall switches will only use 12V. Initially I thought they only use some simple data bus wire to send signal about pushed button to controller. But looking at the pictures of some Kincony switches in articles posted here, there are many ports on the back side. So how does this actually work and how many wires do I need to run to each wall switch?
5. Finally, which products should I buy to achieve all of this? It is clear that I will need to ask electrician for installation. But I would like to understand this myself as well.

Thank you.

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#08-PCF8574-DO
Posted by: KinCony Support - 01-05-2022, 08:27 AM - Forum: KC868-A16 - Replies (17)

Code 7: //The demo code is PCF8574-DO    You can copy the code to your Arduino IDE.


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

// Set i2c address
PCF8574 pcf8574_1(0x24,4,5);
PCF8574 pcf8574_2(0x25,4,5);

void setup()
{
  Serial.begin(115200);
 
  pcf8574_1.pinMode(P0, OUTPUT);
  pcf8574_1.pinMode(P1, OUTPUT);
  pcf8574_1.pinMode(P2, OUTPUT);
  pcf8574_1.pinMode(P3, OUTPUT);
  pcf8574_1.pinMode(P4, OUTPUT);
  pcf8574_1.pinMode(P5, OUTPUT);
  pcf8574_1.pinMode(P6, OUTPUT);
  pcf8574_1.pinMode(P7, OUTPUT);

  pcf8574_2.pinMode(P0, OUTPUT);
  pcf8574_2.pinMode(P1, OUTPUT);
  pcf8574_2.pinMode(P2, OUTPUT);
  pcf8574_2.pinMode(P3, OUTPUT);
  pcf8574_2.pinMode(P4, OUTPUT);
  pcf8574_2.pinMode(P5, OUTPUT);
  pcf8574_2.pinMode(P6, OUTPUT);
  pcf8574_2.pinMode(P7, OUTPUT);


    Serial.print("Init pcf8574_1...");
    if (pcf8574_1.begin()){
        Serial.println("PCF8574_1_OK");
    }else{
        Serial.println("PCF8574_1_KO");
    }

  Serial.print("Init pcf8574_2...");
  if (pcf8574_2.begin()){
    Serial.println("PCF8574_2_OK");
  }else{
    Serial.println("PCF8574_2_KO");
  }


}

void loop()
{
  pcf8574_1.digitalWrite(P7, LOW);
  delay(1000);
  pcf8574_1.digitalWrite(P7, HIGH);
  delay(1000);

  pcf8574_2.digitalWrite(P7, LOW);
  delay(1000);
  pcf8574_2.digitalWrite(P7, HIGH);
  delay(1000);
}
   
   

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#07-PCF8574-DI
Posted by: KinCony Support - 01-05-2022, 08:26 AM - Forum: KC868-A16 - Replies (4)

Code 6: //The demo code is PCF8574-DI    You can copy the code to your Arduino IDE

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

// Set i2c input address 
PCF8574 pcf8574_1(0x22,4,5);  // channel 1-8    address: 100010
PCF8574 pcf8574_2(0x21,4,5);  //channel 9-16    address: 100001



unsigned long timeElapsed;
void setup()
{
    Serial.begin(115200);
    delay(1000);
pcf8574_1.pinMode(P0, INPUT);
pcf8574_1.pinMode(P1, INPUT);
pcf8574_1.pinMode(P2, INPUT);
pcf8574_1.pinMode(P3, INPUT);
pcf8574_1.pinMode(P4, INPUT);
pcf8574_1.pinMode(P5, INPUT);
pcf8574_1.pinMode(P6, INPUT);
pcf8574_1.pinMode(P7, INPUT);

pcf8574_2.pinMode(P0, INPUT);
pcf8574_2.pinMode(P1, INPUT);
pcf8574_2.pinMode(P2, INPUT);
pcf8574_2.pinMode(P3, INPUT);
pcf8574_2.pinMode(P4, INPUT);
pcf8574_2.pinMode(P5, INPUT);
pcf8574_2.pinMode(P6, INPUT);
pcf8574_2.pinMode(P7, INPUT);

    Serial.print("Init pcf8574...");
    if (pcf8574_1.begin()){
        Serial.println("pcf8574_1_OK");
    }else{
        Serial.println("pcf8574_1_KO");
    }

  Serial.print("Init pcf8574...");
  if (pcf8574_2.begin()){
    Serial.println("pcf8574_2_OK");
  }else{
    Serial.println("pcf8574_2_KO");
  }


}

void loop()
{
uint8_t val1 = pcf8574_1.digitalRead(P0);
uint8_t val2 = pcf8574_1.digitalRead(P1);
uint8_t val3 = pcf8574_1.digitalRead(P2);
uint8_t val4 = pcf8574_1.digitalRead(P3);
uint8_t val5 = pcf8574_1.digitalRead(P4);
uint8_t val6 = pcf8574_1.digitalRead(P5);
uint8_t val7 = pcf8574_1.digitalRead(P6);
uint8_t val8 = pcf8574_1.digitalRead(P7);

uint8_t val9 = pcf8574_2.digitalRead(P0);
uint8_t val10 = pcf8574_2.digitalRead(P1);
uint8_t val11 = pcf8574_2.digitalRead(P2);
uint8_t val12 = pcf8574_2.digitalRead(P3);
uint8_t val13 = pcf8574_2.digitalRead(P4);
uint8_t val14 = pcf8574_2.digitalRead(P5);
uint8_t val15 = pcf8574_2.digitalRead(P6);
uint8_t val16 = pcf8574_2.digitalRead(P7);
 
if (val1==LOW) Serial.println("KEY1 PRESSED");
if (val2==LOW) Serial.println("KEY2 PRESSED");
if (val3==LOW) Serial.println("KEY3 PRESSED");
if (val4==LOW) Serial.println("KEY4 PRESSED");
if (val5==LOW) Serial.println("KEY5 PRESSED");
if (val6==LOW) Serial.println("KEY6 PRESSED");
if (val7==LOW) Serial.println("KEY7 PRESSED");
if (val8==LOW) Serial.println("KEY8 PRESSED");

if (val9==LOW) Serial.println("KEY1 PRESSED");
if (val10==LOW) Serial.println("KEY2 PRESSED");
if (val11==LOW) Serial.println("KEY3 PRESSED");
if (val12==LOW) Serial.println("KEY4 PRESSED");
if (val13==LOW) Serial.println("KEY5 PRESSED");
if (val14==LOW) Serial.println("KEY6 PRESSED");
if (val15==LOW) Serial.println("KEY7 PRESSED");
if (val16==LOW) Serial.println("KEY8 PRESSED");
delay(300);
}
   
   

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#06-LAN8720-UDP
Posted by: KinCony Support - 01-05-2022, 08:06 AM - Forum: KC868-A16 - No Replies

Code 5: //The demo code is LAN8720-UDP    You can copy the code to your Arduino IDE

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
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
  }
}
   

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#05-DS18B20
Posted by: KinCony Support - 01-05-2022, 08:04 AM - Forum: KC868-A16 - No Replies

Code4: //The demo code is DS18B20    You can copy the code to your Arduino IDE

Code:
#include <DS18B20.h>

#define LOW_ALARM 10
#define HIGH_ALARM 15

DS18B20 ds(33);   //PIN #33
uint8_t address[] = {40, 168, 111, 11, 44, 32, 1, 185};
uint8_t selected;

void setup() {
  Serial.begin(9600);
  selected = ds.select(address);

  if (selected) {
    ds.setAlarms(LOW_ALARM, HIGH_ALARM);
  } else {
    Serial.println("Device not found!");
  }
}

void loop() {
  if (selected) {
    if (ds.hasAlarm()) {
      Serial.print("Warning! Temperature is ");
      Serial.print(ds.getTempC());
      Serial.println(" C");
    }
  } else {
    Serial.println("Device not found!");
  }

  //delay(10000);
}
       

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#04-ADC INPUT
Posted by: KinCony Support - 01-05-2022, 08:01 AM - Forum: KC868-A16 - Replies (2)

Code 3: //The demo code is ADC INPUT    You can copy the code to your Arduino IDE

Code:
#include "Arduino.h"

#define ANALOG_A1   36
#define ANALOG_A2   34
#define ANALOG_A1   35
#define ANALOG_A2   39

void setup()
{
    Serial.begin(115200);
    delay(1000);

  pinMode(ANALOG_A1,INPUT);
  pinMode(ANALOG_A2,INPUT);
  pinMode(ANALOG_A3,INPUT);
  pinMode(ANALOG_A4,INPUT);
}

void loop()
{
  delay(500);
  Serial.printf("Current Reading A1 on Pin(%d)=%d\n",ANALOG_A1,analogRead(ANALOG_A1));
  Serial.printf("Current Reading A2 on Pin(%d)=%d\n",ANALOG_A2,analogRead(ANALOG_A2));
  Serial.printf("Current Reading A1 on Pin(%d)=%d\n",ANALOG_A3,analogRead(ANALOG_A3));
  Serial.printf("Current Reading A2 on Pin(%d)=%d\n",ANALOG_A4,analogRead(ANALOG_A4));
}

Print this item