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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,747
» Latest member: InnovationM
» Forum threads: 3,826
» Forum posts: 19,587

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 23 Guest(s)
AhrefsBot, Amazonbot, Crawl, PetalBot, bot

Latest Threads
KC868-a8v3 IFTTT for Airc...
Forum: KC868-A2v3
Last Post: admin
1 hour ago
» Replies: 1
» Views: 2
G1 cannot flash latest fi...
Forum: G1
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
KinCony Z1 Problem
Forum: KC868-AG / AG Pro / AG8 / Z1
Last Post: admin
Yesterday, 12:14 AM
» Replies: 10
» Views: 423
"KCS" v3.23.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 12:13 AM
» Replies: 0
» Views: 61
ERROR SIM not inserted SI...
Forum: KC868-E8T
Last Post: admin
03-10-2026, 11:46 PM
» Replies: 14
» Views: 420
N20 CT Shorting terminal ...
Forum: N20
Last Post: Vega
03-10-2026, 08:18 PM
» Replies: 5
» Views: 286
sample code to receive ht...
Forum: F16
Last Post: admin
03-10-2026, 05:28 AM
» Replies: 21
» Views: 778
Custom ESPHome firmware a...
Forum: KC868-A6
Last Post: admin
03-09-2026, 08:22 AM
» Replies: 39
» Views: 8,653
"KCS" v2.2.19 firmware BI...
Forum: "KCS" v2 firmware system
Last Post: admin
03-09-2026, 08:21 AM
» Replies: 2
» Views: 93
kWh resolution
Forum: N30
Last Post: admin
03-08-2026, 10:04 PM
» Replies: 22
» Views: 546

Lightbulb [Arduino IDE demo source code for KC868-AG]--#04--IR receive code
Posted by: KinCony Support - 01-27-2022, 02:34 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (1)

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

Code:
#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {

  Serial.begin(9600);
  IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK, USE_DEFAULT_FEEDBACK_LED_PIN);
      //IR_RECEIVE_PIN is defined in PinDefinitionsAndMore.h file   IO23
}

void loop() {


    if (IrReceiver.decode()) {

       IrReceiver.printIRResultShort(&Serial);
        if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
            IrReceiver.printIRResultRawFormatted(&Serial, true);
        }
        Serial.println();
     IrReceiver.resume();

    }
}

   

.zip   KC868-AG-IR_receive.zip (Size: 2.54 KB / Downloads: 673)

Print this item

Lightbulb [Arduino IDE demo source code for KC868-AG]--#03--IR send code
Posted by: KinCony Support - 01-27-2022, 02:08 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - No Replies

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

Code:
#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {

  Serial.begin(9600);
  IrSender.begin(IR_SEND_PIN, ENABLE_LED_FEEDBACK);// IR_SEND_PIN is defined in PinDefinitionsAndMore.h file

}

  uint16_t sAddress = 0x78;
  uint8_t sCommand = 0xCD;
  uint8_t sRepeats = 0;

void loop() {
  IrSender.sendNEC(sAddress, sCommand, sRepeats);
  delay(1000);
}

   
you can download the zip file.


.zip   KC868-AG_IR_send.zip (Size: 3.14 KB / Downloads: 706)

Print this item

Lightbulb [Arduino IDE demo source code for KC868-AG]--#02 433Mhz receive code
Posted by: KinCony Support - 01-27-2022, 01:36 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - No Replies

Code 2: //The demo code is 433Mhz receive code   You can copy the code to your Arduino IDE

Code:
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(13));// IO13  433 RECEIVE PIN
}

void loop() {
  if (mySwitch.available()) {
   
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );

    mySwitch.resetAvailable();
  }
}
   
.zip   RF-receiver.zip (Size: 393 bytes / Downloads: 664)

Print this item

Lightbulb [Arduino IDE demo source code for KC868-AG]--#01-433Mhz send code
Posted by: KinCony Support - 01-27-2022, 01:31 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - No Replies

Code 1: //The demo code is RF-send  You can copy the code to your Arduino IDE

Code:
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableTransmit(digitalPinToInterrupt(22)); //IO22 433Mhz send pin
}

