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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,368
» Latest member: Alan.llm
» Forum threads: 2,574
» Forum posts: 13,304

Full Statistics

Online Users
There are currently 60 online users.
» 1 Member(s) | 41 Guest(s)
Applebot, Bing, Bytespider, Google, Google-Apps-Script, PetalBot, bot, keys-so-bot, tugra

Latest Threads
change wake up name
Forum: KinCony AS
Last Post: gal
5 hours ago
» Replies: 12
» Views: 73
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
6 hours ago
» Replies: 17
» Views: 181
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
8 hours ago
» Replies: 32
» Views: 392
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
Yesterday, 11:43 PM
» Replies: 10
» Views: 61
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
Yesterday, 11:40 PM
» Replies: 7
» Views: 46
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:38 PM
» Replies: 2
» Views: 164
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
Yesterday, 11:37 PM
» Replies: 1
» Views: 21
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 447
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 34
M16 SHT31 sensor disconne...
Forum: KC868-M16 / M1 / MB / M30
Last Post: bsarra
12-16-2024, 08:36 PM
» Replies: 4
» Views: 39

Heart [Arduino demo source code for KC868-A4]-04 read DS18B20 temperature sensor
Posted by: KinCony Support - 01-07-2022, 02:21 AM - Forum: KC868-A4 - No Replies

Code 3: //The demo code is DS18B20    You can copy the code to your Arduino IDE

Code:
#include <DS18B20.h>

#define LOW_ALARM 20
#define HIGH_ALARM 25

DS18B20 ds(13);   //IO13

void setup() {
  Serial.begin(9600);

  while (ds.selectNext()) {
    ds.setAlarms(LOW_ALARM, HIGH_ALARM);
  }
}

void loop() {
  ds.doConversion();

  while (ds.selectNextAlarm()) {
    Serial.print("Alarm Low: ");
    Serial.print(ds.getAlarmLow());
    Serial.println(" C");
    Serial.print("Alarm High: ");
    Serial.print(ds.getAlarmHigh());
    Serial.println(" C");
    Serial.print("Temperature: ");
    Serial.print(ds.getTempC());
    Serial.println(" C\n");
  }

  delay(1000);
}
       

Print this item

Heart [Arduino demo source code for KC868-A4]-03 send 433MHz RF signal
Posted by: KinCony Support - 01-07-2022, 02:18 AM - Forum: KC868-A4 - No Replies

Code 2: //The demo code is RF-send  You can copy the code to your Arduino IDE

Code:
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  Serial.begin(9600);
    mySwitch.enableTransmit(21);  // IO21
  }

void loop() {

  /* See Example: TypeA_WithDIPSwitches */
  mySwitch.switchOn("11111", "00010");
  delay(1000);
  mySwitch.switchOff("11111", "00010");
  delay(1000);

  /* Same switch as above, but using decimal code */
  mySwitch.send(5393, 24);
  delay(1000); 
  mySwitch.send(5396, 24);
  delay(1000); 

  /* Same switch as above, but using binary code */
  mySwitch.send("000000000001010100010001");
  delay(1000); 
  mySwitch.send("000000000001010100010100");
  delay(1000);

  /* Same switch as above, but tri-state code */
  mySwitch.sendTriState("00000FFF0F0F");
  delay(1000); 
  mySwitch.sendTriState("00000FFF0FF0");
  delay(1000);

  delay(20000);
}
   

Print this item

Heart [Arduino demo source code for KC868-A4]-02 433MHz RF signal receive decode
Posted by: KinCony Support - 01-07-2022, 02:13 AM - Forum: KC868-A4 - No Replies

Code 1: //The demo code is RF-receive    You can copy the code to your Arduino IDE

Code:
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(19));  //IO19
  Serial.print("begin test");
}

void loop() {
  if (mySwitch.available()) {
   
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );

    mySwitch.resetAvailable();
  }
}
   

Print this item

Heart [Arduino demo source code for KC868-A4]-01 config Arduino IDE for ESP32 module
Posted by: KinCony Support - 01-07-2022, 02:06 AM - Forum: KC868-A4 - No Replies

 Before using KC868-A4, you need to set the parameters of the preference

Copy the following URL:https://dl.espressif.com/dl/package_esp32_index.json

       
.pdf   KC868-A4-schematic.pdf (Size: 244.64 KB / Downloads: 516)

Print this item

  KC868-D8 V4.37 new firmware update
Posted by: admin - 01-06-2022, 12:03 PM - Forum: News - Replies (5)

improvement:

when switch button work in "1 Key" mode . we let the "UP" and "DOWN" button ports with the same function. so that easy for connect two thick wire from two different places. such as this two thick wire not easy connect to one terminal pole.
   
   

update BIN file firmware by "KC868 Controller Network Bootloader" tool.

[Image: KC868-Controller-Network-Bootloader.png]
KC868 Controller Network Bootloader  

[Image: zip.png]   KC868 Controller Network Bootloader.zip

firmware BIN file

.zip   Dimmer8_V437_0106.zip (Size: 45.49 KB / Downloads: 301)

Print this item

  Smart Home Hardware
Posted by: Mati - 01-06-2022, 10:58 AM - Forum: DIY Project - Replies (7)

