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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,190
» Latest member: stivejoy37
» Forum threads: 4,091
» Forum posts: 20,515

Full Statistics

Online Users
There are currently 98 online users.
» 0 Member(s) | 84 Guest(s)
Amazonbot, Baidu, Bing, Bytespider, PetalBot, Yandex, bot

Latest Threads
Single-family home automa...
Forum: DIY Project
Last Post: Jan_W
4 hours ago
» Replies: 3
» Views: 82
Multiple phase L1,L2,L3
Forum: N20
Last Post: admin
10 hours ago
» Replies: 3
» Views: 297
KC868-a6 2 analog output...
Forum: KC868-A6
Last Post: admin
10 hours ago
» Replies: 5
» Views: 37
Kincony A4s
Forum: KC868-A4S
Last Post: admin
10 hours ago
» Replies: 1
» Views: 7
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
11 hours ago
» Replies: 9
» Views: 755
The watch shows the wrong...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11 hours ago
» Replies: 1
» Views: 9
KC868-A16v3 integration w...
Forum: KC868-A series and Uair Smart Controller
Last Post: rosnoteh
Yesterday, 08:26 PM
» Replies: 2
» Views: 147
[Arduino IDE demo source ...
Forum: KC868-A8S
Last Post: admin
Yesterday, 06:16 AM
» Replies: 0
» Views: 15
Tiny Alarm board after fl...
Forum: TA
Last Post: admin
06-14-2026, 11:19 AM
» Replies: 7
» Views: 32
Wiegand
Forum: KC868-A16
Last Post: admin
06-14-2026, 01:13 AM
» Replies: 3
» Views: 55

  Notes on using a KC868 as an alarm controller
Posted by: twostar - 02-24-2025, 12:32 PM - Forum: DIY Project - Replies (9)

These are some notes on using a KC868 as an alarm controller.  The functionality is implemented as IFTTT rules implementing the alarm as ladder logic, although I've used text rather than graphical notation because you can't really do ladder logic in ASCII.  In this case DI 1-8 are PIR motion sensors and DI 9-12 are smoke alarm sensors.  There's sirens/strobes connected to DO 15-16.

In order to be able to do this you need to chain rules which the firmware currently doesn't support but there are requests to add it to the v3 firmware, at the moment I've worked around it by using a relay board to take the wet-contact DO output to the dry-contact DI inputs.  When support for this is added to the v3 firmware, e.g. by allowing DO outputs to be tested in IF conditions, then you don't need the external wiring.

  1. Name = "Smoke", IF { DI 9-12 Rising Edge }, { Sensor1 Temperature >= 50 } THEN { DO On 3 15 16 }
    -- If any smoke or heat detector triggers then turn sirens on, chain to rule 8 via DO 3 -> DI 15.
  2. Name = "Arm", IF { DI 15 Rising Edge } THEN { Delay 5s } { DO On 1 }
    -- If arm signal is received then wait 5s and turn on Armed output, chain to rule 7 via DO 1 -> DI 13.
  3. Name = "Disarm", IF { DI 16 Rising Edge } THEN { DO Off 1 15 16 }
    -- If disarm signal is received then turn off Armed output, turn off Siren output, chain to rule 7 via DO 1 -> DI 13.
  4. Name = "Entrance Motion", IF { DI 1 Rising Edge } THEN { Delay 10s } { DO On 2 }
    -- If motion is detected at the entrance then wait 10s and turn on Motion output.  This provides an entry delay to disarm the system. Chain to rule 7 via DO 2 -> DI 14.
  5. Name = "Motion Main", IF { DI 2-4 Rising Edge } THEN { DO On 2 }
    -- If motion is detected elsewhere then turn on Motion output, no delay.  Chain to rule 7 via DO 2 -> DI 14.
  6. Name = "Motion Basement", IF { DI 5-8 Rising Edge } THEN { DO On 2 }
    -- If motion is detected in the basement then turn on Motion output, no delay.  Chain to rule 7 via DO 2 -> DI 14.

    Connect DO 1 to DI 13 via NO relay.
    Connect DO 2 to DI 14 via NO relay.
  7. Name = "Alarm Trigger", IF { DI 13 AND DI 14 } THEN { DO On 3 15 16 }
    -- If the alarm is armed, DI 13, and motion is detected, DI 14, turn sirens on.  Chain to rule 8 via DO 3 -> DI 15.

    Connect DO 3 to DI 15 via NO relay.
  8. Name = "Siren Delay", IF { DI 15-16 } THEN { Delay 300s } { DO Off 1 2 3 15 16 }
    -- If sirens are turned on, wait 5 minutes then turn them off again, also turn off all arming signals and triggers.

Rules 2 and 3 handle external arm and disarm signals, e.g. from a keypad by the door, they implement an RS flip-flop to enable triggering in Rule 7.  Rule 4 triggers the alarm after a 10s entrance delay to allow disarming.  Rules 5 and 6 trigger the alarm immediately.  Rule 7 sounds the sirens if the alarm is armed.  Rule 8 runs them for 5 minutes, then turns them off again.

There's one bug in this caused by the fact that it's necessary to use an external relay board to chain rules, there's a 5s arming delay but the disarm is immediate, which means if you arm, then disarm, then the arming delay will cause the Arm signal to be sent after the Disarm signal.  This needs an extra enabling signal like Rule 7 but I'm out of relay contacts at this point so can't chain in an extra rule.  If support is added to the v3 firmware then you can just set another DO and test it in a IF condition so the disarm takes precedence over the arm.

This is a work in progress so there's probably other problems in it, all comments welcome.

Print this item

Bug KC868-HA-V21 serial port selector drop box freezing
Posted by: PeterOo - 02-23-2025, 03:48 PM - Forum: KC868-HA /HA v2 - Replies (8)

Hi admin,
    when I click the serial port drop box, the app doesn't respond anything, it is freezing. I have already installed CH341 driver on my laptop for rs485 to usb config device. It showing the correct com port when I checked in device manager. But, I can't select the serial port in the app. I m using windows 11. Help me with that.

   

I m sure KC868-HA-V21 module is working normal. It is sending some data frame when I press k1 button in the serial monitor.

   

Print this item

  Advanced control using temperature
Posted by: balcerseb - 02-23-2025, 08:30 AM - Forum: KC868-A16 - Replies (1)

Hi is it possible through Kincony software to do such logic:
I would like to control two outputs the first output is to increase the flow of water the second to decrease the example:
temperature sensor measures the temperature of water that flows through e.g. a heater at a setting of, for example, 30 degrees it does nothing after exceeding e.g. by 3 degrees the logic turns on output ''1'' for 10 s (to increase the flow and at the same time reduce the temperature of heated water) the thermometer measurement would have to measurement of the thermometer would have to be taken at intervals, e.g. every 20 seconds (adjustable) and the principle of operation is reversed if the temperature drops after some time logic turns on output ''1'' to reduce the flow in order to equalize the temperature and so on and so forth the measurement would have to be taken at intervals due to the reaction time of cooling water.
Is it possible to set it up this way through the IFTTT website

It must work on the principle of a temperature controller only with a delay ( warm up or cool down response time)

Print this item

  T16M MOSFET max current
Posted by: Mojito_dev - 02-22-2025, 03:44 PM - Forum: "KCS" v3 firmware - Replies (1)

T16M max current is max 4A per channel, and max 24V or all capacity is 4A for all channels?

Print this item

  A8s v2 inputs not working when using PoE
Posted by: halt77 - 02-22-2025, 10:43 AM - Forum: KC868-A8S - Replies (5)

Dear Kincony team, 

It seems to be a problem with the A8S v2 board.

I've tested the A8S v2 with the PoE board and none of the inputs work (using either the KCS or esphome firmware).

If you power the board using the 12v input, everything works as expected (the inputs work), but as soon as you power the board with the Kinkony PoE board, all inputs go down (and they stop showing the expected status).

You can easily diagnose this providing power to the board only with PoE, as you will see the inputs do not work (even using KCS firmware).

I've about 20 A8S v2 boards. How can I correct this so inputs work when using PoE power?

Regards.

Print this item

  M16v2
Posted by: kr_user - 02-22-2025, 10:11 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

Does the m16v2 support bidirectional currents ? => Show negative current if clamp is turned the other way?

Print this item

  "KCS" v3.7.2 firmware BIN file download
Posted by: admin - 02-22-2025, 07:58 AM - Forum: "KCS" v3 firmware - No Replies

v3.7.2 improvement:
1. fixed dimmer issue in Tuya app.



Attached Files
.zip   KCS_A6V3_V3.7.2.zip (Size: 1 MB / Downloads: 560)
.zip   KCS_A16V3_V3.7.2.zip (Size: 1.08 MB / Downloads: 612)
.zip   KCS_A32PRO_V3.7.2.zip (Size: 1.04 MB / Downloads: 483)
.zip   KCS_AG8_V3.7.2.zip (Size: 1.03 MB / Downloads: 512)
.zip   KCS_B16M_V3.7.2.zip (Size: 1.07 MB / Downloads: 550)
.zip   KCS_F16_V3.7.2.zip (Size: 1.07 MB / Downloads: 514)
.zip   KCS_F24_V3.7.2.zip (Size: 1.07 MB / Downloads: 506)
.zip   KCS_T16M_V3.7.2.zip (Size: 1.02 MB / Downloads: 534)
Print this item

  Is there a A8v3 coming with ESP32-S3? KC868-A8v3
Posted by: dbl0 - 02-22-2025, 03:28 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

I saw the A6v3 land, but I need 8 outputs!

Print this item

  [arduino code examples for B16]-11 digital INPUT trigger OUTPUT directly
Posted by: admin - 02-22-2025, 02:12 AM - Forum: B16 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This program reads 16 input states from a PCF8575 I/O expander and
* controls a corresponding 16-channel relay module. When an input pin
* is LOW, the corresponding relay is turned ON (LOW means ON for the relay).
* When the input pin is HIGH, the corresponding relay is turned OFF.
*
* Pin Definitions:
* - SDA: GPIO 8
* - SCL: GPIO 18
* - Input I2C Address: 0x24
* - Relay I2C Address: 0x25
*/

#include <Wire.h>        // I2C communication
#include <PCF8575.h>     // Library to control the PCF8575 I/O expander

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

// I2C addresses
#define INPUT_I2C_ADDRESS 0x24   // I2C address for the input PCF8575 module
#define RELAY_I2C_ADDRESS 0x22   // I2C address for the relay PCF8575 module

PCF8575 pcf8575_IN(INPUT_I2C_ADDRESS);    // Create an object for the input PCF8575
PCF8575 pcf8575_RL(RELAY_I2C_ADDRESS);    // Create an object for the relay PCF8575

void setup() {
  // Initialize I2C communication
  Wire.begin(SDA, SCL);
 
  // Initialize serial communication
  Serial.begin(115200);
 
  // Initialize input and relay modules
  pcf8575_IN.begin();
  pcf8575_RL.begin();
 
  // Turn off all relays at the start
  for (int i = 0; i < 16; i++) {
    pcf8575_RL.write(i, LOW);  // Assuming relays are LOW when OFF, setting all relays to OFF initially
  }
 
  Serial.println("System started: Input state controlling 16 relays");
}

void loop() {
  uint16_t inputState = 0;

  // Read the state of 16 inputs
  for (int i = 0; i < 16; i++) {
    if (pcf8575_IN.read(i)) {
      inputState |= (1 << i);  // If input is HIGH, set the corresponding bit
    } else {
      inputState &= ~(1 << i); // Otherwise, clear the corresponding bit
    }
  }
 
  // Control the relays based on the input state
  for (int i = 0; i < 16; i++) {
    if (inputState & (1 << i)) {
      pcf8575_RL.write(i, HIGH);  // If input is HIGH, turn the relay OFF
    } else {
      pcf8575_RL.write(i, LOW);   // If input is LOW, turn the relay ON
    }
  }

  // Delay for 500 milliseconds
  delay(500);
}
arduino ino file download: 

.zip   11-input-trigger-output.zip (Size: 1.02 KB / Downloads: 506)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   11-input-trigger-output.ino.merged.zip (Size: 189.4 KB / Downloads: 543)

Print this item

  [arduino code examples for B16]-10 Print TEXT on SSD1306 OLED displayer
Posted by: admin - 02-22-2025, 02:10 AM - Forum: B16 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This Arduino program demonstrates how to display text on an SSD1306 128x64 OLED display using the U8g2 library.
* The program draws two lines of text on the display:
* - The first line is "KINCONY" in a larger font.
* - The second line is "www.kincony.com" in a smaller font.
*
* The display is connected via I2C (software implementation) with:
* - SCL (clock) on pin IO18
* - SDA (data) on pin IO8
*
* The display's I2C address is set to 0x3C.
*/

#include <U8g2lib.h>  // Include the U8g2 library for controlling the OLED display
#include <Wire.h>     // Include the Wire library for I2C communication

// Initialize the display using the software I2C method (SCL = IO39, SDA = IO38)
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0,  18, 8, U8X8_PIN_NONE);  // Screen rotation: U8G2_R0

