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 45 online users.
» 0 Member(s) | 28 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, bot, keys-so-bot

Latest Threads
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: tugra
4 hours ago
» Replies: 7
» Views: 2,261
change wake up name
Forum: KinCony AS
Last Post: gal
11 hours ago
» Replies: 12
» Views: 78
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: 172
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: 34

Bug [Arduino IDE demo source code for KC868-A64]--#04-PCF8575_Output_code
Posted by: KinCony Support - 05-12-2022, 07:35 AM - Forum: KC868-A64 - No Replies

[Arduino IDE demo source code for KC868-A64]--#04-PCF8575_Output_code
   

Code:
/*www.kincony.com */
/*KC868-A64 Code of PCF8575 output*/

#include "Arduino.h"
#include "PCF8575.h"

// Set i2c address
PCF8575 pcf8575_R1(0x24,5,16);  //SDA IO5  , SCL IO16
PCF8575 pcf8575_R2(0x25,5,16);
PCF8575 pcf8575_R3(0x21,5,16);
PCF8575 pcf8575_R4(0x22,5,16);

unsigned long timeElapsed;
void setup()
{
  Serial.begin(115200);

for(int i=0;i<16;i++)
{
  pcf8575_R1.pinMode(i,OUTPUT);
  pcf8575_R2.pinMode(i,OUTPUT);
  pcf8575_R3.pinMode(i,OUTPUT);
  pcf8575_R4.pinMode(i,OUTPUT);
}
  pcf8575_R1.begin();
  pcf8575_R2.begin();
  pcf8575_R3.begin();
  pcf8575_R4.begin();


/*
pcf8575_R1.pinMode(P0,OUTPUT);
pcf8575_R1.pinMode(P1,OUTPUT);
pcf8575_R1.pinMode(P2,OUTPUT);
pcf8575_R1.pinMode(P3,OUTPUT);
pcf8575_R1.pinMode(P4,OUTPUT);
pcf8575_R1.pinMode(P5,OUTPUT);
pcf8575_R1.pinMode(P6,OUTPUT);
pcf8575_R1.pinMode(P7,OUTPUT);
pcf8575_R1.pinMode(P8,OUTPUT);
pcf8575_R1.pinMode(P9,OUTPUT);
pcf8575_R1.pinMode(P10,OUTPUT);
pcf8575_R1.pinMode(P11,OUTPUT);
pcf8575_R1.pinMode(P12,OUTPUT);
pcf8575_R1.pinMode(P13,OUTPUT);
pcf8575_R1.pinMode(P14,OUTPUT);
pcf8575_R1.pinMode(P15,OUTPUT);

pcf8575_R2.pinMode(P0,OUTPUT);
pcf8575_R2.pinMode(P1,OUTPUT);
pcf8575_R2.pinMode(P2,OUTPUT);
pcf8575_R2.pinMode(P3,OUTPUT);
pcf8575_R2.pinMode(P4,OUTPUT);
pcf8575_R2.pinMode(P5,OUTPUT);
pcf8575_R2.pinMode(P6,OUTPUT);
pcf8575_R2.pinMode(P7,OUTPUT);
pcf8575_R2.pinMode(P8,OUTPUT);
pcf8575_R2.pinMode(P9,OUTPUT);
pcf8575_R2.pinMode(P10,OUTPUT);
pcf8575_R2.pinMode(P11,OUTPUT);
pcf8575_R2.pinMode(P12,OUTPUT);
pcf8575_R2.pinMode(P13,OUTPUT);
pcf8575_R2.pinMode(P14,OUTPUT);
pcf8575_R2.pinMode(P15,OUTPUT);

pcf8575_R3.pinMode(P0,OUTPUT);
pcf8575_R3.pinMode(P1,OUTPUT);
pcf8575_R3.pinMode(P2,OUTPUT);
pcf8575_R3.pinMode(P3,OUTPUT);
pcf8575_R3.pinMode(P4,OUTPUT);
pcf8575_R3.pinMode(P5,OUTPUT);
pcf8575_R3.pinMode(P6,OUTPUT);
pcf8575_R3.pinMode(P7,OUTPUT);
pcf8575_R3.pinMode(P8,OUTPUT);
pcf8575_R3.pinMode(P9,OUTPUT);
pcf8575_R3.pinMode(P10,OUTPUT);
pcf8575_R3.pinMode(P11,OUTPUT);
pcf8575_R3.pinMode(P12,OUTPUT);
pcf8575_R3.pinMode(P13,OUTPUT);
pcf8575_R3.pinMode(P14,OUTPUT);
pcf8575_R3.pinMode(P15,OUTPUT);
pcf8575_R4.pinMode(P0,OUTPUT);
pcf8575_R4.pinMode(P1,OUTPUT);
pcf8575_R4.pinMode(P2,OUTPUT);
pcf8575_R4.pinMode(P3,OUTPUT);
pcf8575_R4.pinMode(P4,OUTPUT);
pcf8575_R4.pinMode(P5,OUTPUT);
pcf8575_R4.pinMode(P6,OUTPUT);
pcf8575_R4.pinMode(P7,OUTPUT);
pcf8575_R4.pinMode(P8,OUTPUT);
pcf8575_R4.pinMode(P9,OUTPUT);
pcf8575_R4.pinMode(P10,OUTPUT);
pcf8575_R4.pinMode(P11,OUTPUT);
pcf8575_R4.pinMode(P12,OUTPUT);
pcf8575_R4.pinMode(P13,OUTPUT);
pcf8575_R4.pinMode(P14,OUTPUT);
pcf8575_R4.pinMode(P15,OUTPUT);   */

}

