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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,815
» Latest member: marryhile1
» Forum threads: 3,865
» Forum posts: 19,741

Full Statistics

Online Users
There are currently 71 online users.
» 0 Member(s) | 53 Guest(s)
AhrefsBot, Amazonbot, Applebot, Bytespider, PetalBot, Sogou web, bot

Latest Threads
Just Arrived: Annoying Bu...
Forum: KinCony AS
Last Post: admin
12 minutes ago
» Replies: 4
» Views: 1,034
kWh resolution
Forum: N30
Last Post: admin
14 minutes ago
» Replies: 34
» Views: 1,128
N60 N30 N20 N10 ARM CPU f...
Forum: N30
Last Post: admin
15 minutes ago
» Replies: 4
» Views: 46
AS-ESP32-S3 won't initial...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
16 minutes ago
» Replies: 9
» Views: 129
Channels always have curr...
Forum: KC868-AP / ADR
Last Post: admin
Today, 09:09 AM
» Replies: 21
» Views: 6,007
"KCS" v3.24.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 05:58 AM
» Replies: 0
» Views: 81
N60 Energy RS485 Modbus P...
Forum: N60
Last Post: admin
Yesterday, 05:42 AM
» Replies: 1
» Views: 362
N30 Energy RS485 Modbus P...
Forum: N30
Last Post: admin
Yesterday, 05:41 AM
» Replies: 1
» Views: 431
N20 Energy RS485 Modbus P...
Forum: N20
Last Post: admin
Yesterday, 05:40 AM
» Replies: 1
» Views: 372
N10 Energy RS485 Modbus P...
Forum: N10
Last Post: admin
Yesterday, 05:35 AM
» Replies: 1
» Views: 445

  [Arduino source code for KC868-1U]-02_INPUT
Posted by: KinCony Support - 06-21-2023, 05:19 AM - Forum: KC868-1U - No Replies

[Arduino source code for KC868-1U]-02_INPUT

Code:
/*KC868-1U Digital input code*/
#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574_IN1(0x22,4,16);

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

pcf8574_IN1.pinMode(P0, INPUT);
pcf8574_IN1.pinMode(P1, INPUT);
pcf8574_IN1.pinMode(P2, INPUT);
pcf8574_IN1.pinMode(P3, INPUT);
pcf8574_IN1.pinMode(P4, INPUT);
pcf8574_IN1.pinMode(P5, INPUT);
pcf8574_IN1.pinMode(P6, INPUT);
pcf8574_IN1.pinMode(P7, INPUT);

    pcf8574_IN1.begin();


}

void loop()
{
uint8_t val1 = pcf8574_IN1.digitalRead(P0);
uint8_t val2 = pcf8574_IN1.digitalRead(P1);
uint8_t val3 = pcf8574_IN1.digitalRead(P2);
uint8_t val4 = pcf8574_IN1.digitalRead(P3);
uint8_t val5 = pcf8574_IN1.digitalRead(P4);
uint8_t val6 = pcf8574_IN1.digitalRead(P5);
uint8_t val7 = pcf8574_IN1.digitalRead(P6);
uint8_t val8 = pcf8574_IN1.digitalRead(P7);
 
if (val1==LOW) Serial.println("KEY1 PRESSED");
if (val2==LOW) Serial.println("KEY2 PRESSED");
if (val3==LOW) Serial.println("KEY3 PRESSED");
if (val4==LOW) Serial.println("KEY4 PRESSED");
if (val5==LOW) Serial.println("KEY5 PRESSED");
if (val6==LOW) Serial.println("KEY6 PRESSED");
if (val7==LOW) Serial.println("KEY7 PRESSED");
if (val8==LOW) Serial.println("KEY8 PRESSED");

    delay(300);
}

Print this item

  [Arduino source code for KC868-1U]-01_DS18B20
Posted by: KinCony Support - 06-21-2023, 05:19 AM - Forum: KC868-1U - No Replies

[Arduino source code for KC868-1U]-01_DS18B20

Code:
#include <DS18B20.h>

DS18B20 ds1(14); 
void setup() {
  Serial.begin(115200);

}
void loop() {
      Serial.printf("Tem1 is %.2f C \n ",ds1.getTempC());
}

Print this item

  Node-Red demo for Server-Mini use by RELAY and INPUT
Posted by: admin - 06-21-2023, 04:07 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (2)

   
   
   
   

Node-Red json file download:

.zip   KinCony_Server_Mini.zip (Size: 2.84 KB / Downloads: 887)

Print this item

  SERVER-MINI PCB python test code
Posted by: admin - 06-21-2023, 01:52 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (7)

these python code use for test KinCony Server-Mini PCB hardware. you can test it locally or use remote login by putty tool. before test, install Raspberry Pi OS on SD card or eMMC (if your CM4 with eMMC)

.pdf   SERVER-MINI_test_python_code .pdf (Size: 1 MB / Downloads: 845)

.zip   putty-64bit-0.79-pre20230504-installer.zip (Size: 3.08 MB / Downloads: 898)

.zip   rpiboot_setup.zip (Size: 9.9 MB / Downloads: 713)

Print this item

  SERVER-MINI Raspberry Pi CM4 GPIO pins define
Posted by: admin - 06-21-2023, 01:27 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (1)

   

Print this item

  Server-Mini hardware interface and resource
