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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,213
» Latest member: Geedupd
» Forum threads: 4,093
» Forum posts: 20,529

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 30 Guest(s)
AhrefsBot, Amazonbot, Baidu, Bing, Google, PetalBot, bot

Latest Threads
KCS v2 relay state after ...
Forum: "KCS" v2 firmware system
Last Post: admin
3 hours ago
» Replies: 1
» Views: 3
Multiple phase L1,L2,L3
Forum: N20
Last Post: admin
5 hours ago
» Replies: 7
» Views: 359
Request for 230VAC LEDs /...
Forum: Development
Last Post: admin
8 hours ago
» Replies: 5
» Views: 38
KC868-a6 2 analog output...
Forum: KC868-A6
Last Post: admin
Yesterday, 01:21 PM
» Replies: 7
» Views: 114
Single-family home automa...
Forum: DIY Project
Last Post: Jan_W
06-16-2026, 06:07 AM
» Replies: 3
» Views: 150
Kincony A4s
Forum: KC868-A4S
Last Post: admin
06-15-2026, 11:27 PM
» Replies: 1
» Views: 61
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
06-15-2026, 11:26 PM
» Replies: 9
» Views: 838
The watch shows the wrong...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
06-15-2026, 11:25 PM
» Replies: 1
» Views: 69
KC868-A16v3 integration w...
Forum: KC868-A series and Uair Smart Controller
Last Post: rosnoteh
06-15-2026, 08:26 PM
» Replies: 2
» Views: 176
[Arduino IDE demo source ...
Forum: KC868-A8S
Last Post: admin
06-15-2026, 06:16 AM
» Replies: 0
» Views: 74

  KCS v2 relay state after reboot
Posted by: rosebl22 - 4 hours ago - Forum: "KCS" v2 firmware system - Replies (1)

Hi,
In KCS v2, can relay states be automatically restored after a power loss and reboot, or do they always start from the default state?
Thanks.

Print this item

  Request for 230VAC LEDs / Downlight
Posted by: benoitd54 - Yesterday, 06:08 AM - Forum: Development - Replies (5)

Hello, 

I'm currently building my house and i'm planning to be able to adjust the lighting in all my rooms (30 zones).

I came across your DIN rail modules, which I think are perfect. Great job!! 

However, a have a quick question: how can I dim 230VAC dimmable LED spotlights / downlight from 0% to 100% without any flickering and which the real 0% (using a triac?) ? 

Best regards

Benoit

Print this item

  The watch shows the wrong time in standalone mode.
Posted by: rosnoteh - 06-15-2026, 08:06 PM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

KC868-A16v3, firmware v3.25.0, battery 3,05V.
The watch shows the wrong time in standalone mode. The controller is connected to a local network without internet access. Time zone - UTC+3.
Turn on the controller. Click "Synchronize browser time".
The controller's clock shows the same time as the computer's clock. Turn off the controller, and then turn on the controller. The controller clock shows the time 3 hours later.
Turn off the controller again, and then turn on the controller. The controller clock shows the time 6 hours later.

Print this item

  Kincony A4s
Posted by: Ashiq - 06-15-2026, 09:57 AM - Forum: KC868-A4S - Replies (1)

"Is there a feature or logic in the Kincony A4S firmware that supports the following switch behavior: a single press toggles the light ON/OFF, while pressing and holding increases the brightness, and releasing then pressing and holding again decreases the brightness?"

Print this item

  [Arduino IDE demo source code for KC868-A8S]--#18-Read Modbus sensor by RS485
Posted by: admin - 06-15-2026, 06:16 AM - Forum: KC868-A8S - No Replies

KC868-A8S read KinCony TS modbus sensor by RS485.  USB print the temperature and humidity value.
   
   

Code:
/*
  Made by KinCony IoT
  https://www.kincony.com
*/

#include <HardwareSerial.h>

#define RS485_RX 32
#define RS485_TX 33

HardwareSerial RS485Serial(2);

// Read input register: ID=1, Function=04, Start=0000, Quantity=0002
uint8_t readCmd[] = {
  0x01, 0x04, 0x00, 0x00,
  0x00, 0x02, 0x71, 0xCB
};

uint16_t modbusCRC(uint8_t *buf, int len)
{
  uint16_t crc = 0xFFFF;

  for (int pos = 0; pos < len; pos++) {
    crc ^= buf[pos];

    for (int i = 0; i < 8; i++) {
      if (crc & 0x0001) {
        crc >>= 1;
        crc ^= 0xA001;
      } else {
        crc >>= 1;
      }
    }
  }

  return crc;
}

float decodeTemperature(uint16_t value)
{
  if (value >= 10000) {
    return -1.0 * (value - 10000) * 0.1;
  } else {
    return value * 0.1;
  }
}

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

  RS485Serial.begin(
    9600,
    SERIAL_8N1,
    RS485_RX,
    RS485_TX
  );

  delay(1000);

  Serial.println();
  Serial.println("RS485 Modbus Temperature & Humidity Sensor");
}