void loop()
{

for(int j=0;j<16;j++)
{
  pcf8575_R1.digitalWrite(j,LOW); delay(50);
}
for(int j=0;j<16;j++)
{
  pcf8575_R2.digitalWrite(j,LOW); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R3.digitalWrite(j,LOW); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R4.digitalWrite(j,LOW); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R1.digitalWrite(j,HIGH); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R2.digitalWrite(j,HIGH); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R3.digitalWrite(j,HIGH); delay(50);
}

for(int j=0;j<16;j++)
{
  pcf8575_R4.digitalWrite(j,HIGH); delay(50);
}
/*
//R1 LOW----------------------
pcf8575_R1.digitalWrite(P0,LOW);
delay(50);
pcf8575_R1.digitalWrite(P1,LOW);
delay(50);
pcf8575_R1.digitalWrite(P2,LOW);
delay(50);
pcf8575_R1.digitalWrite(P3,LOW);
delay(50);
pcf8575_R1.digitalWrite(P4,LOW);
delay(50);
pcf8575_R1.digitalWrite(P5,LOW);
delay(50);
pcf8575_R1.digitalWrite(P6,LOW);
delay(50);
pcf8575_R1.digitalWrite(P7,LOW);
delay(50);
pcf8575_R1.digitalWrite(P8,LOW);
delay(50);
pcf8575_R1.digitalWrite(P9,LOW);
delay(50);
pcf8575_R1.digitalWrite(P10,LOW);
delay(50);
pcf8575_R1.digitalWrite(P11,LOW);
delay(50);
pcf8575_R1.digitalWrite(P12,LOW);
delay(50);
pcf8575_R1.digitalWrite(P13,LOW);
delay(50);
pcf8575_R1.digitalWrite(P14,LOW);
delay(50);
pcf8575_R1.digitalWrite(P15,LOW);
delay(50);

//R2 LOW------------------------
pcf8575_R2.digitalWrite(P0,LOW);
delay(50);
pcf8575_R2.digitalWrite(P1,LOW);
delay(50);
pcf8575_R2.digitalWrite(P2,LOW);
delay(50);
pcf8575_R2.digitalWrite(P3,LOW);
delay(50);
pcf8575_R2.digitalWrite(P4,LOW);
delay(50);
pcf8575_R2.digitalWrite(P5,LOW);
delay(50);
pcf8575_R2.digitalWrite(P6,LOW);
delay(50);
pcf8575_R2.digitalWrite(P7,LOW);
delay(50);
pcf8575_R2.digitalWrite(P8,LOW);
delay(50);
pcf8575_R2.digitalWrite(P9,LOW);
delay(50);
pcf8575_R2.digitalWrite(P10,LOW);
delay(50);
pcf8575_R2.digitalWrite(P11,LOW);
delay(50);
pcf8575_R2.digitalWrite(P12,LOW);
delay(50);
pcf8575_R2.digitalWrite(P13,LOW);
delay(50);
pcf8575_R2.digitalWrite(P14,LOW);
delay(50);
pcf8575_R2.digitalWrite(P15,LOW);
delay(50);

//R3 LOW------------------------
pcf8575_R3.digitalWrite(P0,LOW);
delay(50);
pcf8575_R3.digitalWrite(P1,LOW);
delay(50);
pcf8575_R3.digitalWrite(P2,LOW);
delay(50);
pcf8575_R3.digitalWrite(P3,LOW);
delay(50);
pcf8575_R3.digitalWrite(P4,LOW);
delay(50);
pcf8575_R3.digitalWrite(P5,LOW);
delay(50);
pcf8575_R3.digitalWrite(P6,LOW);
delay(50);
pcf8575_R3.digitalWrite(P7,LOW);
delay(50);
pcf8575_R3.digitalWrite(P8,LOW);
delay(50);
pcf8575_R3.digitalWrite(P9,LOW);
delay(50);
pcf8575_R3.digitalWrite(P10,LOW);
delay(50);
pcf8575_R3.digitalWrite(P11,LOW);
delay(50);
pcf8575_R3.digitalWrite(P12,LOW);
delay(50);
pcf8575_R3.digitalWrite(P13,LOW);
delay(50);
pcf8575_R3.digitalWrite(P14,LOW);
delay(50);
pcf8575_R3.digitalWrite(P15,LOW);
delay(50);

//R4 LOW------------------------
pcf8575_R4.digitalWrite(P0,LOW);
delay(50);
pcf8575_R4.digitalWrite(P1,LOW);
delay(50);
pcf8575_R4.digitalWrite(P2,LOW);
delay(50);
pcf8575_R4.digitalWrite(P3,LOW);
delay(50);
pcf8575_R4.digitalWrite(P4,LOW);
delay(50);
pcf8575_R4.digitalWrite(P5,LOW);
delay(50);
pcf8575_R4.digitalWrite(P6,LOW);
delay(50);
pcf8575_R4.digitalWrite(P7,LOW);
delay(50);
pcf8575_R4.digitalWrite(P8,LOW);
delay(50);
pcf8575_R4.digitalWrite(P9,LOW);
delay(50);
pcf8575_R4.digitalWrite(P10,LOW);
delay(50);
pcf8575_R4.digitalWrite(P11,LOW);
delay(50);
pcf8575_R4.digitalWrite(P12,LOW);
delay(50);
pcf8575_R4.digitalWrite(P13,LOW);
delay(50);
pcf8575_R4.digitalWrite(P14,LOW);
delay(50);
pcf8575_R4.digitalWrite(P15,LOW);
delay(50);
//R1 HIGH-----------------------
pcf8575_R1.digitalWrite(P0,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P1,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P2,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P3,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P4,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P5,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P6,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P7,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P8,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P9,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P10,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P11,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P12,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P13,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P14,HIGH);
delay(50);
pcf8575_R1.digitalWrite(P15,HIGH);
delay(50);

//R3 HIGH------------------------
pcf8575_R2.digitalWrite(P0,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P1,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P2,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P3,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P4,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P5,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P6,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P7,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P8,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P9,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P10,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P11,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P12,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P13,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P14,HIGH);
delay(50);
pcf8575_R2.digitalWrite(P15,HIGH);
delay(50);

//R3 HIGH-----------------------
pcf8575_R3.digitalWrite(P0,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P1,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P2,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P3,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P4,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P5,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P6,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P7,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P8,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P9,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P10,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P11,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P12,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P13,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P14,HIGH);
delay(50);
pcf8575_R3.digitalWrite(P15,HIGH);
delay(50);

//R4 HIGH------------------------
pcf8575_R4.digitalWrite(P0,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P1,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P2,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P3,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P4,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P5,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P6,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P7,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P8,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P9,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P10,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P11,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P12,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P13,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P14,HIGH);
delay(50);
pcf8575_R4.digitalWrite(P15,HIGH);
delay(50);

*/
}
   



