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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,084
» Latest member: 999betyouu
» Forum threads: 4,254
» Forum posts: 21,077

Full Statistics

Online Users
There are currently 32 online users.
» 0 Member(s) | 18 Guest(s)
Bytespider, PetalBot, Semrush, bot

Latest Threads
KC868-HAv2 phantom press ...
Forum: KC868-HA /HA v2
Last Post: phrfpeixoto
Today, 01:57 AM
» Replies: 2
» Views: 1,471
KC868-A6 Analog inputs
Forum: KC868-A6
Last Post: Tomas4289
Yesterday, 12:57 PM
» Replies: 2
» Views: 18
N60/N30/N20/N10 PC softwa...
Forum: N10
Last Post: admin
Yesterday, 12:49 PM
» Replies: 13
» Views: 1,606
getting the A8A inputs to...
Forum: Development
Last Post: admin
Yesterday, 08:38 AM
» Replies: 5
» Views: 184
Best way to read from N30
Forum: N30
Last Post: admin
09-27-2026, 12:20 AM
» Replies: 3
» Views: 43
extend KC868-A16v3
Forum: KC868-A series and Uair Smart Controller
Last Post: bitet96717
09-24-2026, 06:41 AM
» Replies: 2
» Views: 228
Las Firmware ?
Forum: KC868-A16
Last Post: admin
09-22-2026, 11:15 PM
» Replies: 8
» Views: 941
kc868-a6 analog input
Forum: KC868-A6
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 145
A32 pro tuya
Forum: "KCS" v3 firmware
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 69
Disconnect loop with Home...
Forum: F16
Last Post: admin
09-21-2026, 01:16 AM
» Replies: 3
» Views: 121

  KC868-A32 PCB layout CAD file
Posted by: admin - 06-05-2026, 11:44 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

KC868-A32 PCB layout CAD file

.zip   KC868-A32-V1.4_DWG.zip (Size: 4.19 MB / Downloads: 322)

Print this item

  KC868-A8 OpenPLC Function Blocks for RELAY
Posted by: admin - 06-05-2026, 12:50 AM - Forum: KC868-A8 - No Replies

Code:
#include <Arduino.h>                // Core Arduino functions and definitions
#include <PCF8574.h>               // Library for PCF8574 I2C I/O expander

#define I2C_RELAYS_ADR 0x24          // I2C address of the PCF8574 module


PCF8574 pcf(I2C_RELAYS_ADR);        // Create PCF8574 object using the defined I2C address

void setup() {
    // Initialize I2C communication
    Wire.begin(4, 5);                 // Parameters: SDA pin = 4, SCL pin = 5
   
    pcf.begin();            // Initialize the PCF8574 device

    // Configure all PCF8574 pins (P0–P7) as outputs
    pcf.pinMode(P0, OUTPUT);
    pcf.pinMode(P1, OUTPUT);
    pcf.pinMode(P2, OUTPUT);
    pcf.pinMode(P3, OUTPUT);
    pcf.pinMode(P4, OUTPUT);
    pcf.pinMode(P5, OUTPUT);
    pcf.pinMode(P6, OUTPUT);
    pcf.pinMode(P7, OUTPUT);

    // Safe startup state
    pcf.digitalWrite(P0, HIGH);
    pcf.digitalWrite(P1, HIGH);
    pcf.digitalWrite(P2, HIGH);
    pcf.digitalWrite(P3, HIGH);
    pcf.digitalWrite(P4, HIGH);
    pcf.digitalWrite(P5, HIGH);
    pcf.digitalWrite(P6, HIGH);
    pcf.digitalWrite(P7, HIGH);
}

void loop() {
    // Continuously update each PCF8574 output pin based on OpenPLC variables
    // OUT_0 to OUT_7 are boolean variables provided by OpenPLC

    // If OUT_x is true → set pin LOW (turn relay ON)
    // If OUT_x is false → set pin HIGH (turn relay OFF)

    pcf.digitalWrite(P0, OUT_0 ? LOW : HIGH);
    pcf.digitalWrite(P1, OUT_1 ? LOW : HIGH);
    pcf.digitalWrite(P2, OUT_2 ? LOW : HIGH);
    pcf.digitalWrite(P3, OUT_3 ? LOW : HIGH);
    pcf.digitalWrite(P4, OUT_4 ? LOW : HIGH);
    pcf.digitalWrite(P5, OUT_5 ? LOW : HIGH);
    pcf.digitalWrite(P6, OUT_6 ? LOW : HIGH);
    pcf.digitalWrite(P7, OUT_7 ? LOW : HIGH);
}
   

Print this item

  KinCony Pi5M16 – Raspberry Pi CM5 IoT Gateway released
Posted by: admin - 06-05-2026, 12:00 AM - Forum: News - No Replies

