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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,375
» Latest member: daleldalel
» Forum threads: 2,577
» Forum posts: 13,330

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 29 Guest(s)
Bing, Bytespider, Crawl, Google, bot

Latest Threads
KC868-AG RF - sending rep...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
1 hour ago
» Replies: 5
» Views: 155
Kc868 a8 in workshop
Forum: KC868-A8
Last Post: admin
3 hours ago
» Replies: 1
» Views: 3
KC868-A2 configure yaml f...
Forum: KC868-A2
Last Post: admin
4 hours ago
» Replies: 16
» Views: 7,691
One input switch - turn o...
Forum: KinCony AS
Last Post: admin
4 hours ago
» Replies: 1
» Views: 2
change wake up name
Forum: KinCony AS
Last Post: admin
4 hours ago
» Replies: 15
» Views: 111
KC868-A8 Switch
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
4 hours ago
» Replies: 3
» Views: 36
H32L - home assistant
Forum: KC868-HxB series Smart Controller
Last Post: admin
4 hours ago
» Replies: 1
» Views: 5
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: Poczwara13
6 hours ago
» Replies: 7
» Views: 69
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
7 hours ago
» Replies: 14
» Views: 481
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 09:03 AM
» Replies: 12
» Views: 140

  H32B PRO problems with home assistant
Posted by: kkabuu - 12-23-2023, 04:48 PM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hello. I have this H32B PRO control module.
and in home assistant I only see 4 entities. I can't find the rest up to 32.
can someone help me with this configuration?
I'm a beginner.
Thank you
   

Print this item

  KC868-A16 Section Control AgIO v5.7
Posted by: zeltini1401 - 12-23-2023, 11:18 AM - Forum: "KCS" firmware system - Replies (7)

You can help configure the KC868-A16 board so that the UDP AgIO v5.7 version program works when connected to a computer with a Lan cable, wifi or another way.
I want the output relays to respond to the section controller.
I don't understand much myself and I don't have any acquaintances who understand network settings very well.



Attached Files Thumbnail(s)
       
Print this item

Photo temperature sensor
Posted by: ahmedwizza1 - 12-22-2023, 09:55 PM - Forum: KC868-A128 - Replies (3)

hello engineer


I want to know how to connect humidity and temperature sensor to the A128  or kc868 server 





   

Print this item

  RS485 PC software for KC868-H32B Pro relay controller
Posted by: admin - 12-21-2023, 07:45 AM - Forum: News - No Replies

   

.zip   H32PRO_APP_RS485_V1.0.23.1214.zip (Size: 2.35 MB / Downloads: 113)

Print this item

  [Arduino source code for MB]-02 debug 4G module AT command
Posted by: admin - 12-21-2023, 02:39 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

   
[Image: attachment.php?aid=1056]

Code:
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200);
}

void loop() {
  while (Serial.available()) {
    //  delay(1);
      Serial2.write(Serial.read());
  }
  while (Serial2.available()) {
       Serial.write(Serial2.read());
  }
}

Print this item

  [Arduino source code for MB]-01 read 16CH INA226 voltage and current
Posted by: admin - 12-21-2023, 02:35 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

   
   
   
   
source code: 
.zip   INA226_demo.zip (Size: 595 bytes / Downloads: 261)

Code:
//
//    FILE: INA226_demo.ino
//  AUTHOR: Rob Tillaart
// PURPOSE: demo
//     URL: https://github.com/RobTillaart/INA226


#include "INA226.h"
#include "Wire.h"

INA226 INA(0x40);


void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);
  Serial.print("INA226_LIB_VERSION: ");
  Serial.println(INA226_LIB_VERSION);

  Wire.begin();
  if (!INA.begin() )
  {
    Serial.println("could not connect. Fix and Reboot");
  }
  INA.setMaxCurrentShunt(8, 0.01);
}


