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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,447
» Latest member: bhushan1301
» Forum threads: 4,326
» Forum posts: 21,312

Full Statistics

Online Users
There are currently 682 online users.
» 0 Member(s) | 663 Guest(s)
AhrefsBot, Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, bot

Latest Threads
kc868-a6 analog input
Forum: KC868-A6
Last Post: admin
Today, 09:56 AM
» Replies: 3
» Views: 395
F24 ESPHome yaml for home...
Forum: F24
Last Post: admin
Today, 07:25 AM
» Replies: 0
» Views: 10
[arduino code examples fo...
Forum: F24
Last Post: admin
Today, 05:35 AM
» Replies: 0
» Views: 13
[arduino code examples fo...
Forum: F24
Last Post: admin
Today, 05:33 AM
» Replies: 0
» Views: 13
[Arduino source code for ...
Forum: KC868-A2
Last Post: admin
Today, 05:31 AM
» Replies: 6
» Views: 1,752
KC868-A4 – Relay 1 clicks...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-03-2026, 11:58 PM
» Replies: 3
» Views: 51
⚡ 40 Buttons, 36 Lighting...
Forum: DIY Project
Last Post: lulu01
11-03-2026, 07:34 PM
» Replies: 24
» Views: 3,046
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 03:04 AM
» Replies: 0
» Views: 23
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 01:34 AM
» Replies: 0
» Views: 26
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 12:15 AM
» Replies: 0
» Views: 27

  Not able to upload arduino code to A16v3 board
Posted by: ematicenergies - 04-09-2025, 01:14 PM - Forum: KC868-A16v3 - Replies (10)

I am using a kincony A16v3 board for my project. I have tried to upload my arduino code to the board. But the code is not uploading. I have powered the board with 12v supply. And have connected the board to my pc via usb type c cable. 

Chosen nodemcu 32s in boards. But its not working. How to check what have gone wrong ?. Or if any further details required, let me know

Print this item

Question A16v3 low voltage inputs
Posted by: jaydubnz - 04-09-2025, 05:58 AM - Forum: KC868-A16 - Replies (8)

Hi guys,

I have PIR sensors all over the house connected to an old alarm system. The voltage on the NO contacts are between 1.5v to 3v, which I think is too low for the digital inputs 1 to 16 to register as ON.
I know I can connect to the 5 analog inputs, which does detect the low voltage, but I have ~15 sensors. Is there a way to make these low voltage PIR sensors detectable on digital inputs 1 to 16? Without using a ton of dry contact relays haha

Thank you in advance!

Print this item

Photo Kilcony RS-485 SHT30 Sensor - Setting MODBUS Address
Posted by: egionet - 04-08-2025, 11:18 PM - Forum: Customer project example - Replies (2)

Hello,

I tried changing the MODBUS address from MODBUS ID 1 to 15 on the RS-485 SHT30 temperature and relative humidity module through a function 6 write, disconnected the connector for 5 to 10 seconds, reconnected the connector, and polled the sensor over MODBUS. However, the device only responds to MODBUS ID 1, but I can see the updated MODBUS address in register 0x0a as 0x0F.
   
Is there another setting that has to be configured?

Print this item

  Issues with STA mode
Posted by: DavidSzilasi - 04-07-2025, 07:53 PM - Forum: KC868-A16 - Replies (2)

Hello!

I recently purchased a KC868-a16 and Im in the process of exploring the KCS server. Yesterday I successfully downloaded the firmware onto the board and was able to scan the ethernet network of the board. I used the eth IP to sign into the website but when I switch the networks setting from AP to STA, there was no STA Wifi IP address after refresh. Can you please advise me on what I may be doing wrong.

Thank you!



Attached Files Thumbnail(s)
       
Image(s)
   
Print this item

  adding KC868-HA RS485 zo HA or ESPHome
Posted by: saymyname - 04-07-2025, 07:06 PM - Forum: KC868-HA /HA v2 - Replies (15)

Hi,

i have succefully integrate board A16V3 via MQTT auto discovery to Homeassistant. But i didnt found how can i add now KC868-HAv2. If i create new device in ESPHome and copy data from github:
https://github.com/hzkincony/esphome-kc868-ha

I cant install it, ESP gives me error:


Failed config
'esphome' section missing from configuration. Please make sure your configuration has an 'esphome:' line in it.

Do i also need to add main board A16V3 to ESP home and just add those lines to config file of A16V3, or can KC868-HAv2 be add as standalone?

Print this item

  M30 CT ratio
Posted by: Linus68 - 04-07-2025, 02:29 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (5)

Hi

I need to use other CT with different CT ratio.
In ESPHome I can Change IT.
But need IT in the Webpage (stand alone use).
IS IT planed to integrate IT in the UI?
Or IS the source Code available?

BR
Linus

Print this item

  MB Specs - 8A per channel? variable voltage per channel?
Posted by: gregoryx - 04-07-2025, 05:24 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (8)

Looking to use an MB board (KinCony ESP32 Battery Monitor) to monitor DC circuit power. 

I can't tell from the specification if it's 8A per channel or 8A for all 16 channels?

And it's unclear if it can be different voltage on every channel? Can I have 12VDC on one channel and 24VDC on another channel and have correct measurements on both? 

thank you.
-Greg

Print this item

  Low output voltage
Posted by: Knightrider - 04-05-2025, 01:00 PM - Forum: KC868-A16 - Replies (6)

I am trying to use one of the outputs to drive a 12v siren directly.  I have a 12v power supply, with 12v passing from the input to the 12v terminal on the output block.  If I connect my siren to the 12v and output terminal on the block, it doesn't sound properly, and if I measure the voltage across them with a multimeter I am only seeing ~10.5v.
Is this a limitation of the board, or have I wired something wrong?

Print this item

  KC868-D16 firmware update
Posted by: Gazoved - 04-03-2025, 05:48 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

Good day!
Dear hardware developers ( admin ), do you have any plans to update firmware for KC868-D16 controllers?
The current firmware is D16_V1.08?

Print this item

  [arduino code examples for TA]-08 how to communication with Tuya WiFi module
Posted by: admin - 04-03-2025, 06:55 AM - Forum: TA - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This Arduino program implements communication between ESP32 and the Tuya module
* via UART (serial communication). It listens for specific packets from the Tuya module
* and responds according to the predefined commands.
*
* Functionality:
* 1. When the ESP32 receives a heartbeat packet (55 AA 00 00 00 00 FF),
*    it sends a heartbeat response (55 AA 03 00 00 01 00 03).
* 2. When the ESP32 receives a product information request (55 AA 00 01 00 00 00),
*    it sends a product information response (55 AA 03 01 ...).
* 3. When the ESP32 receives a work mode request (55 AA 00 02 00 00 01),
*    it sends a work mode response (55 AA 03 02 00 03 10 1C 14 47).
* 4. When the ESP32 receives a network status request (55 AA 00 03 00 01 00 03),
*    it sends a network status response (55 AA 03 03 00 00 05).
* 5. Subsequent heartbeat packets (55 AA 00 00 00 00 FF) are responded to with
*    (55 AA 03 00 00 01 01 04).
*/

#include <HardwareSerial.h>

// Create a HardwareSerial object for UART communication on ESP32
HardwareSerial tuyaSerial(1);

// Define the GPIO pins for TXD and RXD used for serial communication
#define TXD_PIN 16
#define RXD_PIN 17

// Set the baud rate for Tuya module communication to 9600
#define BAUD_RATE 9600

// Define the response packets for different commands from the Tuya module

// Heartbeat response: 55 AA 03 00 00 01 00 03
uint8_t heartBeatResponse[] = {0x55, 0xAA, 0x03, 0x00, 0x00, 0x01, 0x00, 0x03};

// Product info response with a detailed payload (e.g., firmware version, product name, etc.)
uint8_t productInfoResponse[] = {
  0x55, 0xAA, 0x03, 0x01, 0x00, 0x2A, 0x7B, 0x22, 0x70, 0x22, 0x3A, 0x22,
  0x63, 0x68, 0x6D, 0x7A, 0x6C, 0x67, 0x6A, 0x70, 0x61, 0x64, 0x70, 0x71,
  0x78, 0x64, 0x6B, 0x6F, 0x22, 0x2C, 0x22, 0x76, 0x22, 0x3A, 0x22, 0x31,
  0x2E, 0x30, 0x2E, 0x30, 0x22, 0x2C, 0x22, 0x6D, 0x22, 0x3A, 0x30, 0x7D, 0xAA
};

// Work mode response: 55 AA 03 02 00 03 10 1C 14 47
uint8_t workModeResponse[] = {0x55, 0xAA, 0x03, 0x02, 0x00, 0x03, 0x10, 0x1C, 0x14, 0x47};

// Network status response: 55 AA 03 03 00 00 05
uint8_t netStatusResponse[] = {0x55, 0xAA, 0x03, 0x03, 0x00, 0x00, 0x05};

// Subsequent heartbeat response: 55 AA 03 00 00 01 01 04
uint8_t secondHeartBeatResponse[] = {0x55, 0xAA, 0x03, 0x00, 0x00, 0x01, 0x01, 0x04};

void setup() {
  // Initialize the serial communication for debugging at 115200 baud rate
  Serial.begin(115200);

  // Initialize the serial communication with Tuya module at 9600 baud rate
  tuyaSerial.begin(BAUD_RATE, SERIAL_8N1, RXD_PIN, TXD_PIN);

  // Debug message to indicate that the serial communication has been initialized
  Serial.println("ESP32-Tuya serial communication initialized.");
}

void loop() {
  // Check if data is available from the Tuya module
  if (tuyaSerial.available()) {
    uint8_t incomingPacket[7];  // Array to store the received packet
    size_t bytesRead = tuyaSerial.readBytes(incomingPacket, 7); // Read 7 bytes from Tuya

    // Check if the packet has a valid header (0x55, 0xAA)
    if (bytesRead >= 2 && incomingPacket[0] == 0x55 && incomingPacket[1] == 0xAA) {
      // If less than 7 bytes were received, wait for more data
      if (bytesRead < 7) {
        Serial.println("Incomplete packet received. Waiting for remaining bytes...");
        delay(50); // Delay to allow more data to be received
        while (tuyaSerial.available()) {
          incomingPacket[bytesRead++] = tuyaSerial.read(); // Continue reading remaining bytes
          if (bytesRead >= 7) break;
        }
      }

      // If still less than 7 bytes, discard the incomplete packet
      if (bytesRead < 7) {
        Serial.println("Error: Incomplete packet discarded.");
        return;
      }

      // Debug: Print the received packet for logging
      Serial.print("Received packet: ");
      for (size_t i = 0; i < 7; i++) {
        Serial.print(incomingPacket[i], HEX);
        Serial.print(" ");
      }
      Serial.println();

      // Call the function to process the received packet
      processTuyaPacket(incomingPacket, 7);

    } else {
      // If the header is invalid, discard the packet and flush the buffer
      Serial.print("Error: Invalid packet header. Data received: ");
      for (size_t i = 0; i < bytesRead; i++) {
        Serial.print(incomingPacket[i], HEX);
        Serial.print(" ");
      }
      Serial.println();
      tuyaSerial.flush(); // Clear the serial buffer
    }
  }

  // Delay to avoid CPU overuse
  delay(100);
}

// Function to process the received packet and send the appropriate response
void processTuyaPacket(uint8_t* packet, size_t size) {
  // Ensure the packet size is 7 and the header is valid
  if (size == 7 && packet[0] == 0x55 && packet[1] == 0xAA) {
    // Determine the command in the packet (packet[2])
    switch(packet[2]) {
      case 0x00:
        if (packet[3] == 0x00 && packet[4] == 0x00 && packet[5] == 0x00 && packet[6] == 0xFF) {
          Serial.println("Heartbeat received.");
          sendPacket(heartBeatResponse, sizeof(heartBeatResponse));
        } else if (packet[3] == 0x01 && packet[4] == 0x00 && packet[5] == 0x00 && packet[6] == 0x00) {
          Serial.println("Product info request received.");
          sendPacket(productInfoResponse, sizeof(productInfoResponse));
        } else if (packet[3] == 0x02 && packet[4] == 0x00 && packet[5] == 0x00 && packet[6] == 0x01) {
          Serial.println("Work mode request received.");
          sendPacket(workModeResponse, sizeof(workModeResponse));
        } else if (packet[3] == 0x03 && packet[4] == 0x00 && packet[5] == 0x01 && packet[6] == 0x00) {
          Serial.println("Network status request received.");
          sendPacket(netStatusResponse, sizeof(netStatusResponse));
        }
        break;

      default:
        Serial.println("Error: Unhandled command received.");
        break;
    }
  }
}

// Function to send the response packet to the Tuya module
void sendPacket(uint8_t* packet, size_t size) {
  // Send the packet via UART to Tuya module
  tuyaSerial.write(packet, size);

  // Debug: Print the sent packet for logging
  Serial.print("Sent packet: ");
  for (size_t i = 0; i < size; i++) {
    Serial.print(packet[i], HEX);
    Serial.print(" ");
  }
  Serial.println();
}
arduino ino file download: 

.zip   8-tuya-wifi-config.zip (Size: 2 KB / Downloads: 793)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: 

.zip   8-tuya-wifi-config.ino.merged.zip (Size: 187.17 KB / Downloads: 795)

Print this item