Attached Files
.zip   KC868-A64-PCF8575-DO.zip (Size: 1.48 KB / Downloads: 230)
Print this item

Bug [Arduino IDE demo source code for KC868-A64]--#03-ADC_code
Posted by: KinCony Support - 05-12-2022, 07:20 AM - Forum: KC868-A64 - No Replies

[Arduino IDE demo source code for KC868-A64]--#03-ADC_code
   

Code:
/*www.kincony.com*/
/*KC868-A64 Code of ADC_INPUT */
#include "Arduino.h"

#define ANALOG_A1   39
#define ANALOG_A2   34
#define ANALOG_A3   36
#define ANALOG_A4   35

void setup()
{
    Serial.begin(115200);
    delay(1000);

  pinMode(ANALOG_A1,INPUT);
  pinMode(ANALOG_A2,INPUT);
  pinMode(ANALOG_A3,INPUT);
  pinMode(ANALOG_A4,INPUT);
}

void loop()
{
  delay(500);
  if(analogRead(ANALOG_A1)!=0)  {Serial.printf("Current Reading A1 on Pin(%d)=%d\n",ANALOG_A1,analogRead(ANALOG_A1));}
  if(analogRead(ANALOG_A2)!=0)  {Serial.printf("Current Reading A2 on Pin(%d)=%d\n",ANALOG_A2,analogRead(ANALOG_A2));}
  if(analogRead(ANALOG_A3)!=0)  {Serial.printf("Current Reading A3 on Pin(%d)=%d\n",ANALOG_A3,analogRead(ANALOG_A3));}
  if(analogRead(ANALOG_A4)!=0)  {Serial.printf("Current Reading A4 on Pin(%d)=%d\n",ANALOG_A4,analogRead(ANALOG_A4));}
}
   
   



