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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 3,071
» Latest member: Robert71
» Forum threads: 1,810
» Forum posts: 9,636

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 28 Guest(s)
Bing, Google, Semrush, Yandex, bot

Latest Threads
M30 does not correctly re...
Forum: KC868-M16 / M1 / MB / M30
Last Post: raju
1 hour ago
» Replies: 7
» Views: 283
KC868-A32
Forum: News
Last Post: Sunoc
4 hours ago
» Replies: 9
» Views: 1,317
KC868-A32 relay board Lox...
Forum: KC868-A32/A32 Pro
Last Post: admin
10 hours ago
» Replies: 1
» Views: 1
KC868-A16 esp32 board (A1...
Forum: KC868-A series and Uair Smart Controller
Last Post: hjahend
Yesterday, 08:26 AM
» Replies: 34
» Views: 2,883
KinCony Server16 Raspberr...
Forum: News
Last Post: admin
05-03-2024, 10:06 PM
» Replies: 2
» Views: 2
AK not connecting to cont...
Forum: KC868-AK
Last Post: mutaz
05-03-2024, 02:33 PM
» Replies: 12
» Views: 10
KC868-A4S Analog Inputs
Forum: Development
Last Post: admin
05-03-2024, 11:34 AM
» Replies: 1
» Views: 2
COL + rs485 meter
Forum: KC868-HxB series Smart Controller
Last Post: admin
05-03-2024, 08:25 AM
» Replies: 3
» Views: 3
Screws to lock the board ...
Forum: KC868-A16
Last Post: Domdsq
05-02-2024, 12:45 PM
» Replies: 5
» Views: 6
KC868 A4 for education
Forum: Apply for free sample product
Last Post: Sidboudk
05-01-2024, 06:33 PM
» Replies: 0
» Views: 1

  H32BS loss connection
Posted by: ahmedwizza - 04-28-2023, 02:32 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

hello engneer 
now i will start my project.Its villa buldig.
I already get the material from aliexpress
so when i try to test first H32bs .when connect tcp server the connection still 4 or 5 minuts  then  loss onnection
can you help me Huh

Print this item

  KC686-A64 config HA
Posted by: revenson - 04-26-2023, 11:06 AM - Forum: KC868-A64 - Replies (3)

And tell me how to write a config for the A64 board for the new mqtt ?

Print this item

  KC868-M16 configure yaml for ESPhome
Posted by: admin - 04-26-2023, 12:50 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (18)

   


.txt   KC868-M16-ESPHome.txt (Size: 7.98 KB / Downloads: 278)

esphome:
  name: m16

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "D69bY/GXlmjYkovak6WIhgmbOH8vwyqvMxIHBriYoaY="


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

  manual_ip:
    static_ip: 192.168.1.186
    gateway: 192.168.1.1
    subnet: 255.255.255.0 

cd74hc4067:
  - id: cd74hc4067_1
    pin_s0: 32
    pin_s1: 33
    pin_s2: 13
    pin_s3: 16



# Example configuration entry
sensor:

  - platform: adc
    pin: 35
    id: adc35
    update_interval: never
    attenuation: 11db

  - platform: adc
    name: "m16--AI-1"
    pin: 36
    id: adc36
    update_interval: 15s
    attenuation: 11db

  - platform: adc
    pin: 34
    name: "m16--AI-2"
    id: adc34
    update_interval: 15s
    attenuation: 11db

  - platform: adc
    pin: 39
    name: "m16--AI-3"
    id: adc39
    update_interval: 15s
    attenuation: 11db




  - platform: cd74hc4067
    id: ai1
    number: 0
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai2
    number: 1
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai3
    number: 2
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai4
    number: 3
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai5
    number: 4
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai6
    number: 5
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai7
    number: 6
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai8
    number: 7
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai9
    number: 8
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai10
    number: 9
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai11
    number: 10
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai12
    number: 11
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai13
    number: 12
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai14
    number: 13
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai15
    number: 14
    sensor: adc35
    update_interval: 5s

  - platform: cd74hc4067
    id: ai16
    number: 15
    sensor: adc35
    update_interval: 5s


  - platform: ct_clamp
    sensor: ai1
    id: Measured_Current_1
    name: "Measured Current-1"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0.0034 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: template
    id: power1
    name: "power1"
    lambda: return id(Measured_Current_1).state * 220;
    device_class: power
    unit_of_measurement: 'W'
    update_interval: 5s

  - platform: total_daily_energy
    name: "Total Daily Energy1"
    power_id: power1
    filters:
        - multiply: 0.001
    unit_of_measurement: kWh
    accuracy_decimals: 3
    icon: mdi:clock-alert
    device_class: energy


  - platform: ct_clamp
    sensor: ai2
    name: "Measured Current-2"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai3
    name: "Measured Current-3"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai4
    name: "Measured Current-4"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai5
    name: "Measured Current-5"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai6
    name: "Measured Current-6"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai7
    name: "Measured Current-7"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai8
    name: "Measured Current-8"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai9
    name: "Measured Current-9"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai10
    name: "Measured Current-10"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai11
    name: "Measured Current-11"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai12
    name: "Measured Current-12"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai13
    name: "Measured Current-13"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai14
    name: "Measured Current-14"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai15
    name: "Measured Current-15"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai16
    name: "Measured Current-16"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

time:
  - platform: sntp
    id: my_time

Print this item

  KC868-M16 ESP32 I/O pin define
Posted by: admin - 04-26-2023, 12:49 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:
SDA:4
SCL:5

SD card:
MISO: 2
MOSI: 15
SCK: 14


analog input1 (CH1) 36
analog input1 (CH2) 34
analog input1 (CH3) 39

74HC4067:
S0:32
S1:33
S2:13
S3:16

GPIO35 use for 74HC4067 extend 16 channel analog input

Print this item

  KC868-A32M configure yaml for ESPhome
Posted by: admin - 04-26-2023, 12:48 AM - Forum: KC868-A32M - Replies (3)

   

.txt   HA_A32M.txt (Size: 6.07 KB / Downloads: 200)

esphome:
  name: a32m
  platform: ESP32
  board: esp32dev


# Enable logging
logger:

# Enable Home Assistant API
api:


# Example configuration entry
i2c:
  - id: bus_a
    sda: 4
    scl: 5
    scan: true

   

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

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

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    i2c_id: bus_a
    address: 0x24

  - id: 'pcf8574_hub_out_3'  # for output channel 17-24
    i2c_id: bus_a
    address: 0x25

  - id: 'pcf8574_hub_out_4'  # for output channel 25-32
    i2c_id: bus_a
    address: 0x26
   

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

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

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

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

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

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

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


  - platform: gpio
    name: "a32m-light9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a32m-light13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
     
  - platform: gpio
    name: "a32m-light17"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light18"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light19"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 2
      mode: OUTPUT
      inverted: true

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

  - platform: gpio
    name: "a32m-light22"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light23"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light24"
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a32m-light25"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light26"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light27"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light28"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a32m-light29"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light30"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light31"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a32m-light32"
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 7
      mode: OUTPUT
      inverted: true
     
 

# Example configuration entry
sensor:
  - platform: adc
    pin: 34
    name: "a32m-analog-1"
    update_interval: 10s
    attenuation: 11db

  - platform: adc
    pin: 35
    name: "a32m-analog-2"
    update_interval: 10s
    attenuation: 11db
   
  - platform: adc
    pin: 39
    name: "a32m-analog-3"
    update_interval: 10s
    attenuation: 11db
   
  - platform: adc
    pin: 36
    name: "a32m-analog-4"
    update_interval: 10s
    attenuation: 11db

Print this item

  KC868-A32M ESP32 I/O pin define
Posted by: admin - 04-26-2023, 12:47 AM - Forum: KC868-A32M - No Replies

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

SDA:GPIO4
SCL:GPIO5

PCF8574:U6 (output1-8): 100 011 = 0x23
PCF8574:U12 (output9-16): 100 100 = 0x24
PCF8574:U50 (output17-24): 100 101 = 0x25
PCF8574:U51 (output25-32): 100 110 = 0x26


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

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:GPIO15
TXD:GPIO13

GSM:
RXD:GPIO33
TXD:GPIO32

433MHz RF receiver: GPIO14
IR receiver: GPIO16

Print this item

Big Grin PCF8574 or MCP23017
Posted by: kovalank - 04-25-2023, 02:44 PM - Forum: KC868-A16 - Replies (1)

Hi...
I am curious about why all of your I/O expander ports are using PCF8574. Why did you choose PCF8574 instead of MCP23XXX series/MCP23017 ? (some more advantages over the pcf8574)[Image: biggrin.png]

Print this item

  подключение KC868-Server Ethernet WiFi CM4 + KC868-H32B Pro-2
Posted by: Zhenis - 04-25-2023, 09:33 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (16)

Добрый день! 
Подскажите пожалуйста, приобрел у вас KC868-Server Ethernet WiFi CM4 + KC868-H32B Pro-2. По вашим видеоурокам собрал KC868-Server Ethernet Домашний помощник освещение, все работает. Как подключить к серверу KC868-Server надежный способ, проводным или MQTT какой лучше, чтобы Работала безотказно KC868-H32B Pro-2. Можете отправить послання. Спасибо!

Print this item

  USB drivers?
Posted by: MonsterJoe - 04-24-2023, 11:53 AM - Forum: KC868-AM - Replies (4)

I am looking for the USB drivers for this. 

Thanks

Print this item

  Pir sensor wiring for nodemcu esp32
Posted by: primeroz - 04-23-2023, 11:42 AM - Forum: DIY Project - Replies (9)

I have a kincony pir sensor but still waiting to receive the A4 board so in the meantime I was thinking to wire it to a nodemcu esp32. 

Looking at the wiring diagram https://www.kincony.com/how-to-use-pir-sensor.html


How should I wire the signal and COM to a nodemcu ? 

Is the signal just a 3.3v so I can just connect it to any gpio ?
What about the COM ?

Thanks

Print this item