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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,648
» Latest member: nk88eccom
» Forum threads: 4,195
» Forum posts: 20,845

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 34 Guest(s)
Amazonbot, Baidu, Bytespider, Crawl, PetalBot, Yandex, bot

Latest Threads
KCS VERSUS ESPHOME
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 10:20 PM
» Replies: 1
» Views: 15
KC868-AGv3
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 10:18 PM
» Replies: 5
» Views: 68
[arduino code examples fo...
Forum: KC868-A32/A32 Pro
Last Post: huanmarie
08-19-2026, 07:09 AM
» Replies: 2
» Views: 1,588
KC868-H32B V5.08 firmware
Forum: News
Last Post: meoowu77
08-18-2026, 11:46 AM
» Replies: 24
» Views: 8,411
KinCony B2 Smart Controll...
Forum: News
Last Post: admin
08-17-2026, 01:07 PM
» Replies: 0
» Views: 44
KC868-A8v3 PCB layout CAD...
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
08-17-2026, 08:44 AM
» Replies: 0
» Views: 49
CT Clamp Compatibility
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
08-16-2026, 11:08 PM
» Replies: 12
» Views: 2,038
N60 Sensor channel label
Forum: N60
Last Post: marekd1
08-14-2026, 09:14 PM
» Replies: 18
» Views: 2,436
solar production and cons...
Forum: N30
Last Post: admin
08-14-2026, 01:46 AM
» Replies: 3
» Views: 121
Current direction detecti...
Forum: N30
Last Post: admin
08-14-2026, 01:44 AM
» Replies: 3
» Views: 110

  PCF8574 IO Expansion i2c digital input board -DI8 ESPHome config yaml demo
Posted by: admin - 02-23-2024, 04:21 AM - Forum: Extender module - Replies (2)

i2c:
  sda: 4    #replace by your board's pin define
  scl: 5     #replace by your board's pin define
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22    #replace by your PCF8574 address

binary_sensor:
  - platform: gpio
    name: "a8-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

download yaml demo for ESPHome:

.txt   DI8_config_yaml.txt (Size: 1.53 KB / Downloads: 598)
about A0,A1,A2 i2c address setting:
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27

Print this item

  PCF8574 IO Expansion i2c relay board -DO8 ESPHome config yaml demo
Posted by: admin - 02-23-2024, 04:17 AM - Forum: Extender module - Replies (4)

i2c:
  sda: 4  #replace by your board's pin define
  scl: 5   #replace by your board's pin define
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24    #replace by your PCF8574 address

switch:
  - platform: gpio
    name: "a8-light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a8-light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a8-light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

download yaml demo for ESPHome:

.txt   DO8_config_yaml.txt (Size: 1.58 KB / Downloads: 646)

about A0,A1,A2 i2c address setting:
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27

Print this item

  PCF8574 IO Expansion i2c digital input board -DI8 arduino demo code
Posted by: admin - 02-23-2024, 04:12 AM - Forum: Extender module - No Replies

Code:
#include "Arduino.h"
#include "PCF8574.h"
// Set i2c address
PCF8574 pcf8574(0x27,4,5); //4 is SDA 5 is SCL need replace by your board's pin define
/*
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27
*/
unsigned long timeElapsed;
void setup()
{
    Serial.begin(115200);
    delay(1000);
//    pcf8574.pinMode(P0, OUTPUT);
pcf8574.pinMode(P0, INPUT);
pcf8574.pinMode(P1, INPUT);
pcf8574.pinMode(P2, INPUT);
pcf8574.pinMode(P3, INPUT);
pcf8574.pinMode(P4, INPUT);
pcf8574.pinMode(P5, INPUT);
pcf8574.pinMode(P6, INPUT);
pcf8574.pinMode(P7, INPUT);
    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}
void loop()
{
uint8_t val1 = pcf8574.digitalRead(P0);
uint8_t val2 = pcf8574.digitalRead(P1);
uint8_t val3 = pcf8574.digitalRead(P2);
uint8_t val4 = pcf8574.digitalRead(P3);
uint8_t val5 = pcf8574.digitalRead(P4);
uint8_t val6 = pcf8574.digitalRead(P5);
uint8_t val7 = pcf8574.digitalRead(P6);
uint8_t val8 = pcf8574.digitalRead(P7);
if (val1==LOW) Serial.println("KEY1 PRESSED");
if (val2==LOW) Serial.println("KEY2 PRESSED");
if (val3==LOW) Serial.println("KEY3 PRESSED");
if (val4==LOW) Serial.println("KEY4 PRESSED");
if (val5==LOW) Serial.println("KEY5 PRESSED");
if (val6==LOW) Serial.println("KEY6 PRESSED");
if (val7==LOW) Serial.println("KEY7 PRESSED");
if (val8==LOW) Serial.println("KEY8 PRESSED");
    delay(300);
}

arduino code download:

.zip   DI8.zip (Size: 594 bytes / Downloads: 719)

PCF8574 arduino library ZIP file download:

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 772)

Print this item

  PCF8574 IO Expansion i2c relay board -DO8 arduino demo code
Posted by: admin - 02-23-2024, 04:08 AM - Forum: Extender module - Replies (2)