Attached Files
.zip   KC868-A64-ADC_INOUT.zip (Size: 686 bytes / Downloads: 230)
Print this item

Bug [Arduino IDE demo source code for KC868-A64]--#02-LAN8720_UDP_code
Posted by: KinCony Support - 05-12-2022, 07:04 AM - Forum: KC868-A64 - No Replies

[Arduino IDE demo source code for KC868-A64]--#02-LAN8720_UDP_code

   

Code:
/*www.kincony.com*/
/*KC868-A64 code of LAN8720 */
#include <ETH.h>
#include <WiFiUdp.h>

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN   18  
#define ETH_TYPE       ETH_PHY_LAN8720
#define ETH_CLK_MODE   ETH_CLOCK_GPIO17_OUT

WiFiUDP Udp;                      //Create UDP object
unsigned int localUdpPort = 4196; //local port

// Set it based on the IP address of the router
IPAddress local_ip(192, 168, 1, 200);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);

void setup()
{
  Serial.begin(115200);
  Serial.println();
  
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH

  // write confir for static IP, gateway,subnet,dns1,dns2
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {
    Serial.println("LAN8720 Configuration failed.");
  }else{Serial.println("LAN8720 Configuration success.");}
 
  Serial.println("Connected");
  Serial.print("IP Address:");
  Serial.println(ETH.localIP());

  Udp.begin(localUdpPort); //begin UDP listener
}

void loop()
{
  int packetSize = Udp.parsePacket(); //get package size
  if (packetSize)                     //if have received data
  {
    char buf[packetSize];
    Udp.read(buf, packetSize); //read current data

    Serial.println();
    Serial.print("Received: ");
    Serial.println(buf);
    Serial.print("From IP: ");
    Serial.println(Udp.remoteIP());
    Serial.print("From Port: ");
    Serial.println(Udp.remotePort());

    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data
    Udp.print("Received: ");   
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer
    Udp.endPacket();            //send data
  }
}
           



Attached Files
.zip   KC868-A64-LAN8720.zip (Size: 1.29 KB / Downloads: 249)
.zip   NetAssist.zip (Size: 481.86 KB / Downloads: 229)
Print this item

Bug [Arduino IDE demo source code for KC868-A64]--#01-RS485_code
Posted by: KinCony Support - 05-12-2022, 06:56 AM - Forum: KC868-A64 - No Replies

[Arduino IDE demo source code for KC868-A64]--#01-RS485_code
   

Code:
/*WWW.KINCONY.COM*/
/*KC868-A64 code of RS485 */
void setup() {

Serial2.begin(9600,SERIAL_8N1,13,14);  //  IO13   485RX   IO14 485TX

}

void loop() {
Serial2.println("KinCony ACBDEFG"); // Enter your print string
delay(1500);
}
   



Attached Files
.zip   KC868-A64-RS485.zip (Size: 697 bytes / Downloads: 256)
Print this item

  KC868-A64 configure for ESPhome