Posted by: admin - 06-21-2023, 01:26 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (8)


.pdf   KinCony Server-Mini.pdf (Size: 12.97 MB / Downloads: 1072)

Print this item

  KC868-1U configure yaml for ESPhome Home assistant
Posted by: admin - 06-21-2023, 01:23 AM - Forum: KC868-1U - No Replies

   

.txt   KC868-1U-ha-config.txt (Size: 5.76 KB / Downloads: 427)

esphome:
  name: 1u
  platform: ESP32
  board: esp32dev
 
 
remote_receiver:
  pin: 13
  dump:
    - rc_switch
  tolerance: 50%
  filter: 250us
  idle: 2ms
  buffer_size: 2kb
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 16
  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_in_1'  # for input channel 1-8
    address: 0x22
# Individual outputs
switch:
  - platform: gpio
    name: "light1"
    id: light1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light5"
    id: light5
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true      
     
  - platform: gpio
    name: "light6"
    id: light6
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light7"
    id: light7
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "light8"
    id: light8
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
binary_sensor:
  - platform: gpio
    name: "input1"
    on_press:
      then:
        - switch.toggle: light1
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input2"
    on_press:
      then:
        - switch.toggle: light2
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input3"
    on_press:
      then:
        - switch.toggle: light3
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input4"
    on_press:
      then:
        - switch.toggle: light4
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input5"
    on_press:
      then:
        - switch.toggle: light5
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input6"
    on_press:
      then:
        - switch.toggle: light6
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input7"
    on_press:
      then:
        - switch.toggle: light7
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input8"
    on_press:
      then:
        - switch.toggle: light8
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true
  - platform: remote_receiver
    name: "remoter1"
    rc_switch_raw:
      code: '001111010111001010111000'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light1
    filters:
      - delayed_off: 200ms
  - platform: remote_receiver
    name: "remoter2"
    rc_switch_raw:
      code: '001111010111001010111100'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light2
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter3"
    rc_switch_raw:
      code: '001111010111001010110100'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light3
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter4"
    rc_switch_raw:
      code: '001111010111001010111001'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light4
    filters:
      - delayed_off: 200ms  
   
  - platform: remote_receiver
    name: "remoter5"
    rc_switch_raw:
      code: '001111010111001010110010'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light5
    filters:
      - delayed_off: 200ms
  - platform: remote_receiver
    name: "remoter6"
    rc_switch_raw:
      code: '001111010111001010110101'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light6
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter7"
    rc_switch_raw:
      code: '001111010111001010110001'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light7
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter8"
    rc_switch_raw:
      code: '001111010111001010110011'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light8
    filters:
      - delayed_off: 200ms
     
# Enable logging
logger:
# Enable Home Assistant API
api:
dallas:
  - pin: 14
    update_interval: 5s
sensor:
  - platform: dallas
    address: 0xa538cee908646128
    name: "1U Temperature"

Print this item

  KC868-1U ESP32 I/O pin define
Posted by: admin - 06-21-2023, 01:21 AM - Forum: KC868-1U - No Replies

IIC SDA:4
IIC SCL:16

Relay_IIC_address 0x24

Input_IIC_address 0x22

DS18B20/DHT11/DHT21/LED strip -2: 14

RF433MHz wireless receiver: 13
IR Sender:5
IR Receiver:15

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:32
TXD:33

Buzzer:2

Print this item

Wink KinCony Server-Mini Raspberry Pi4 relay board released
Posted by: admin - 06-20-2023, 12:56 AM - Forum: News - No Replies

KinCony Server-Mini is a raspberry pi CM4 relay board for smart home automation and industrial automation control, it’s mini version of KC868-Server. Server-Mini smart controller support 8 channel relay output and wall switch connect to it directly. The most important is integrated Raspberry pi CM4 module. Relay and digital input port have connected with CM4 module’s GPIO directly. You can use Node-Red easy to control relay and read digital input port and use I2C bus extender.
[Image: Server-mini1_01.jpg]
[Image: Server-mini1_02.jpg]
[Image: Server-mini1_03.jpg]
[Image: Server-mini2_01.jpg]
[Image: Server-mini2_02.jpg]

Print this item

Question Specifications lack of information for KC868-HxB
Posted by: fomKLM - 06-18-2023, 10:41 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

About:
https://www.kincony.com/16-channel-ether...-h16b.html

After consulting the website and documentation. Could anyone clarify, please the following:

For the Input Ports:
What is the voltage input range / type of input / type of current for the inputs of the module?
There is NO INFORMATION regarding these ports!
f.e. DC 0-5V dry contact
or AC 230V
or whatever.

For the Output Ports:
Are they isolated? Can be used for different phases? i.e relay1: Phase1-N, relay2: Phase2-N.. relay{n} phase{1,2,3}-N
Can be the unit operated at 10A/per port continousuly? (what is the duty service?)


For the "working voltage":
What is the tolerance for the power supply? In volts or %. What is the maximun current drained, I.e. mx operational power of this unit?

In general:
What is the derrating with altitude / ambient temperature (stated as -20 to +70 C)?


Are there diagrams regarding mounting spacing required (safe areas, clear areas) and hole spacing?


I think the "product parameters" for most of the products should be updated to reflect more "basic" information.

Thank you.

Print this item