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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,369
» Latest member: talljane
» Forum threads: 2,574
» Forum posts: 13,305

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 34 Guest(s)
Applebot, Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot, rntstr

Latest Threads
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: tugra
5 hours ago
» Replies: 7
» Views: 2,262
change wake up name
Forum: KinCony AS
Last Post: gal
Today, 07:36 AM
» Replies: 12
» Views: 79
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
Today, 06:38 AM
» Replies: 17
» Views: 181
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Today, 04:32 AM
» Replies: 32
» Views: 393
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
Yesterday, 11:43 PM
» Replies: 10
» Views: 66
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
Yesterday, 11:40 PM
» Replies: 7
» Views: 49
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:38 PM
» Replies: 2
» Views: 173
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
Yesterday, 11:37 PM
» Replies: 1
» Views: 23
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 448
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 37

  PCF8574 IO Expansion i2c relay board -DO8 schematic
Posted by: admin - 02-24-2024, 05:01 AM - Forum: Extender module - No Replies

here is DO8 schematic pdf

.pdf   KINCONY-EXT-DO8-V10.pdf (Size: 163.01 KB / Downloads: 193)

Print this item

  KinCony Server-Mini Node-Red testing flows
Posted by: admin - 02-24-2024, 03:03 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

test the digital input work with relay output.
decode RF433MHz receiver module data.
test RS485 send and receiver.
   
Node Red flows download:

.zip   server-mini-test-flows.zip (Size: 1.06 KB / Downloads: 102)

Print this item

  KBOX android V2.0.9 add support KC868-D16 dimmer
Posted by: admin - 02-23-2024, 05:49 AM - Forum: News - No Replies

KBOX android app add support KC868-D16 dimmer controller.
APK download link: https://www.kincony.com/download/kbox-sm...240223.apk

Print this item

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

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: 118)
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 - No Replies

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: 120)

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: 110)

PCF8574 arduino library ZIP file download:

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

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: 155)
PCF8574 arduino library ZIP file download:

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

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