Posted by: admin - 05-12-2022, 01:05 AM - Forum: KC868-A64 - Replies (10)

esphome:
  name: a64
  platform: ESP32
  board: esp32dev


# Enable logging
logger:

# Enable Home Assistant API
api:


# Example configuration entry
i2c:
  - id: bus_a
    sda: 5
    scl: 16
    scan: true
    frequency: 400kHz
  - id: bus_b
    sda: 15
    scl: 4
    scan: true
    frequency: 400kHz
   

# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.198
    gateway: 192.168.1.1
    subnet: 255.255.255.0 

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_out_2'  # for output channel 17-32
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_3'  # for output channel 33-48
    i2c_id: bus_a
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_out_4'  # for output channel 49-64
    i2c_id: bus_a
    address: 0x22
    pcf8575: true
   
  - id: 'pcf8574_hub_in_1'  # for a64--input channel 1-16
    i2c_id: bus_b
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_in_2'  # for a64--input channel 17-32
    i2c_id: bus_b
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_in_3'  # for a64--input channel 33-48
    i2c_id: bus_b
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_in_4'  # for a64--input channel 49-64
    i2c_id: bus_b
    address: 0x22
    pcf8575: true 
   
# Individual outputs
switch:
  - platform: gpio
    name: "a64--light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

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

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


  - platform: gpio
    name: "a64--light9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light13"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light14"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light15"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light16"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true
     
     
  - platform: gpio
    name: "a64--light17"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light18"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light19"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light20"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light21"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light22"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light23"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light24"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light25"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light26"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light27"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light28"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light29"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light30"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light31"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light32"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light33"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light34"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light35"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light36"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light37"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light38"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light39"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light40"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light41"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light42"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light43"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light44"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light45"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light46"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light47"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light48"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 15
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "a64--light49"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light50"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light51"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light52"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light53"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light54"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light55"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light56"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light57"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light58"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light59"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light60"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a64--light61"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light62"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light63"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a64--light64"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 15
      mode: OUTPUT
      inverted: true



     
     
     
# Individual inputs
binary_sensor:
  - platform: gpio
    name: "a64--input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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


  - platform: gpio
    name: "a64--input9"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
     
     
  - platform: gpio
    name: "a64--input17"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input18"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input19"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input20"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input21"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input22"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input23"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input24"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input25"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input26"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input27"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input28"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input29"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input30"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input31"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input32"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "a64--input33"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input34"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input35"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input36"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input37"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input38"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input39"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input40"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input41"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input42"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input43"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input44"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input45"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input46"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input47"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input48"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "a64--input49"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input50"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input51"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input52"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input53"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input54"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input55"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input56"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input57"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input58"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input59"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input60"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a64--input61"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input62"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input63"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a64--input64"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 15
      mode: INPUT
      inverted: true

# Example configuration entry
sensor:
  - platform: adc
    pin: 39
    name: "a64--analog--1"
    update_interval: 20s
    attenuation: 11db

  - platform: adc
    pin: 34
    name: "a64--analog--2"
    update_interval: 20s
    attenuation: 11db
   
  - platform: adc
    pin: 36
    name: "a64--analog--3"
    update_interval: 20s
    attenuation: 11db
   
  - platform: adc
    pin: 35
    name: "a64--analog--4"
    update_interval: 20s
    attenuation: 11db



Attached Files
.txt   KC868-A64-ESPHome_PCF8575_Analog.txt (Size: 21.08 KB / Downloads: 455)
Print this item

  KC868-A64 ESP32 I/O pin define
Posted by: admin - 05-12-2022, 01:03 AM - Forum: KC868-A64 - No Replies

#define ANALOG_A1  GPIO39
#define ANALOG_A2  GPIO34
#define ANALOG_A3  GPIO36
#define ANALOG_A4  GPIO35

IIC Bus-1:A

SDA-A:GPIO5
SCL-A:GPIO16

PCF8575:U143 (relay1-16): 100 100 = 0x24
PCF8575:U145 (relay17-32): 100 101 = 0x25
PCF8575:U147 (relay33-48): 100 001 = 0x21
PCF8575:U149 (relay49-64): 100 010 = 0x22

IIC Bus-2:B
SDA-B:GPIO15
SCL-B:GPIO4