// Function to display page 1 content
void page1() {
  // Set font size 18 for the larger "KINCONY" text
  u8g2.setFont(u8g2_font_timR18_tf);  // Use the Times Roman font, size 18
  u8g2.setFontPosTop();               // Set the text position at the top of the display
  u8g2.setCursor(5, 0);               // Position the cursor at coordinates (5, 0)
  u8g2.print("KINCONY");              // Display the text "KINCONY" on the screen

  // Set font size 12 for the smaller "www.kincony.com" text
  u8g2.setFont(u8g2_font_timR12_tf);  // Use the Times Roman font, size 12
  u8g2.setCursor(0, 40);              // Position the cursor at coordinates (0, 40)
  u8g2.print("www.kincony.com");      // Display the text "www.kincony.com"
}

// Setup function, runs once when the program starts
void setup() {
  // Set the I2C address for the display to 0x3C
  u8g2.setI2CAddress(0x3C*2);  // I2C address shift for 8-bit format
 
  // Initialize the display
  u8g2.begin();
 
  // Enable UTF-8 character printing for the display
  u8g2.enableUTF8Print();  // Allow UTF-8 encoded text to be printed
}

// Main loop function, continuously runs after setup()
void loop() {
  // Begin the display drawing process
  u8g2.firstPage();  // Prepare the first page for drawing
  do {
    // Call the page1() function to draw content on the display
    page1();
  } while (u8g2.nextPage());  // Continue to the next page until all pages are drawn
}
arduino ino file download: 
.zip   10-oled-ssd1306.zip (Size: 1.12 KB / Downloads: 526)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   10-oled-ssd1306.ino.merged.zip (Size: 201.24 KB / Downloads: 496)

Print this item