void loop()
{
  while (RS485Serial.available()) {
    RS485Serial.read();   // clear old data
  }

  RS485Serial.write(readCmd, sizeof(readCmd));
  RS485Serial.flush();

  delay(200);

  uint8_t buf[32];
  int len = 0;

  while (RS485Serial.available()) {
    buf[len++] = RS485Serial.read();
    if (len >= sizeof(buf)) break;
  }

  if (len == 9) {
    Serial.print("RX: ");
    for (int i = 0; i < len; i++) {
      if (buf[i] < 0x10) Serial.print("0");
      Serial.print(buf[i], HEX);
      Serial.print(" ");
    }
    Serial.println();

    uint16_t crc_recv = buf[7] | (buf[8] << 8);
    uint16_t crc_calc = modbusCRC(buf, 7);

    if (crc_recv == crc_calc) {
      uint16_t temp_raw = (buf[3] << 8) | buf[4];
      uint16_t hum_raw  = (buf[5] << 8) | buf[6];

      float temperature = decodeTemperature(temp_raw);
      float humidity = hum_raw * 0.1;

      Serial.print("Temperature: ");
      Serial.print(temperature, 1);
      Serial.print(" C   ");

      Serial.print("Humidity: ");
      Serial.print(humidity, 1);
      Serial.println(" %RH");
    } else {
      Serial.println("CRC Error");
    }
  } else {
    Serial.print("Response length error, len=");
    Serial.println(len);
  }

  delay(1000);
}
arduino source code download:

.zip   rs485-sensor.zip (Size: 1.02 KB / Downloads: 14)
ESP32 BIN file download (just download to ESP32 module begin 0x0 address):

.zip   rs485-sensor.ino.merged.zip (Size: 169.79 KB / Downloads: 13)

Print this item

  KC868-a6 2 analog outputs (DAC)
Posted by: bikovalexand - 06-14-2026, 10:26 AM - Forum: KC868-A6 - Replies (7)

Hello, I'm working on a project that uses both outputs of a KC868-a6 v1.33 controller (0-10 V DAC). I'm writing the program in OpenPLC Editor.
The signal on both outputs changes proportionally, but not from 0-10 V, only from 0-3.3 V. What could be the problem?
 I tried downloading the latest version of KCS (v.2.2.20) to the controller, connecting to it via WiFi, and changing the output values. They output from 0 V to 3.3 V. I understand the LM258DR should amplify the signal by three times? Perhaps it's not working?
Thank you

Print this item

  Wiegand
Posted by: williemcvillage - 06-12-2026, 06:48 PM - Forum: KC868-A16 - Replies (3)

Hi, is there a way to use any of the GPIOs of this board to connect a Wiegand reader?

Thanks

Print this item

  Programmation kc868-A8 & Axx
Posted by: H_spadacini - 06-12-2026, 05:22 PM - Forum: News - Replies (1)

Monsieur l'administrateur;
vu que le KC868A8 est programmable par editor plc serait-il possible de faire de même avec son grand frere le KC868A16 ainsi que pour le kc868A32 car il semble que c'est les memes plateformes avec plus d'entrees et sorties sur le bus i2c en modifiant la boucle programmable en c++