PCF8575:U14 (DI1-16): 100 100 = 0x24
PCF8575:U31 (DI17-32): 100 101 = 0x25
PCF8575:U56 (DI33-48): 100 001 = 0x21
PCF8575:U57 (DI49-64): 100 010 = 0x22


-----------------

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

--------------------

RS485:
RXD:GPIO13
TXD:GPIO14

Extend serial port (3.3v TTL level):
RXD:GPIO32
TXD:GPIO33

Print this item

  KC868-UAIR ESPHOME Config for IR and RF
Posted by: dmshimself - 05-10-2022, 09:25 PM - Forum: KC868-Uair - Replies (34)

I've recently received a bare board for a KC868-UAIR as the original shipped with the tower case didn't work.  I've got the new board working with ESPHOME and Home Assistant using the config I was given and that works fine.  But the config didn't cover the buzzer, the IR receiver/transmitter and RF receiver/transmitter.  These are advertised features, so I want to make sure the new board works.  I got the buzzer working ok, but I'm struggling with the IR and RF.

I've been asked by the supplier to make a post here, so here it is :-)

What I've done so far is to try to read IR codes using the guide is ESPHOME located here:
https://esphome.io/components/remote_tra...p-infrared

Using the tech info on the KC868-UAIR I've added the following to my ESPHOME confg given the data located here:
https://www.kincony.com/forum/showthread.php?tid=1438

remote_receiver:
  pin: GPIO19
  dump: all


With that, the ESPHOME log says that the pin is high initially and that I should invert it.  Anyway, I placed the TV remote close the front of the board where the IR receiver is next to the USB ports and no data was received.  The TV did receive them as I have the TV directly behind the board and the TV worked (volume up/down)

So I inverted the pin with

remote_receiver:
  pin:
    number: GPIO19
    inverted: true
  dump: all


and while ESPHOME no longer suggested I needed to invert the pin, I still do not get any data being dumped out to the console.  I can see other messages like the temperature changes just fine.

Has anyone got a config that works for these extra devices as access to these was an important reason for my purchase?

Print this item

  [Arduino IDE demo source code for KC868-SERVER]--#05-WS2812B LED_code
Posted by: KinCony Support - 05-06-2022, 03:28 AM - Forum: KC868-Server Raspberry Pi4 local server - No Replies

[Arduino IDE demo source code for KC868-SERVER]--#05-WS2812B LED_code

Code:
#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel rgb_display_4 = Adafruit_NeoPixel(5,4,NEO_GRB + NEO_KHZ800);
// LED numbers is 5    led connect to IO4

void setup(){
  rgb_display_4.begin();
}

void loop(){
  rgb_display_4.setPixelColor((1)-1, (0xff0000)); //LED 1 RED
  rgb_display_4.setPixelColor((2)-1, (0x3333ff)); //LED 2 BLUE
  rgb_display_4.setPixelColor((3)-1, (0xffff33)); //LED 3 YELLOW
  rgb_display_4.setPixelColor((4)-1, (0x33ff33)); //LED 4 GREEN
  rgb_display_4.setPixelColor((5)-1, (0xcc33cc)); //LED 5 PURPLE
  rgb_display_4.show();

}
Install "Adafruit_NeoPixel"first
   
   
   

Print this item

  KC868-D8
Posted by: Dm81 - 05-05-2022, 09:22 PM - Forum: KC868-HxB series Smart Controller - Replies (10)

Hello
I have a question about KC868-D8 in server mode
Is it correct that I don't receive command if I close any digital input on the board?
I think that a client connected to the KC868-D8 should be receive a command (or string) about output variation
thank you

Print this item

  KC868-COLB/BS/Mini V1.12 new firmware and PC software update
Posted by: admin - 05-05-2022, 02:00 AM - Forum: News - Replies (2)

improvement:

1. support one KC868-COLB/COLBS/COLB-Mini control multi relay board by "HTTP" command.
2. support create customsize command by "HTTP command".
3. translate "DEBUG" mode window to English language.

KC868-COLB V1.12 firmware download:

.zip   AD_COLB_V1_1_12_220503.zip (Size: 41.92 KB / Downloads: 284)

New PC software Kincony_SCB_V1.0.410.504 download:

.zip   Kincony_SCB_V1.0.410.504.zip (Size: 7.3 MB / Downloads: 409)



Attached Files Thumbnail(s)
           
Print this item