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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,713
» Latest member: vn39topcom
» Forum threads: 4,360
» Forum posts: 21,418

Full Statistics

Online Users
There are currently 614 online users.
» 1 Member(s) | 590 Guest(s)
AhrefsBot, Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, Semrush, bot, lollo9710

Latest Threads
Modbus 485 extender kcs V...
Forum: N30
Last Post: lollo9710
6 minutes ago
» Replies: 12
» Views: 1,712
KC868-A16v3 MQTT TLS/SSL ...
Forum: "KCS" v3 firmware
Last Post: admin
4 hours ago
» Replies: 1
» Views: 37
HMI touch panel for Home ...
Forum: Suggestions and feedback on KinCony's products
Last Post: rosnoteh
Yesterday, 11:31 PM
» Replies: 2
» Views: 116
Reset energy counter on N...
Forum: N30
Last Post: admin
Yesterday, 11:03 PM
» Replies: 3
» Views: 77
VisionCamPro-Turn an ESP3...
Forum: DIY Project
Last Post: nikhuge
Yesterday, 09:21 AM
» Replies: 0
» Views: 52
Reading Eastron SDM630 vi...
Forum: N60
Last Post: buttom3
12-01-2026, 12:58 PM
» Replies: 2
» Views: 104
Lumen – Open-Source Smart...
Forum: DIY Project
Last Post: nikhuge
12-01-2026, 09:04 AM
» Replies: 0
» Views: 107
Get Register data by conn...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-30-2026, 11:34 PM
» Replies: 1
» Views: 123
Domticz - native communic...
Forum: KC868-A16
Last Post: admin
11-30-2026, 11:17 PM
» Replies: 3
» Views: 1,389
B4 water tank controller
Forum: B4
Last Post: Fenndy
11-30-2026, 09:05 AM
» Replies: 1
» Views: 153

  [arduino code examples for DM4]-02 Read digital input ports state
Posted by: admin - 02-03-2026, 12:09 AM - Forum: DM4 - No Replies

Code:
/*
KeyPressed on PIN1
by Mischianti Renzo <http://www.mischianti.org>

https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
*/

#include "Arduino.h"
#include "PCF8574.h"

// Define I2C pins
#define I2C_SDA 8   // SDA pin
#define I2C_SCL 18  // SCL pin

// Set i2c address
PCF8574 pcf8574(0x24);
unsigned long timeElapsed;
void setup()
{
    Wire.begin(I2C_SDA, I2C_SCL);
    Serial.begin(115200);
    delay(1000);

//    pcf8574.pinMode(P0, OUTPUT);
pcf8574.pinMode(P0, INPUT);
pcf8574.pinMode(P1, INPUT);
pcf8574.pinMode(P2, INPUT);
pcf8574.pinMode(P3, INPUT);


    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}

void loop()
{
uint8_t val1 = pcf8574.digitalRead(P0);
uint8_t val2 = pcf8574.digitalRead(P1);
uint8_t val3 = pcf8574.digitalRead(P2);
uint8_t val4 = pcf8574.digitalRead(P3);

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");

    delay(300);
}
arduino ino file download:

.zip   2-digital-input.zip (Size: 667 bytes / Downloads: 438)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   2-digital-input.ino.merged.zip (Size: 199.38 KB / Downloads: 449)

Print this item

  [arduino code examples for DM4]-01 4 Channel DAC output by digital input buttons
Posted by: admin - 02-03-2026, 12:08 AM - Forum: DM4 - No Replies

Code:
// Basic demo for configuring the MCP4728 4-Channel 12-bit I2C DAC
#include <Adafruit_MCP4728.h>
#include <Wire.h>

Adafruit_MCP4728 mcp;
#define I2C_SDA 8   // SDA pin
#define I2C_SCL 18  // SCL pin

TwoWire MYI2C = TwoWire(0);
void setup(void)
{
 

  Serial.begin(115200);
  while (!Serial)
    delay(10); // will pause Zero, Leonardo, etc until serial console opens


  Serial.println("Adafruit MCP4728 test!");

  MYI2C.begin(I2C_SDA, I2C_SCL,100000);

  // Try to initialize!
  if (!mcp.begin(MCP4728_I2CADDR_DEFAULT,&MYI2C)) {
    Serial.println("Failed to find MCP4728 chip");
    while (1) {
      delay(10);
    }
  }

  mcp.setChannelValue(MCP4728_CHANNEL_A, 4095);
  mcp.setChannelValue(MCP4728_CHANNEL_B, 2048);
  mcp.setChannelValue(MCP4728_CHANNEL_C, 1024);
  mcp.setChannelValue(MCP4728_CHANNEL_D, 0);
}

void loop() { delay(1000); }
arduino ino file download:

.zip   1-dac-4ch.zip (Size: 596 bytes / Downloads: 429)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-dac-4ch.ino.merged.zip (Size: 198.77 KB / Downloads: 444)
   

Print this item

  connecting sensors
Posted by: skench - 02-02-2026, 11:07 PM - Forum: KC868-A8 - Replies (5)