Print this item

  Tiny Alarm board after flashing seems to no longer working
Posted by: algaema - 06-12-2026, 01:29 PM - Forum: TA - Replies (7)

Hi Kincony,

I have tried to flash newer version firmware (tried KCS_KC_TA_V3.25.0.zip) from a Mac. Tried multiple methods, including the use of a Windows VM with the official tool, and web.esphome.io. But while both tool reported success, when I turn off and on the board it is not able to respond on network. I have even tried to use the method of removing power, pressing the DW button, and then attaching the power, and then used the official tool to copy firmware using a low (115200) baud rate, while the tool has reported success, after reset the board it is just not responding on network (I can verify that on the switch statistics, in which the "bytes sent" in switch has high values, however "bytes received" in switch is always showing 0, indicating that the Tiny Alarm board is not responding any packet at all. 

I have also tested to use USB C to USB A cable instead of a USB C to USB C cable as I see the youtube video is using one of that. 

May I ask how is there a way to troubleshoot a ESP32S3 board boot up message to see if the firmware is correctly copied?

Print this item

  [arduino code examples for KC868-AGv3]-03 IR send & receive
Posted by: admin - 06-11-2026, 08:44 PM - Forum: KC868-AGv3 - No Replies

Code:
/*
* SimpleReceiver.cpp
*
* Demonstrates receiving ONLY NEC protocol IR codes with IRremote
* If no protocol is defined, all protocols (except Bang&Olufsen) are active.
*
*  This file is part of Arduino-IRremote https://github.com/Arduino-IRremote/Arduino-IRremote.
*
************************************************************************************
* MIT License
*
* Copyright (c) 2020-2025 Armin Joachimsmeyer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
* to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
************************************************************************************
*/

#include <Arduino.h>
#include <IRremote.hpp> // include the library

uint8_t sender_pins[] = {47, 43,44};
uint8_t receiver_pin = 1;

int sender_pin_num = sizeof(sender_pins) / sizeof(sender_pins[0]);
uint8_t sender_pin_idx = 0;
uint8_t receive_cnt = 0;
uint8_t sCommand = 0x34;
uint8_t sRepeats = 0;

void setup() {
    Serial.begin(115200);
    IrReceiver.begin(receiver_pin, false);
    IrSender.begin(sender_pins[0]);

    xTaskCreate(
      sendIr,    // Function that should be called
      "Send IR",   // Name of the task (for debugging)
      4096,            // Stack size (bytes)
      NULL,            // Parameter to pass
      1,               // Task priority
      NULL             // Task handle
  );
}

void sendIr(void * parameter) {
 
  delay(1000);
  IrSender.setSendPin(47);
  IrSender.sendNEC(0x00, sCommand, sRepeats);
  Serial.printf("send by pin: %d\n", 47);
  delay(1000);

  IrSender.setSendPin(43);
  IrSender.sendNEC(0x00, sCommand, sRepeats);
  Serial.printf("send by pin: %d\n", 43);

  delay(1000);
  IrSender.setSendPin(44);
  IrSender.sendNEC(0x00, sCommand, sRepeats);
  Serial.printf("send by pin: %d\n", 44);
  delay(1000);

  vTaskDelete(NULL);
}

void loop() {
  if (IrReceiver.decode()) {
      Serial.println("recv data");
      if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
          Serial.println(F("Received noise or an unknown (or not yet enabled) protocol"));
          // We have an unknown protocol here, print extended info
          IrReceiver.printIRResultRawFormatted(&Serial, true);

          IrReceiver.resume(); // Do it here, to preserve raw data for printing with printIRResultRawFormatted()
      } else {
          IrReceiver.resume(); // Early enable receiving of the next IR frame

          IrReceiver.printIRResultShort(&Serial);
          IrReceiver.printIRSendUsage(&Serial);
      }
  } else {
    // Serial.println("no data");
  }
}
arduino ino file download: 

.zip   SimpleSendReceiver.zip (Size: 1.63 KB / Downloads: 35)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   SimpleSendReceiver.ino.merged.zip (Size: 198.05 KB / Downloads: 32)

Print this item