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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,827
» Latest member: luckywinffund
» Forum threads: 4,218
» Forum posts: 20,927

Full Statistics

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

Latest Threads
HAv2 ESPHome
Forum: KC868-HA /HA v2
Last Post: phrfpeixoto
4 hours ago
» Replies: 4
» Views: 817
⚡ 40 Buttons, 36 Lighting...
Forum: DIY Project
Last Post: lulu01
6 hours ago
» Replies: 14
» Views: 216
KC868-H32B
Forum: KC868-HxB series Smart Controller
Last Post: kulibin
6 hours ago
» Replies: 2
» Views: 17
KC868-HA PC software V1.0...
Forum: KC868-HA /HA v2
Last Post: phrfpeixoto
8 hours ago
» Replies: 16
» Views: 7,071
Need Help Getting Started...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: philippe
10 hours ago
» Replies: 2
» Views: 1,818
No ethernet communication
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11 hours ago
» Replies: 10
» Views: 163
N60 Loss of kWh on reset
Forum: N60
Last Post: chuyskywalker
Yesterday, 03:58 AM
» Replies: 12
» Views: 204
CT Sensor Direction
Forum: N60
Last Post: admin
09-03-2026, 12:51 PM
» Replies: 3
» Views: 165
Request for Type B Projec...
Forum: Apply for free sample product
Last Post: lemanat
09-03-2026, 08:47 AM
» Replies: 0
» Views: 16
KinCony CO16 ESP32S3 16 C...
Forum: News
Last Post: admin
09-02-2026, 01:51 AM
» Replies: 0
» Views: 70

  Did I burn the DI s?
Posted by: tugalsan - 03-06-2023, 12:41 PM - Forum: KC868-A32/A32 Pro - Replies (5)

I accidently plug 12 Volt to GND of DI sockets.

Even though, I did not plugged any wire on DI, I am getting the below output. 
When I check it with Voltmeter, DIs is giving me 12V
Does that mean, I did burn the card? Or a code error?

code:

Code:
#include "PCF8574.h"

//I2C INPUT
TwoWire I2C_0 = TwoWire(0);
PCF8574 pcf8574_I1(&I2C_0, 0x24, 4, 5);
PCF8574 pcf8574_I2(&I2C_0, 0x25, 4, 5);
PCF8574 pcf8574_I3(&I2C_0, 0x21, 4, 5);
PCF8574 pcf8574_I4(&I2C_0, 0x22, 4, 5);

//I2C RELAY
TwoWire I2C_1 = TwoWire(1);
PCF8574 pcf8574_R1(&I2C_1, 0x24, 15, 13);
PCF8574 pcf8574_R2(&I2C_1, 0x25, 15, 13);
PCF8574 pcf8574_R3(&I2C_1, 0x21, 15, 13);
PCF8574 pcf8574_R4(&I2C_1, 0x22, 15, 13);

void setup_input() {
  for(int i=0;i<=7;i++){
    pcf8574_I1.pinMode(i, INPUT);
    pcf8574_I2.pinMode(i, INPUT);
    pcf8574_I3.pinMode(i, INPUT);
    pcf8574_I4.pinMode(i, INPUT);
  }
  pcf8574_I1.begin();
  pcf8574_I2.begin();
  pcf8574_I3.begin();
  pcf8574_I4.begin();
}

void setup_output() {
  for(int i=0;i<=7;i++)
  {
    pcf8574_R1.pinMode(i, OUTPUT);
    pcf8574_R2.pinMode(i, OUTPUT);
    pcf8574_R3.pinMode(i, OUTPUT);
    pcf8574_R4.pinMode(i, OUTPUT);
  }
  pcf8574_R1.begin();
  pcf8574_R2.begin();
  pcf8574_R3.begin();
  pcf8574_R4.begin();
  for(int i=0;i<=7;i++) {
    pcf8574_R1.digitalWrite(i, HIGH);
    pcf8574_R2.digitalWrite(i, HIGH);
    pcf8574_R3.digitalWrite(i, HIGH);
    pcf8574_R4.digitalWrite(i, HIGH);
  }
}

void setup_serial(){
  Serial.begin(115200);
  while (!Serial && (millis() < 3000));
}

void print_chip_arduino(){
  Serial.print(F("\n\n----------------\n\n"));
  Serial.print(F("ARDUINO_BOARD:"));
  Serial.println(String(ARDUINO_BOARD));
}

unsigned long currentTime = millis();
void refreshCurrentTime(){
    currentTime = millis();
}

void print_loopHeader(){
  Serial.print(F("---------"));
  Serial.print(F("t: "));
  Serial.print(String(currentTime));
  Serial.println(F(" ---------"));
}

void print_input(){
  for(int i=0;i<=7;i++) {
      bool input1 = pcf8574_I1.digitalRead(i);
      bool input2 = pcf8574_I2.digitalRead(i);
      bool input3 = pcf8574_I3.digitalRead(i);
      bool input4 = pcf8574_I4.digitalRead(i);
      Serial.print(F("i:"));
      Serial.print(String(i));
      Serial.print(F(" I1:"));
      Serial.print(String(input1));
      Serial.print(F(" I2:"));
      Serial.print(String(input2));
      Serial.print(F(" I3:"));
      Serial.print(String(input3));
      Serial.print(F(" I4:"));
      Serial.println(String(input4));
  }
}

