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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,924
» Latest member: Tnkad
» Forum threads: 3,903
» Forum posts: 19,911

Full Statistics

Online Users
There are currently 38 online users.
» 0 Member(s) | 23 Guest(s)
AhrefsBot, Amazonbot, Applebot, Baidu, Bytespider, Crawl, bot

Latest Threads
KC868-A16 rev1.6 firmware
Forum: "KCS" v2 firmware system
Last Post: admin
1 hour ago
» Replies: 3
» Views: 12
4 - 20 mA adc not giving ...
Forum: KC868-AIO
Last Post: admin
11 hours ago
» Replies: 3
» Views: 24
Http protocol
Forum: News
Last Post: admin
Yesterday, 09:37 PM
» Replies: 5
» Views: 30
E8v3 PCB layout CAD file
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
Yesterday, 09:35 PM
» Replies: 0
» Views: 7
KC868-16A crashing in inf...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 09:17 PM
» Replies: 7
» Views: 49
N60 Sensor channel label
Forum: N60
Last Post: admin
04-14-2026, 09:41 PM
» Replies: 1
» Views: 12
ERROR SIM not inserted SI...
Forum: KC868-E8T
Last Post: admin
04-14-2026, 12:10 PM
» Replies: 18
» Views: 981
B4 Smart Controller ESP32...
Forum: B4
Last Post: admin
04-14-2026, 12:52 AM
» Replies: 0
» Views: 5
kWh resolution
Forum: N30
Last Post: admin
04-13-2026, 11:11 PM
» Replies: 37
» Views: 1,718
Current and Power not add...
Forum: N60
Last Post: admin
04-13-2026, 05:35 AM
» Replies: 3
» Views: 31

  How to use IR emitter on GPIO of K868AG ??
Posted by: vincen - 05-01-2022, 01:13 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (6)

Hi

I'm using a K868-AG without problems to control a TV using the internal IR emitter LEDs. I want to use the GPIO avalaible on the board to wire additional IR emitters to control few other devices.
I have been careful of IR LED polarity. I have wired it between GPIO (positive side) and GND (negative side). I have also tried to add 200ohm resistor but same, it doesn't control device ! I'm sure of my ESP code as it works fine if I change code to use GPIO wired at internal LEDs ! I have tried GPIO14 with resistor and GPIO21 without but same result, not working Sad

Any ideas what's wrong ?

Thanks,

Vincèn

Print this item

  KC868-H32 +button switch module V4.43?
Posted by: Mawram - 04-30-2022, 01:32 PM - Forum: KC868-HxB series Smart Controller - Replies (5)

Hi
I have KC868-H32 (2020)  +button switch module for KC868-Hx .All worked perfect until i try  use MQTT for HA  ?
I update firmvare to 4.43   by  USB-RS232. and now switch module  doesnt  work- all lights  Smile 
What can i do now? what the last firmware  to H32?  .V4.43 works only with H3xB ?

Where i can find last firmware for H32 
thanks for help

Print this item

  Lesson23 - any controller input trigger any controller output
Posted by: admin - 04-29-2022, 01:38 AM - Forum: Home automation training courses - No Replies