KinCony Pi5M16 – Raspberry Pi CM5 DIN Rail MOSFET Controller for Smart Home & Industrial Automation
[Image: Pi5M16-1.jpg]
Product Overview
KinCony Pi5M16 is a powerful Raspberry Pi-based IoT gateway designed for smart home automation and industrial control applications. Powered by the Raspberry Pi Compute Module 5 (CM5), it integrates 16-channel MOSFET outputs, optocoupler-isolated digital inputs, analog inputs, RS232/RS485 communication interfaces, PWM outputs, and multiple expansion interfaces into a compact DIN rail aluminum enclosure.
Pi5M16 is an ideal solution for automation projects requiring reliable DC load control. The CM5 directly manages MOSFET outputs, digital inputs, analog inputs, PWM outputs, and serial communication ports, making it easy to develop applications using Node-RED, Home Assistant, Python, MQTT, Modbus, and other Linux-based software platforms.
[Image: Pi5M16-5.jpg]


Key Features
  • Powered by Raspberry Pi Compute Module 5 (CM5)
  • 16-channel MOSFET outputs
  • 16-channel optocoupler-isolated digital inputs
  • Supports Home Assistant and Node-RED
  • RS232 and RS485 communication ports
  • 2-channel PWM outputs
  • 2 × DC 0-5V analog inputs
  • 2 × 4-20mA analog inputs
  • 20 free GPIO expansion ports
  • Gigabit Ethernet support
  • M.2 M-Key PCIe expansion socket
  • DIN rail installation
  • SSD1306 I2C OLED display
  • Industrial aluminum enclosure
  • Ideal for smart home and industrial automation projects

[Image: Pi5M16-7.jpg]

Print this item

  KinCony Pi5R16 – Raspberry Pi CM5 IoT Gateway released
Posted by: admin - 06-04-2026, 12:59 PM - Forum: News - No Replies

KinCony Pi5R16 – Raspberry Pi CM5 DIN Rail IoT Gateway for Smart Home & Industrial Automation
[Image: Pi5R16-1.jpg]
Product Overview
KinCony Pi5R16 is a powerful Raspberry Pi–based IoT gateway designed for smart home automation and industrial control applications. Built around the Raspberry Pi Compute Module 5 (CM5), it integrates relay outputs, opto-isolated digital inputs, analog inputs, RS232/RS485 communication, PWM outputs, and multiple expansion interfaces into a compact DIN rail aluminum enclosure.
Pi5R16 is ideal for users who want to build local automation systems using platforms such as Home Assistant, Node-RED, MQTT, Modbus, or custom Linux applications.
The CM5 module directly manages all relays, digital inputs, analog inputs, PWM outputs, and serial communication ports, making development and deployment simple and flexible.
[Image: Pi5R16-5.jpg]


Key Features
  • Raspberry Pi Compute Module 5 (CM5) integrated
  • 16-channel relay outputs
  • 16-channel optocoupler-isolated digital inputs
  • Supports Home Assistant and Node-RED
  • RS232 and RS485 communication ports
  • 2-channel PWM outputs
  • Analog input support:
    • 2 × DC 0–5V
    • 2 × 4–20mA
  • 20 free GPIO expansion ports
  • Gigabit Ethernet support
  • M.2 PCIe expansion socket
  • DIN rail aluminum enclosure design
  • SSD1306 I2C OLED display
  • Designed for industrial and smart home automation

[Image: Pi5R16-7.jpg]

Print this item

  Input real isolation
Posted by: teji - 06-03-2026, 08:31 PM - Forum: KC868-AI - Replies (3)

Hello. This board is exactly what i need... but....
is there a way to really isolate optocoupers input ? 
if same as (very good) 868-a16, the input are powered by same power supply as all the board.
then if someone put voltage (not contact) at input, it will burn all board.
is it possible to cut/separate/disconnect 12V and GND for optocoupers input ? (then use external power supply for this) ?
on a16, no jumper for this, but all 12V on opto in are on a single track. than you can Cut to isolate (and use own gnd)
is it also possible on 868-ai ? it depend of the routing (one track or different tracks, ...)
thanks for you help and you fantastics cards.

Print this item

  M30 Power Factor
Posted by: Gyro - 06-03-2026, 06:40 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

dear Admin,

using M30 on 240 VAC I get Power factor values outside the range (0-100), for example 190 or 3000

I use the ARM firmware: M30_V10_241107Res249Unsign.bin
here's the config:
    platform: modbus_controller
    modbus_controller_id: modbus_hub_m30
    address: 1166
    register_type: holding
    name: pf1
    id: m30_1_pf
    accuracy_decimals: 1
    value_type: U_DWORD_R
    filters:
      - multiply: 0.000011921

Print this item

  Digital Input de-bounce
Posted by: l0v4szl - 06-01-2026, 01:33 PM - Forum: KC868-A6 - Replies (2)

Hello!

I have a Kincony A6 V 1.4Sp motherboard.
I collect pulses from water meters on the Digital input and process them with domoticz.
These operate with reed sensors and there is noise in them.

Can I count on firmware that handles de-bounce? I would need a value of 1000ms.

Is there any input on the device in ESPeasy where a pulse counter can be recognized via GPIO?

Thank you!

Print this item

  KC868-HA-V21 24v supply
Posted by: Gerrit - 05-30-2026, 08:08 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (3)