Good afternoon, can you tell me how to connect a temperature and humidity sensor to the A8 or A16 boards? I have several different sensors
An AM2120 temperature and humidity sensor https://ali.click/klm2yz
There is also a BME280 pressure and temperature sensor. https://ali.click/zmm2ye
And I also bought a DHT22 temperature and humidity sensor. https://ali.click/mom2y9 there's a problem with everyone, with the latest DHT22, I don't understand where to get the 5v from, which vcc pin to connect to to get the 5v? I'm acting on the picture https://www.kincony.com/forum/showthread.php?tid=3194 I tried to connect the AM2120 in different ways, both to the ds18b20 and to other neighboring ports and tried the settings in the sensors tab, as well as different firmware ksc v2, I thought there might be a problem with the firmware, but I also failed.

Print this item

  TA with Home Assistant with Ethernet Only
Posted by: upstream - 02-02-2026, 10:54 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (3)

How do I get the Tiny Alarm System (TA) to work with Home Assistant?

The yaml example at this post is set to use wifi. I want to use ethernet / poe only.

However, if I remove the wifi components, this line: 

PHP Code:
- platform: tuya_wifi_mcu 

is located all over the place.

Does anyone have a complete yaml example without any wifi (ethernet only)?

Print this item

  E16V3 - baudrate change
Posted by: ldebacker - 02-02-2026, 04:40 PM - Forum: Suggestions and feedback on KinCony's products - Replies (3)

Hello,

Is there a way to change the default RS485 baudrate (which is 38400 bps) ?

Any existing register to change the RS485 parameters ?

Thanks in advance !

Print this item

  E16v3 - CE
Posted by: ldebacker - 02-02-2026, 04:35 PM - Forum: Suggestions and feedback on KinCony's products - Replies (9)

Hello,
I have seen the CE certificate for the Kincony products here: https://www.kincony.com/images/patent/CCJS.2411163.pdf
This certificate mentions The Kincony V2, but not the V3.
Where can I find the certificate for the V3?
Thanks in advance !

Print this item

  цифровые входы DI-1-6 на KinCony KC868-A6
Posted by: AlexeyAris - 02-01-2026, 03:30 AM - Forum: KC868-A6 - Replies (1)

Здравствуйте! Прошу прислать пример скетча на Arduino IDE для контроллера KinCony KC868-A6
Датчик сухого контакта подключен к цифровому входу DI-1 и GND в контроллере KinCony KC868-A6.
При замыкании сухого контакта Реле 1 включается
При размыкании сухого контакта Реле 1 выключается
Напряжение на контакте DI-1 составляет 11 В. Это нормальное напряжение?

Print this item

  ompatibility of ACS712 with KC868‑A6 ADC Inputs (Arduino)
Posted by: syme - 01-30-2026, 05:13 PM - Forum: KC868-A6 - Replies (3)

Hello,

I want to measure the presence of current on a 220 V device (≤16 A) using my KC868‑A6.

I have a 20 A ACS712 current sensor (analog output 0–5 V). I plan to use Arduino code directly. Before connecting it, I would like to know:

  1. Are the analog inputs (ADC) of the KC868‑A6 (GPIO 36/39/34/35) compatible with a signal from a 20 A ACS712 when using Arduino code?
  2. Is any filtering or signal conditioning required to ensure the ADC reads it correctly?
  3. Are there any special precautions regarding ground or reference to get a reliable reading?
     4. Are there other current sensors that would be more suitable for detecting the presence of current on a 220 V device with the KC868‑A6?

Thank you in advance for your help.

Best regards

Print this item

  Help needed: Bricked A6 v1.3 board
Posted by: schma - 01-30-2026, 04:00 PM - Forum: KC868-A6 - Replies (5)

Hi everyone,
I'm seeking some technical advice on reviving an A6 v1.3 board (ESP32-based).
The situation: The board was running ESPHome perfectly. However, following a Wi-Fi AP migration and some "beginner mistakes" within Home Assistant, I’ve lost all connectivity to the device.
The problem:

  • No OTA: Since the Wi-Fi credentials are now incorrect, I cannot access it over the air.
  • Serial flashing fails: I am unable to upload new firmware via the onboard USB port.
  • Hardware status: The onboard USB-to-Serial chip seems functional (it's recognized by the OS), but there is zero communication with the ESP32 SoC itself. It won't enter bootloader mode or accept any flash commands.
My questions:
  1. Is there a way to "force" this specific board into flash mode if the auto-reset circuit is failing?
  2. Can I bypass the onboard serial chip and flash the SoC directly using an external FTDI programmer? If so, does anyone have the pinout for the RX/TX/IO0/EN pads on this v1.3 board?
  3. Are there any specific recovery tools or "low-level" utilities (besides esptool.py) that you would recommend to "wake up" a non-responsive ESP32?
I would appreciate any tips or schematics to help me save this board!
Thanks in advance!

Print this item

  F8 N16R8
Posted by: kulibin - 01-30-2026, 12:15 PM - Forum: F8 - Replies (3)

Hi Gerarding model F8 N16R8 . There are have UART pin ?

Print this item