void setup() {
  setup_input();
  setup_output();
  setup_serial();
  print_chip_arduino();
}

void loop() {
  refreshCurrentTime();
  print_loopHeader();
  print_input();
  delay(1000);
}

output:
Code:
---------t: 8096 ---------
i:0 I1:1 I2:1 I3:1 I4:1
i:1 I1:1 I2:1 I3:1 I4:1
i:2 I1:1 I2:1 I3:1 I4:1
i:3 I1:1 I2:1 I3:1 I4:1
i:4 I1:1 I2:1 I3:1 I4:1
i:5 I1:1 I2:1 I3:1 I4:1
i:6 I1:1 I2:1 I3:1 I4:1
i:7 I1:1 I2:1 I3:1 I4:1

Print this item

  KC868-AP
Posted by: eligijus - 03-05-2023, 07:23 PM - Forum: KC868-AP / ADR - Replies (34)

hi, maybe you can upload firmware bin file with esp KC868-AP

Print this item

  Not found
Posted by: Philadam - 03-05-2023, 12:47 AM - Forum: KC868-A16 - Replies (10)

When I attach my A16 to my local network and run scan_device, nothing shows up in the list. I have let it run for over 15 minutes, but the A16 is not found.

Advice?

Print this item

  KC868-ASR ESPHome demo config for home assistant
Posted by: admin - 03-04-2023, 11:21 PM - Forum: KC868-ASR - No Replies

   
esphome:
  name: asr

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "Xqy9f8iJ49cr7o8IWE1sFnG9EAEnxHVYlGUQBdnKE6Q="

ota:
  password: "d13799179d079d89758ad1a0fd1c4560"

wifi:
  ssid: KinCony
  password: a12345678

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Asr Fallback Hotspot"
    password: "KqbpeFnrzcWf"

captive_portal:

i2c:
  sda: 26
  scl: 27
  scan: true
  id: bus_a


switch:
  - platform: gpio
    pin: GPIO19
    name: "asr-relay1"

  - platform: gpio
    pin: GPIO5
    name: "asr-relay2"
 
  - platform: gpio
    pin: GPIO23
    name: "asr-led1" 
 
  - platform: gpio
    pin: GPIO22
    name: "asr-led2" 

  - platform: gpio
    pin: GPIO18
    name: "asr-beep"

binary_sensor:
  - platform: gpio
    pin:
      number: 0
      inverted: true
    name: "asr-button"

dallas:
  - pin: 32
    update_interval: 5s

sensor:
  - platform: dallas
    address: 0x7b062162cfe98128
    name: "asr-t2"
   

.txt   KC868-ASR_ESPHome.txt (Size: 1.1 KB / Downloads: 626)

Print this item

  KC868-ASR ESP32 I/O pin define
Posted by: admin - 03-04-2023, 11:20 PM - Forum: KC868-ASR - No Replies

Button S2: GPIO0


TH1: GPIO32  (use for DS18B20/DHT11 sensor)
TH2: GPIO33  (use for DS18B20/DHT11 sensor)

Relay1:GPIO19
Relay2:GPIO5

IIC SDA:GPIO26
IIC SCL:GPIO27

LED1:GPIO23
LED2:GPIO22

Beep: GPIO18

DS3231 IIC address: 0x68

TF_Card:

DAT2:GPIO12
DAT3: GPIO13
CMD: GPIO15
CLK: GPIO14
DAT0:GPIO2
DAT1:GPIO4

free GPIO: GPIO16, GPIO17

Print this item

  Schematic
Posted by: Yazaww - 03-04-2023, 09:23 PM - Forum: KC868-HxB series Smart Controller - Replies (19)

Helli, is there any schematic between h32b and kc868-ak? All i see is with h32b pro, is there any with h32b?

Print this item

  KC868-ASR ESP32 SD card sensor RTC record board Released
Posted by: admin - 03-04-2023, 02:07 PM - Forum: News - No Replies

KC868-ASR ESP32 SD card sensor record board based on ESP32 chip. It have many hardware resource for you to use. It have two channel relay, two GPIOs for temperature or humidity sensors. one SD card socket and DS3231 high quality RTC chip. It’s very easy for home automation DIY. You can write any code by Arduino IDE to ESP32 module. We will supply demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware for smart home automation DIY.
[Image: KC868-ASR-1_01.jpg]
[Image: KC868-ASR-1_02.jpg]
[Image: KC868-ASR-1_03.jpg]
[Image: KC868-ASR-1_04.jpg]

Print this item

  KC868-A16
Posted by: Lifttech1 - 03-04-2023, 12:45 PM - Forum: "KCS" v2 firmware system - Replies (1)

Can KC868-A16 board be controlled with KBOX App and KBOX Pad

Print this item

  Home Automation 32CH Distribution Board DIY Video Tour
Posted by: admin - 03-04-2023, 03:30 AM - Forum: News - Replies (1)

Print this item

  https://youtu.be/3eTMfQgqIKU
Posted by: Shaps77 - 03-03-2023, 11:38 PM - Forum: DIY Project - Replies (4)

Just getting to know my KC868-A32...
Thank you KinCony for all the great YouTube videos to help   Smile

Print this item