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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,097
» Latest member: Panacea489
» Forum threads: 4,005
» Forum posts: 20,315

Full Statistics

Online Users
There are currently 69 online users.
» 0 Member(s) | 59 Guest(s)
Amazonbot, Applebot, Baidu, Crawl, PetalBot, bot

Latest Threads
KC868-A16v3 PCB layout CA...
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
1 hour ago
» Replies: 0
» Views: 3
[arduino code examples fo...
Forum: F24
Last Post: admin
Yesterday, 10:55 PM
» Replies: 2
» Views: 871
Cant flash esphom
Forum: B16M
Last Post: lulu01
Yesterday, 04:58 PM
» Replies: 23
» Views: 788
Request for firmware H32
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 11:22 AM
» Replies: 1
» Views: 17
how to use KC868-A8 with ...
Forum: KC868-A8
Last Post: admin
Yesterday, 11:20 AM
» Replies: 0
» Views: 16
MODBUS
Forum: KC868-A2v3
Last Post: admin
Yesterday, 10:05 AM
» Replies: 5
» Views: 43
problem with kc868 has v2
Forum: News
Last Post: admin
Yesterday, 08:08 AM
» Replies: 13
» Views: 157
KC868-HA v2 firmware V200...
Forum: KC868-HA /HA v2
Last Post: admin
Yesterday, 12:37 AM
» Replies: 8
» Views: 1,969
KC868-HA RS485 INPUT & OU...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 12:36 AM
» Replies: 55
» Views: 27,756
automations yaml for read...
Forum: Pi5R16
Last Post: admin
05-25-2026, 11:22 PM
» Replies: 0
» Views: 8

  how to see ESPHome logs from PC serial port by command line
Posted by: admin - 05-05-2023, 02:36 AM - Forum: KC868-A series and Uair Smart Controller - No Replies

command line (if use COM10): 
esphome logs config.yaml --device COM10

Print this item

  KC868-Server work with KinCony energy meter by RS485
Posted by: admin - 05-05-2023, 12:28 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (1)

   
   

Print this item

  [Arduino source code for KC868-M16]-04 -Read / Write SD card arduino source code
Posted by: admin - 05-04-2023, 06:14 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

Code:
#include "FS.h"
#include "SD.h"
#include "SD_MMC.h"
#define BOARD_HAS_1BIT_SDMMC
void WriteFile(fs::FS &fs, const char *path, uint8_t *buf, int len)
{
  //unsigned long start_time = millis();
  Serial.printf("write [%s]...\n", path);

  File file = fs.open(path, FILE_WRITE);
  if (!file) {
    Serial.println("Failed to open file for writing");
    return;
  }
 
  if (!file.write(buf, len)) {
      Serial.println("Write failed");
      return;
    }

  file.flush();
  file.close();

  Serial.printf("Write [%s] Complete", path);
}

void ReadFile(fs::FS &fs, const char *path, uint8_t *buf, int len)
{
  Serial.printf("read [%s]...\n", path);

  File file = fs.open(path);
  if (!file) {
    Serial.println("Failed to open file for reading");
    return;
  }

  if (!file.read(buf, len)) {
      Serial.println("Read failed");
      return;
  }
 
  file.close();

  Serial.printf("Read [%s] Complete: %s", path, buf);
}

void testIO(fs::FS &fs)
{
  char buf[] = "hello world";

  WriteFile(fs, "/test.txt", (uint8_t *)buf, strlen(buf));
  ReadFile(fs, "/test.txt", (uint8_t *)buf, strlen(buf));
}

void setup() {
  pinMode(2,INPUT_PULLUP);
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Please insert SD card");
  delay(1000);
 
  /* SD_MMC 1-bit Mode */
  if (!SD_MMC.begin("/cdcard", true)) {
    Serial.println("Card Mount Failed");
    return;
  }
  testIO(SD_MMC);
  SD_MMC.end(); // cancel SD card mount
}
void loop() {
}
   
after program running, we will find "hello word" have wrote to txt file and saved SD card.
SD card use by "1BIT_SDMMC" work mode.

Print this item

  New house iot project
Posted by: Horlagold - 05-03-2023, 09:19 PM - Forum: DIY Project - Replies (9)

Please help me choose and recommend devices for my home automations

Six water leak sensor
Two Humidity sensor
Two temperature sensor

A device that can control 
three way or four way light switch
One doorbell chime
One energy meter

Print this item

  KC868-M16 16CH CT Clamp Energy Monitor Board Released
Posted by: admin - 05-03-2023, 11:52 AM - Forum: News - No Replies

We have designed KC868-M16 (ESP32 16 Channel CT Clamp Energy Monitor) for home automation DIYer. it can easy integrate to home assistant by ESPHome. the hardware have 16CH CT Clamp sensor INPUT ports + 3CH analog input + Ethernet + WiFi + Bluetooth + DS3231 RTC module + SSD1306 I2C LCD display + SD card.
 
[Image: KC868-M16-1_01.jpg]
[Image: KC868-M16-1_02.jpg]
[Image: KC868-M16-1_03.jpg]
[Image: KC868-M16-1_04.jpg]

Print this item

  KC868-A32 smart control blind motor by home assistant using ESPHome
Posted by: admin - 05-03-2023, 12:36 AM - Forum: Customer project example - No Replies

Print this item

  Kazakhstan agricultural greenhouse automation case by KC868 A8
Posted by: admin - 05-03-2023, 12:36 AM - Forum: Customer project example - No Replies

Print this item

  Maldives case replace H32B with H32B Pro for Tuya and Home Assistant
Posted by: admin - 05-03-2023, 12:35 AM - Forum: Customer project example - Replies (1)

Print this item

  Brazil case for home automation DIY by KC868-A32 Smart Controller
Posted by: admin - 05-03-2023, 12:35 AM - Forum: Customer project example - No Replies

Print this item

  Russia case for smart home voice control by alice speaker
Posted by: admin - 05-03-2023, 12:34 AM - Forum: Customer project example - No Replies

Print this item