void loop() {
  mySwitch.switchOn("11111", "00010");
  delay(1000);
  mySwitch.switchOff("11111", "00010");
  delay(1000);

  mySwitch.send(5393, 24);
  delay(1000); 
  mySwitch.send(5396, 24);
  delay(1000); 

  mySwitch.send("000000000001010100010001");
  delay(1000); 
  mySwitch.send("000000000001010100010100");
  delay(1000);

  mySwitch.sendTriState("00000FFF0F0F");
  delay(1000); 
  mySwitch.sendTriState("00000FFF0FF0");
  delay(1000);
}
   

.zip   433-sender-code.zip (Size: 811 bytes / Downloads: 682)

Print this item

  H32BS and COLB communication
Posted by: autind - 01-27-2022, 12:25 AM - Forum: KC868-HxB series Smart Controller - Replies (13)

1st - To use KCB868-H32BS connected to KCB868-COLB, with RS485 - Modbus communication, what network configurations are necessary?

2nd - Using the COLB with mqtt protocol, how to read the analog values?


3rd - To use COLD using SCADA software, which mosbus is it possible to use, RTU or TCPip?
Is it possible to configure the master-slave mode and the controller Id?

Print this item

  What i need and how communicate , and other ques.
Posted by: tahmasbi - 01-26-2022, 01:30 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

1-  can i use single pole wall switch (mechanical switch) .
2-If i use small ethernet relay installed under the wall switch for each room and connect the other side of ethernet to an switch is less expensive than all 'L' wires goes from DB for each light , because in first case it will have only on 'L' wire and all other switches in same room take from it , That's true or not?
3-What exactly needs to control house with 80 light switch (each switch my control 4 or 6 bulbs) , and control it from PC and from App?
4-Are there a way to control the thermostat?
5-Is the wire goes  from KC868 to the wall switch and then to the 3 bulb?
6-Is there any diagram that shows not only inside the DB , But also how to goes to wall switch and then to bulb?

Print this item

  Chain KC868-H32B and KC868-H32L
Posted by: tdh - 01-26-2022, 07:08 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hi, 

I have both the KC868-H32B and KC868-H32L. 

Is it possible to extend / chain the two controllers so i have 64 relay's? 

And is it then also possible to control them over HTTP like : 
http://192.168.1.10/sw_ctl.cgi?Relay64=ON

Thanks!!

Print this item

  KC868-AG ESP32 I/O pin define
Posted by: admin - 01-26-2022, 05:00 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (14)

ESP32 PINs define of  KC868-AG

IR receiver: IO23
IR sender: IO2

433MHz receiver: IO13
433MHz sender: IO22

Buzzer: IO4

LED: IO26,IO27,IO14  (if you want to use , need solder 3 LEDs (0603)  on the bottom of PCB by yourself)

free GPIO:
IO19,IO18,IO16,IO33,IO35,IO39
IO13,IO21,IO17,IO32,IO34,IO36

Print this item

  KC868-A16 ESP32 I/O pin define
Posted by: admin - 01-14-2022, 11:29 PM - Forum: KC868-A16 - Replies (10)

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

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24
Relay_IIC_address 0x25

Input_IIC_address 0x21
Input_IIC_address 0x22

DS18B20/DHT11/DHT21/LED strip -1: 32
DS18B20/DHT11/DHT21/LED strip -2: 33
DS18B20/DHT11/DHT21/LED strip -2: 14


RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15

Ethernet (LAN8720) I/O define:

#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

RS485:
RXD:16
TXD:13

Print this item

  ESP Web Tools for KC868-A series board
Posted by: admin - 01-13-2022, 02:35 AM - Forum: KC868-A series and Uair Smart Controller - No Replies

online web install firmware for KC868-A4: https://hzkincony.github.io/kc868-a4/
online web install firmware for KC868-A8: https://hzkincony.github.io/kc868-a8/
online web install firmware for KC868-A16: https://hzkincony.github.io/kc868-a16/
online web install firmware for KC868-Uair: https://hzkincony.github.io/kc868-uair/
online web install firmware for KC868-AG: https://hzkincony.github.io/kc868-ag/

Print this item