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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,449
» Latest member: LouisMartin
» Forum threads: 4,326
» Forum posts: 21,312

Full Statistics

Online Users
There are currently 344 online users.
» 1 Member(s) | 320 Guest(s)
Amazonbot, Applebot, AwarioBot, Baidu, Bing, Bytespider, Crawl, Google, HeadlessChrome, PetalBot, bot, 7777xbetorg

Latest Threads
kc868-a6 analog input
Forum: KC868-A6
Last Post: admin
Yesterday, 09:56 AM
» Replies: 3
» Views: 407
F24 ESPHome yaml for home...
Forum: F24
Last Post: admin
Yesterday, 07:25 AM
» Replies: 0
» Views: 12
[arduino code examples fo...
Forum: F24
Last Post: admin
Yesterday, 05:35 AM
» Replies: 0
» Views: 15
[arduino code examples fo...
Forum: F24
Last Post: admin
Yesterday, 05:33 AM
» Replies: 0
» Views: 15
[Arduino source code for ...
Forum: KC868-A2
Last Post: admin
Yesterday, 05:31 AM
» Replies: 6
» Views: 1,756
KC868-A4 – Relay 1 clicks...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-03-2026, 11:58 PM
» Replies: 3
» Views: 61
⚡ 40 Buttons, 36 Lighting...
Forum: DIY Project
Last Post: lulu01
11-03-2026, 07:34 PM
» Replies: 24
» Views: 3,066
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 03:04 AM
» Replies: 0
» Views: 27
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 01:34 AM
» Replies: 0
» Views: 31
[arduino code examples fo...
Forum: CO16
Last Post: admin
11-03-2026, 12:15 AM
» Replies: 0
» Views: 32

  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