1. create automation - a16-input1-trigger-a16-output1 (control KC868-A16's output)
-------------------------------------------
Trigger type: State
Entity: a16-input1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Toggle
+ Choose entity
a16-output1

2. create automation - a16-input1-trigger-output3 (control KC868-Server's output)
-------------------------------------------
Trigger type: State
Entity: a16-input1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Toggle
+ Choose entity
output3

Print this item

  Lesson22 - add RGBW LED strip to home assistant by ESPHome
Posted by: admin - 04-29-2022, 12:58 AM - Forum: Home automation training courses - Replies (16)


1. chose LED strip model
2. connect with wire: VCC,DATA,GND
3. config in ESPHome:


light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO33    # Pin Define connected with LED strip
    num_leds: 30  #LEDs number
    rgb_order: GRB
    name: "led_strip"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

Print this item

  Lesson21 - Install Raspberry Pi OS on KC868-Server
Posted by: admin - 04-27-2022, 11:32 AM - Forum: Home automation training courses - No Replies



https://www.raspberrypi.com/software/

1. Change KC868-Server USB boot jumper
2. Connect with USB cable with computer and KC868-Server
3. Power on of KC868-Server
4. Run rpiboot
5. Download and install Raspberry Pi Imager 
6. Manually install an operating system image
7. Connect KC868-Server HDMI to monitor
8. Connect keyboard and mouse to KC868-Server

Print this item

  Lesson20 - extend hardware digital output and input channels in home assistant
Posted by: admin - 04-27-2022, 03:26 AM - Forum: Home automation training courses - No Replies

1. extend output and input ports by hardware device

a. KC868-A series board  (integrate to home assistant by ESPHome)
b. KC868-HxB series board (integrate to home assistant by MQTT)

2. config ESPHome for KC868-A16


esphome:
  name: kc868-a16
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# 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.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0 


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "a16-output1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
binary_sensor:
  - platform: gpio
    name: "a16-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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

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

  - platform: gpio
    name: "a16-input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

# Enable logging
logger:

# Enable Home Assistant API
api:

Print this item

  Lesson19 - add water level sensor for automation in home assistant
Posted by: admin - 04-27-2022, 02:36 AM - Forum: Home automation training courses - Replies (22)



1. Chose water level sensor:

a. output dry contact for OPEN/CLOSE singal.
b. output DC 0-5v analog voltage.

2. create a new automation:

water-level-control-output4-on (turn on relay)
-------------------------------------------
Trigger type: State
Entity: input-1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Turn on
+ Choose entity

water-level-control-output4-off (turn off relay)
------------------------------------------
Trigger type: State
Entity: input-1
To: off


Actions:
Action type: Call service
Service: Switch:Switch: Turn off
+ Choose entity

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#11-SX1278-sender_code
Posted by: KinCony Support - 04-26-2022, 01:35 AM - Forum: KC868-A6 - Replies (13)

[Arduino IDE demo source code for KC868-A6]--#11-SX1278-sender_code

Code:
/*SX1278_sender code for KC868-A6*/
#include <LoRa.h>
#include <SPI.h>

#define ss 5
#define rst 21
#define dio0 2

int counter = 0;

void setup()
{
  Serial.begin(115200);
  while (!Serial);
  Serial.println("LoRa Sender");

  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module
 
  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}

void loop()
{
  Serial.print("Sending packet: ");
  Serial.println(counter);

  LoRa.beginPacket();   //Send LoRa packet to receiver
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(2000);
}
   
.zip   11.sx1278-sender.zip (Size: 945 bytes / Downloads: 860)
.zip   11.sx1278-sender.zip (Size: 945 bytes / Downloads: 860)

   

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#10-SX1278-receiver_code
Posted by: KinCony Support - 04-26-2022, 01:32 AM - Forum: KC868-A6 - No Replies

[Arduino IDE demo source code for KC868-A6]--#10-SX1278-receiver_code

Code:
/* SX1278 code for KC868-A6*/
#include <LoRa.h>
#include <SPI.h>

#define ss 5
#define rst 14
#define dio0 21

void setup()
{
  Serial.begin(115200);
  while (!Serial);
  Serial.println("LoRa Receiver");

  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module

  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}

void loop()
{
  int packetSize = LoRa.parsePacket();    // try to parse packet
  if (packetSize)
  {
   
    Serial.print("Received packet '");

    while (LoRa.available())              // read packet
    {
      String LoRaData = LoRa.readString();
      Serial.print(LoRaData);
    }
    Serial.print("' with RSSI ");         // print RSSI of packet
    Serial.println(LoRa.packetRssi());
  }
}
       
.zip   10.sx1278-receiver.zip (Size: 1,018 bytes / Downloads: 778)

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#09-RS485_code
Posted by: KinCony Support - 04-25-2022, 08:55 AM - Forum: KC868-A6 - Replies (15)

[Arduino IDE demo source code for KC868-A6]--#09-RS485_code

Code:
void setup(){

  Serial2.begin(9600);
}

void loop() {
Serial2.println("KinCony");

}

.zip   9.RS485.zip (Size: 469.3 KB / Downloads: 1113)

Print this item