Hello all,
Which one of your product do you recommend for home automation.
I have RaspberryPi with home assistant. I would like to control blinds and lights via HA and also via manual wall switches. And later adding some sensors and stuff…
I was looking at Kincony relay module but there is so many options that I dont know which to choose for the best output.


Here is shematic what I would like to achieve.

   

Print this item

  KC868-A4 Serial Ports and Scl Sda ? and Voltage range of 4-20mA ports
Posted by: gokhan - 01-06-2022, 08:55 AM - Forum: KC868-HxB series Smart Controller - Replies (1)

Does  KC868-A4 model control card support to connect Nextion Screen by using Tx2 Rx2 of ESP32
or connect I2C LC by using SCL SDA ?

 I looked for but I think  KC868-A4 doesn't have SLC SDA and TX2 RX2 ports ? İf it has could you show us ?

Secondly I have 4-20mA sensor output and voltage of sensor terminals is 24V 
what happens if I connect 4-20mA sensor output to  KC868-A4 4-20mA ports 
does the 24V of supply voltage of sensor damage the ports of  KC868-A4  ? 

Huh

Print this item

  KC868-A16 ethernet work with home assistant by ESPHome configure
Posted by: admin - 01-06-2022, 02:04 AM - Forum: KC868-A16 - Replies (10)

esphome:
  name: 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: "light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light9"
    pin:
      pcf8574: pcf8574_hub_out_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

binary_sensor:
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

# Enable logging
logger:

# Enable Home Assistant API
api:

   

Print this item

  Controlling all wall sockets using Kincony products
Posted by: viktor - 01-05-2022, 09:23 PM - Forum: KC868-HxB series Smart Controller - Replies (5)

Hi guys,
I follow Kincony products for some time and really like all the features they bring. I'm not electrician, have no experience with smart installations yet, but have master's from computer networks. As we are moving to a new flat that requires complete re-construction, I'm playing with an idea to buy Kincony products and turn that place into a smart one. I'm not fan of wireless connections due to security, so was thinking about wiring everything - around 10 lights, 15 wall switches, 30 wall sockets and 4 external curtains. LAN network would be OK for me. I struggle with few things and maybe somebody in this forum can help me to answer them? Sorry If my questions are lame...

1. Is above described scenario OK for Kincony products?
2. I'm located in Europe and our sockets have max load of 16A. I see that KC868-H output ports have max load of 10A. So how can this control 16A sockets? Should I use those Omron relays that support 16A? If so how to chain them?
3. If I want to be able to turn on/off each wall socket separately, what products should I use and how to wire them? Max output ports I see in the list is 32, so seems like I need to do some chaining? Also, when it comes to connection, do I need to run separate L wire between relay appliance and sockets? When it comes to N and GND wires, those can be chained from one socket to another?
4. I understand that wall switches will only use 12V. Initially I thought they only use some simple data bus wire to send signal about pushed button to controller. But looking at the pictures of some Kincony switches in articles posted here, there are many ports on the back side. So how does this actually work and how many wires do I need to run to each wall switch?
5. Finally, which products should I buy to achieve all of this? It is clear that I will need to ask electrician for installation. But I would like to understand this myself as well.

Thank you.

Print this item

Rainbow [Arduino IDE demo source code for KC868-A16]--#08-PCF8574-DO
Posted by: KinCony Support - 01-05-2022, 08:27 AM - Forum: KC868-A16 - Replies (12)

Code 7: //The demo code is PCF8574-DO    You can copy the code to your Arduino IDE.


Code:
#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574_1(0x24,4,5);
PCF8574 pcf8574_2(0x25,4,5);

void setup()
{
  Serial.begin(115200);
 
  pcf8574_1.pinMode(P0, OUTPUT);
  pcf8574_1.pinMode(P1, OUTPUT);
  pcf8574_1.pinMode(P2, OUTPUT);
  pcf8574_1.pinMode(P3, OUTPUT);
  pcf8574_1.pinMode(P4, OUTPUT);
  pcf8574_1.pinMode(P5, OUTPUT);
  pcf8574_1.pinMode(P6, OUTPUT);
  pcf8574_1.pinMode(P7, OUTPUT);

  pcf8574_2.pinMode(P0, OUTPUT);
  pcf8574_2.pinMode(P1, OUTPUT);
  pcf8574_2.pinMode(P2, OUTPUT);
  pcf8574_2.pinMode(P3, OUTPUT);
  pcf8574_2.pinMode(P4, OUTPUT);
  pcf8574_2.pinMode(P5, OUTPUT);
  pcf8574_2.pinMode(P6, OUTPUT);
  pcf8574_2.pinMode(P7, OUTPUT);


    Serial.print("Init pcf8574_1...");
    if (pcf8574_1.begin()){
        Serial.println("PCF8574_1_OK");
    }else{
        Serial.println("PCF8574_1_KO");
    }

  Serial.print("Init pcf8574_2...");
  if (pcf8574_2.begin()){
    Serial.println("PCF8574_2_OK");
  }else{
    Serial.println("PCF8574_2_KO");
  }


}

void loop()
{
  pcf8574_1.digitalWrite(P7, LOW);
  delay(1000);
  pcf8574_1.digitalWrite(P7, HIGH);
  delay(1000);

  pcf8574_2.digitalWrite(P7, LOW);
  delay(1000);
  pcf8574_2.digitalWrite(P7, HIGH);
  delay(1000);
}
   
   

Print this item