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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,244
» Latest member: imperialeduau
» Forum threads: 3,610
» Forum posts: 18,599

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 19 Guest(s)
AhrefsBot, Amazonbot, Bing, Google, PetalBot, bot

Latest Threads
OPC UA Server for KC868-A...
Forum: DIY Project
Last Post: aksurd
4 hours ago
» Replies: 0
» Views: 8
RF doesnt show up?
Forum: KC868-A16v3
Last Post: admin
4 hours ago
» Replies: 1
» Views: 4
N20 ESPHome & HA - Line t...
Forum: N20
Last Post: WestCoastXS
4 hours ago
» Replies: 2
» Views: 15
Low Level Relay Trigger
Forum: KC868-A16v3
Last Post: admin
6 hours ago
» Replies: 5
» Views: 28
KC868-A16v3 ESPHome yaml ...
Forum: KC868-A16v3
Last Post: hans-martijn
10 hours ago
» Replies: 10
» Views: 3,993
KC868-A16 - the firmware ...
Forum: "KCS" v2 firmware system
Last Post: admin
Yesterday, 08:08 PM
» Replies: 1
» Views: 12
Low Level Output for Rela...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 01:35 PM
» Replies: 1
» Views: 19
Low Level Trigger for Rel...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 01:34 PM
» Replies: 1
» Views: 18
Automation lamps A16_V3+E...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 01:29 PM
» Replies: 8
» Views: 162
KC868-A16 rs485
Forum: KC868-A16
Last Post: admin
Yesterday, 01:28 PM
» Replies: 5
» Views: 45

  Where to start
Posted by: benlouisv@gmail.com - 03-06-2023, 04:35 PM - Forum: KC868-A6 - Replies (9)

Hi there everyone. I see allot of amazing things you can do with the KC868-A6 but I have no Idea where to start. I want to controll the unit with Smart life APP to switch my electric appliances on and of. But I dont know where to start with this board can anyone please assist me with steps to start using this board.

Thank you

Print this item

  updating firmware kc868-h32b
Posted by: w-w - 03-06-2023, 03:05 PM - Forum: KC868-HxB series Smart Controller - Replies (8)

my unit shipped with firmware version 4.13.34

I am attempting to upload version
Relay32_V437_210907.zip

OTA seams to run for only a few seconds and does not update

Using a serial cable and the Firmware Download Tool (firmware update tool download): https://www.kincony.com/download/KC868-C...loader.zip

it detects the bootloader
downloads progress 105/105
data send complete 
then when I press Run
it says Download finished begin running.


I power cycle the device that the firmware version is not updated??
thanks

Print this item

Tongue KC868-COLB V2.4 firmware support Tuya app
Posted by: admin - 03-06-2023, 02:05 PM - Forum: News - No Replies

improvement:

1. support use Tuya app for remote monitor sensor state.
2. support TCP Server, TCP Client, MQTT, Tuya different protocol at the same time by ethernet.
such as you can use Home assistant (by mqtt) in local LAN network and Tuya app for remote monitor by internet.

           

   

if you buy KC868-COLB before 2023-3-1 , you need to update your BOOTLOADER HEX file for your CPU.
Because the new firmware 2.4 is big and powerful. So you need to do two steps for update fireware.

1. update your CPU BOOTLOADER by Jlink tool.
2. update your firmware BIN file by USB-RS232 cable.

here are details:

for example, your KC868-COLB CPU chip is AT32F403AVGT7.
   
so download AT-link tool for flash BOOTLOADER.

.zip   Artery_ICP_Programmer_V3.0.07.zip (Size: 14.28 MB / Downloads: 556)
BOOTLOADER HEX file download

.zip   Bootloader_AD_V2_0_2_20210913.zip (Size: 4.88 KB / Downloads: 550)
open your KC868-COLB metal box
   
installed jlink computer driver and ready to use it.
   
here is pin define , connect jlink to your KC868-COLB PCB's download interface
   
   
   
begin download BOOTLOADER HEX file , just do as follow images:
   
   
   
   
   
after download BOOTLOADER completed, begin use RS232 download tool to download BIN file.
RS232 download tool:
https://www.kincony.com/download/KC868-C...loader.zip

BIN file download:

.zip   AD_COLB_V2_4_230228.zip (Size: 112.17 KB / Downloads: 539)

   
begin download BIN file , just do as follow images:
   
   
   

now all are completed, have a good timeSmile

Note: if you want to use Tuya mobile phoen app with KC868-COLB, need contact with us to buy Tuya lincence for KC868-COLB.

Print this item

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

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