Code:
#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574(0x27,4,5);  //4 is SDA  5 is SCL  need replace by your board's pin define
/*
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27
*/
void setup()
{
    Serial.begin(115200);
//    delay(1000);
    // Set pinMode to OUTPUT
    pcf8574.pinMode(P0, OUTPUT);
  pcf8574.pinMode(P1, OUTPUT);
  pcf8574.pinMode(P2, OUTPUT);
  pcf8574.pinMode(P3, OUTPUT);
  pcf8574.pinMode(P4, OUTPUT);
  pcf8574.pinMode(P5, OUTPUT);
  pcf8574.pinMode(P6, OUTPUT);
  pcf8574.pinMode(P7, OUTPUT);
//    pcf8574.pinMode(P1, INPUT);
    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}
void loop()
{
    pcf8574.digitalWrite(P0, HIGH);
  delay(300);
  pcf8574.digitalWrite(P0, LOW);
  delay(300);
}
arduino code download

.zip   DO8.zip (Size: 485 bytes / Downloads: 812)
PCF8574 arduino library ZIP file download:

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 899)

Print this item

  how to set KC868-H32B Pro relay inching mode with push buttons
Posted by: admin - 02-23-2024, 03:39 AM - Forum: KC868-HxB series Smart Controller - Replies (4)

   
   
   
   

for example: 
H32B Pro relay1 ON RS485 modbus command is: 01050000FF008C3A
H32B Pro relay1 OFF RS485 modbus command is: 010500000000CDCA

so you can create all custom RS485 protocol command for any buttons.

   
   
   
   
   

Print this item

  Updating ESPHome By Windows OS Command Line
Posted by: admin - 02-22-2024, 08:27 AM - Forum: Getting Started with ESPHome and Home Assistant - No Replies

windows command line:
pip3 install esphome --upgrade
Or
pip3 install esphome -U

Print this item

  how to use ESPHome dashboard in Windows OS
Posted by: admin - 02-20-2024, 11:50 AM - Forum: Getting Started with ESPHome and Home Assistant - No Replies

(You have installed Python and ESPHome component, we have another lesson for it)
1.  create folder called "config".
2.  windows CMD mode , input command:  esphome dashboard config/
3. use web browser login with "localhost:6052"

Print this item

  KC868-A8M SIM7600 GPRS Disconnected
Posted by: deepthasm - 02-19-2024, 04:29 PM - Forum: KC868-A8M - Replies (11)

Hi,
Recently I bought KC868-A8M with SIM7600 module and Installed the latest KCS firmware (KCS_KC868_A8M_V2.1.9). I enabled the GSM on the network settings page. But, I'm getting "GPRS : disconnected" on monitor page. Try to clicking "Phone test" but I'm getting "error".

Following are the logs for reference.

[1B][0;32mI (2958) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[1B][0m
I (3046) wifi:mode : softAP (08:f9:e0:8a:ee:29)
I (3047) wifi:Total power save buffer number: 16
I (3047) wifi:Init max length of beacon: 752/752
I (3049) wifi:Init max length of beacon: 752/752
[1B][0;32mI (3054) web_server: Starting HTTP Server on port: '80'[1B][0m
[1B][0;32mI (3061) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0 [1B][0m
[1B][0;32mI (3069) ntp: tz:UTC+0[1B][0m
[1B][0;32mI (3069) UDP SERVER: Socket created[1B][0m
[1B][0;32mI (3075) UDP SERVER: Socket bound, port 4001[1B][0m
[1B][0;32mI (3069) RF: RCSwitch->nReceiverInterrupt=16 gpio_pin_sel=65536[1B][0m
[1B][0;32mI (3087) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [1B][0m
[1B][0;32mI (3097) RF: Start RF receiver[1B][0m
[1B][0;32mI (3097) uart: queue free spaces: 20[1B][0m
[1B][0;32mI (3104) gprs: gprs init success.[1B][0m
[1B][0;32mI (3115) pcf857x: pcf857x init.[1B][0m
eFuse Two Point: NOT supported
eFuse Vref: Supported
[1B][0;32mI (3117) analog: ---->adc1 thresholdd : 0[1B][0m

So on, 

I checked SIM7600 module connecting directly to the Computer using USB. Module is working perfectly and can send and receive both SMS and Voice call.


Please help.



Attached Files Thumbnail(s)
   
Image(s)
       
Print this item

  How expand input using I2C bus?
Posted by: DaddyLee76 - 02-19-2024, 12:08 PM - Forum: KC868-A8 - Replies (9)

Hello! 
I bought two kc868-a8 and configured them via esphome. 
For the moment I'm using 8 digital input + 2 analog input as binary sensor and all 8 output.
I have 2 question. 
- Does it possible toggle one or more relays of the first card when I press one button of the second card? i know that I can use Home assistant for that but I'd like to know if there is a another way to do that.
- how can I expand input ports using IIC? 
Regards

Print this item

  KC868-A16 expansion
Posted by: KP9 - 02-19-2024, 11:02 AM - Forum: KC868-A16 - Replies (4)

Hello, how can I extend inputs and outputs?
Can I use KC868-HA V2?
   

Print this item