void loop()
{
  Serial.println("\nBUS\tSHUNT\tCURRENT\tPOWER");
  for (int i = 0; i < 20; i++)
  {
    Serial.print(INA.getBusVoltage(), 3);
    Serial.print("\t");
    Serial.print(INA.getShuntVoltage_mV(), 3);
    Serial.print("\t");
    Serial.print(INA.getCurrent_mA(), 3);
    Serial.print("\t");
    Serial.print(INA.getPower_mW(), 3);
    Serial.println();
    delay(1000);
  }
}


//  -- END OF FILE --



Attached Files
.txt   install INA226 arduino library.txt (Size: 37 bytes / Downloads: 136)
Print this item

  KinCony MB ESP32 Battery Monitor board configure yaml for ESPhome
Posted by: admin - 12-21-2023, 02:26 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (2)

   

.txt   MB_HA_INA226.txt (Size: 11.36 KB / Downloads: 152)
esphome:
  name: mb
  platform: ESP32
  board: esp32dev

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

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

sensor:
  - platform: ina226
    address: 0x40
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-1"
      id: current_1
    power:
      name: "INA226 Power-1"
    bus_voltage:
      name: "INA226 Bus Voltage-1"
      id: voltage_1
    shunt_voltage:
      name: "INA226 Shunt Voltage-1"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x41
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-2"
      id: current_2
    power:
      name: "INA226 Power-2"
    bus_voltage:
      name: "INA226 Bus Voltage-2"
      id: voltage_2
    shunt_voltage:
      name: "INA226 Shunt Voltage-2"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x42
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-3"
      id: current_3
    power:
      name: "INA226 Power-3"
    bus_voltage:
      name: "INA226 Bus Voltage-3"
      id: voltage_3
    shunt_voltage:
      name: "INA226 Shunt Voltage-3"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x43
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-4"
      id: current_4
    power:
      name: "INA226 Power-4"
    bus_voltage:
      name: "INA226 Bus Voltage-4"
      id: voltage_4
    shunt_voltage:
      name: "INA226 Shunt Voltage-4"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x44
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-5"
      id: current_5
    power:
      name: "INA226 Power-5"
    bus_voltage:
      name: "INA226 Bus Voltage-5"
      id: voltage_5
    shunt_voltage:
      name: "INA226 Shunt Voltage-5"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x45
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-6"
      id: current_6
    power:
      name: "INA226 Power-6"
    bus_voltage:
      name: "INA226 Bus Voltage-6"
      id: voltage_6
    shunt_voltage:
      name: "INA226 Shunt Voltage-6"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x46
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-7"
      id: current_7
    power:
      name: "INA226 Power-7"
    bus_voltage:
      name: "INA226 Bus Voltage-7"
      id: voltage_7
    shunt_voltage:
      name: "INA226 Shunt Voltage-7"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x47
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-8"
      id: current_8
    power:
      name: "INA226 Power-8"
    bus_voltage:
      name: "INA226 Bus Voltage-8"
      id: voltage_8
    shunt_voltage:
      name: "INA226 Shunt Voltage-8"
    max_current: 15A
    update_interval: 5s


  - platform: ina226
    address: 0x40
    i2c_id: bus_b
    shunt_resistance: 0.1 ohm
    current:
      name: "INA226 Current-9"
      id: current_9
    power:
      name: "INA226 Power-9"
    bus_voltage:
      name: "INA226 Bus Voltage-9"
      id: voltage_9
    shunt_voltage:
      name: "INA226 Shunt Voltage-9"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x41
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-10"
      id: current_10
    power:
      name: "INA226 Power-10"
    bus_voltage:
      name: "INA226 Bus Voltage-10"
      id: voltage_10
    shunt_voltage:
      name: "INA226 Shunt Voltage-10"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x42
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-11"
      id: current_11
    power:
      name: "INA226 Power-11"
    bus_voltage:
      name: "INA226 Bus Voltage-11"
      id: voltage_11
    shunt_voltage:
      name: "INA226 Shunt Voltage-11"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x43
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-12"
      id: current_12
    power:
      name: "INA226 Power-12"
    bus_voltage:
      name: "INA226 Bus Voltage-12"
      id: voltage_12
    shunt_voltage:
      name: "INA226 Shunt Voltage-12"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x44
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-13"
      id: current_13
    power:
      name: "INA226 Power-13"
    bus_voltage:
      name: "INA226 Bus Voltage-13"
      id: voltage_13
    shunt_voltage:
      name: "INA226 Shunt Voltage-13"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x45
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-14"
      id: current_14
    power:
      name: "INA226 Power-14"
    bus_voltage:
      name: "INA226 Bus Voltage-14"
      id: voltage_14
    shunt_voltage:
      name: "INA226 Shunt Voltage-14"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x46
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-15"
      id: current_15
    power:
      name: "INA226 Power-15"
    bus_voltage:
      name: "INA226 Bus Voltage-15"
      id: voltage_15
    shunt_voltage:
      name: "INA226 Shunt Voltage-15"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x47
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-16"
      id: current_16
    power:
      name: "INA226 Power-16"
    bus_voltage:
      name: "INA226 Bus Voltage-16"
      id: voltage_16
    shunt_voltage:
      name: "INA226 Shunt Voltage-16"
    max_current: 15A
    update_interval: 5s

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "Monitor");
      it.printf(0, 20, id(roboto), "V1: %.1fV", id(voltage_1).state);
      it.printf(0, 40, id(roboto), "A1: %.1fA", id(current_1).state);

