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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,916
» Latest member: jumanadina
» Forum threads: 3,901
» Forum posts: 19,899

Full Statistics

Online Users
There are currently 9 online users.
» 0 Member(s) | 3 Guest(s)
AhrefsBot, bot

Latest Threads
4 - 20 mA adc not giving ...
Forum: KC868-AIO
Last Post: upstream
1 hour ago
» Replies: 2
» Views: 16
Http protocol
Forum: News
Last Post: admin
3 hours ago
» Replies: 1
» Views: 11
N60 Sensor channel label
Forum: N60
Last Post: admin
Yesterday, 09:41 PM
» Replies: 1
» Views: 7
KC868-16A crashing in inf...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 09:40 PM
» Replies: 5
» Views: 32
ERROR SIM not inserted SI...
Forum: KC868-E8T
Last Post: admin
Yesterday, 12:10 PM
» Replies: 18
» Views: 978
B4 Smart Controller ESP32...
Forum: B4
Last Post: admin
Yesterday, 12:52 AM
» Replies: 0
» Views: 5
kWh resolution
Forum: N30
Last Post: admin
04-13-2026, 11:11 PM
» Replies: 37
» Views: 1,707
Current and Power not add...
Forum: N60
Last Post: admin
04-13-2026, 05:35 AM
» Replies: 3
» Views: 30
"KCS" v3.24.3 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
04-13-2026, 03:02 AM
» Replies: 0
» Views: 69
A24 configure yaml for ES...
Forum: KinCony A24
Last Post: admin
04-12-2026, 12:12 AM
» Replies: 25
» Views: 7,240

  [arduino code examples for N10]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N10 - No Replies

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

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 348)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 333)

Print this item

  [arduino code examples for N20]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N20 - No Replies

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

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 334)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 356)

Print this item

  [arduino code examples for N30]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N30 - No Replies

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

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 343)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 322)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N60 - Replies (3)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 397)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N10 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 387)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N20 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 365)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N30 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 367)

Print this item

  Problem with ds18b20 on Port 1-3
Posted by: ubfox - 08-02-2025, 12:44 PM - Forum: KC868-A16v3 - Replies (1)

#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 21

OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
DeviceAddress addr;

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("Starte Sensor-Test...");
  delay(500);
  sensors.begin();
  delay(5000);

  int count = sensors.getDeviceCount();
  Serial.printf("Gefundene Sensoren: %d\n", count);

  if (count == 0) {
    Serial.println("Keine Sensoren gefunden.");
    return;
  }

  for (int i = 0; i < count; i++) {
    if (sensors.getAddress(addr, i)) {
      Serial.print("Sensor-Adresse: ");
      for (uint8_t j = 0; j < 8; j++) {
        Serial.printf("%02X", addr[j]);
      }
      Serial.println();
    } else {
      Serial.printf("Sensor %d: Adresse nicht lesbar\n", i);
    }
  }
   
}

void loop() {
  Serial.println("Starte Sensor-Test1...");
  delay(5000);
}

This dos not work - why  

; PlatformIO Project Configuration File
;
;  Build options: build flags, source filter
;  Upload options: custom upload port, speed and extra flags
;  Library options: dependencies, extra library storages
;  Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32-s3-devkitm-1]
platform = espressif32
board = esp32-s3-devkitm-1
framework = arduino
monitor_speed = 115200 
monitor_auto = yes
monitor_rts = 0
monitor_dtr = 0

build_flags =
  -D ARDUINO_USB_MODE=1
  -D ARDUINO_USB_CDC_ON_BOOT=1

   
lib_deps =
  # RECOMMENDED
  # Accept new functionality in a backwards compatible manner and patches
 
  ;pstolarz/OneWireNg @ ^0.13.3
  paulstoffregen/OneWire @ ^2.3.8
  milesburton/DallasTemperature @ ^4.0.4

Print this item

  KC868_E16S dimentions
Posted by: jeftevag - 08-02-2025, 10:27 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - Replies (9)

I need dimentions for this board, making a front panel. What is the spacing between switches and LED's? Can you publish a PDF-drawing with dimentions for this board?

Print this item

  binary sensor board with rj45 connectors instead of screw terminals?
Posted by: flatulentflamingo - 08-02-2025, 05:54 AM - Forum: Suggestions and feedback on KinCony's products - Replies (8)

Could you build a binary sensor board with screw terminals replaced by female rj45 connectors?

I am very happy about the KC868-AI I bought. It does what it promises. I use it as the central smart home sensor controller for all (dual) light switches at our summer house. Only the physical wiring could be easier for simple binary sensors.

Here's what I built:

[Image: 4QD93cv.png]

Here is what I would want:

[Image: 3ubAsGS.png]
This would allow to make a common scenario stupidly simple on the hardware front. Just plug standard cat5e cable between central patch panel and Kincony board, for dual binary sensors per cable. (With some cleverness, even dual 1-wire should be possible using two unused extra strands from the cat5e cable, but I digress...)

And please do keep adding PoE support to your existing boards! That is great functionality, and it would be a great addition to this style of board!

Print this item