Hello,
I am planning to use about 15 KC868-HA-V21 modules behind 6-gang momentary switches throughout my whole house and connect them to the KC868-AP dimmer board. The LED strips I am using are 24V.
Can I also use this 24V supply to power the KC868-HA-V21 modules? The documentation states that it is supported, but I want to make sure it is a safe and reliable choice. Or, would it be better to use a separate 12V power supply for the modules?
Thank you for your advice!

Print this item

  DM4 ESPHome yaml for home assistant with tuya
Posted by: pavel.hajn - 05-30-2026, 01:35 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (1)

Hello,
is possible to use DM4 with ESPHome and Tuya ? B8M works fine, but DM4 has some trouble in tuya_wifi_mcu_light_output.cpp

Here is the log:
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.11
|-- Tuya_WiFi_MCU_SDK @ 0.0.3+sha.66c750a
Compiling .pioenvs/kin-dm4/src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp.o
Compiling .pioenvs/kin-dm4/src/esphome/components/uart/uart_component_esp_idf.cpp.o
Compiling .pioenvs/kin-dm4/src/esphome/components/uart/uart_debugger.cpp.o
Compiling .pioenvs/kin-dm4/src/esphome/components/watchdog/watchdog.cpp.o
Compiling .pioenvs/kin-dm4/src/esphome/components/web_server/list_entities.cpp.o
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp: In member function 'virtual void esphome::tuya_wifi_mcu::TuyaWifiMcuLightOutput:Confusedetup()':
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp:10:28: error: 'class esphome::light::LightState' has no member named 'add_new_remote_values_callback'
  10 |        this->bind_light_->add_new_remote_values_callback([this]() {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp: In lambda function:
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp:15:47: warning: 'float esphome::gamma_uncorrect(float, float)' is deprecated: Use LightState::gamma_uncorrect_lut() instead. Removed in 2026.9.0. [-Wdeprecated-declarations]
  15 |          this->tuya_bright_ = gamma_uncorrect(bright, this->bind_light_->get_gamma_correct()) * 100;
      |                                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/esphome/components/i2c/i2c.h:5,
                from src/esphome/components/ads1115/ads1115.h:3,
                from src/esphome.h:3,
                from src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.h:3,
                from src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp:1:
src/esphome/core/helpers.h:1597:7: note: declared here
1597 | float gamma_uncorrect(float value, float gamma);
      |      ^~~~~~~~~~~~~~~
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp: In member function 'virtual void esphome::tuya_wifi_mcu::TuyaWifiMcuLightOutput::process_dp_data(const unsigned char*, short unsigned int)':
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp:33:47: warning: 'float esphome::gamma_correct(float, float)' is deprecated: Use LightState::gamma_correct_lut() instead. Removed in 2026.9.0. [-Wdeprecated-declarations]
  33 |        this->output_->set_level(gamma_correct(bright, this->bind_light_->get_gamma_correct()));
      |                                  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/core/helpers.h:1593:7: note: declared here
1593 | float gamma_correct(float value, float gamma);
      |      ^~~~~~~~~~~~~
src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp:35:47: warning: 'float esphome::gamma_correct(float, float)' is deprecated: Use LightState::gamma_correct_lut() instead. Removed in 2026.9.0. [-Wdeprecated-declarations]
  35 |        this->output_->set_level(gamma_correct(bright, 2.8));
      |                                  ~~~~~~~~~~~~~^~~~~~~~~~~~~
src/esphome/core/helpers.h:1593:7: note: declared here
1593 | float gamma_correct(float value, float gamma);
      |      ^~~~~~~~~~~~~
Compiling .pioenvs/kin-dm4/src/esphome/components/web_server/web_server.cpp.o
Compiling .pioenvs/kin-dm4/src/esphome/components/web_server_base/web_server_base.cpp.o
*** [.pioenvs/kin-dm4/src/esphome/components/tuya_wifi_mcu/light/tuya_wifi_mcu_light_output.cpp.o] Error 1
========================= [FAILED] Took 93.00 seconds =========================

Kind Regards
Pavel Hajn

Print this item

  KC868-A16v3 integration with 5V sensors and loads ?
Posted by: Alx - 05-29-2026, 12:31 PM - Forum: KC868-A series and Uair Smart Controller - Replies (2)

Hello,

I am planning a project based on the KC868-A16 v3.1 (REV:1.6) board. My peripheral types include 5V digital sensors (TTL/CMOS) and low-power 5V loads.

Could you please help me with the following technical questions:

  1. LO0 and LO1 with 5V: The official documentation specifies 12V/24V for the LO0 and LO1 power supply. Is it safe and functionally possible to apply a 5V external voltage to these specific channels instead?
  2. Onboard 5V VCC Usage for LO0 and LO1: Can I use the internal 5V VCC rail from the board to power the LO0 and LO1 loads? The total load current will be under 1A, which is within the XL1509-5 regulator capacity. Are there any internal limitations preventing this?
  3. 16 Digital Inputs with 5V logic: How can I modify all 16 Digital Inputs (INPUT1 and INPUT2) to safely and accurately read active 5V digital signals (TTL/CMOS)? What is the exact hardware modification procedure for the PCB?

Thank you.

Print this item