# Enable logging
logger:

# Enable Home Assistant API
api:

#external_components:
#  - source:
#      type: git
#      url: https://github.com/hzkincony/esphome-universal-tcp
#      ref: v1.0.0

#universal_tcp:
#  id: universal_tcp1
#  local_port: 8888 # esp32 will listen on this port

#interval:
#  - interval: 5s
#    then:
#      - lambda: !lambda |-
#          auto current = value_accuracy_to_string(id(current_1).state, 2);
#          auto voltage = value_accuracy_to_string(id(voltage_1).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,1," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_2).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_2).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,2," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_3).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_3).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,3," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_4).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_4).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,4," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_5).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,5," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_6).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_6).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,6," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_7).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_7).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,7," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_8).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_8).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,8," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_9).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_9).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,9," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_10).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_10).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,10," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_11).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,11," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_12).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_12).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,12," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_13).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_13).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,13," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_14).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_14).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,14," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_15).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_15).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,15," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_16).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_16).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,16," + current + "," + voltage + ",OK");

Print this item

  KinCony MB ESP32 Battery Monitor PCB I/O pin define
Posted by: admin - 12-21-2023, 02:22 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

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

IIC BUS-a: (U7-U14, SSD1306 display)
SDA-1:15
SCL-1:4

i2c address of chips:
U7:0x40
U8:0x41
U9:0x42
U10:0x43
U11:0x44
U12:0x45
U13:0x46
U14:0x47
SSD1306: 0x3c

----------------------------------
IIC BUS-b: (U15-U22)
SDA-1:5
SCL-1:16

i2c address of chips:
U15:0x40
U16:0x41
U17:0x42
U18:0x43
U19:0x44
U20:0x45
U21:0x46
U22:0x47

----------------------------------
RS485:
RXD: 32
TXD: 33

4G:
RXD:14
TXD:13

Print this item

  KC868-A16 dead?
Posted by: stanchiam - 12-20-2023, 03:27 AM - Forum: "KCS" firmware system - Replies (4)

Was using the kcs AP to connect and update the settings, suddenly it just cannot communicate, no response.
Tried pressing the download button on the a16 for more than 10 seconds to factory reset but still no response.

I try using esptool to dump/flash but will not be able to communicate with it
Also try using esphome also same.

Not sure what happened, other a16 working fine so not cable issue.

   
   

It will just keep on showing dots
   

Print this item

  Momentary Switch
Posted by: anwar.sleem@gmail.com - 12-19-2023, 04:57 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

I am looking for controlling two channel relays where it moves from NO to Closed and returns back to NO after 1 second. Which model is recommended and which protocol it supports?

Print this item