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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,288
» Latest member: Sophia87
» Forum threads: 3,622
» Forum posts: 18,677

Full Statistics

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

Latest Threads
Help with Product Slectio...
Forum: Suggestions and feedback on KinCony's products
Last Post: phrfpeixoto
54 minutes ago
» Replies: 0
» Views: 6
Kc868a newbie questions
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
1 hour ago
» Replies: 3
» Views: 21
clk_mode for ethernet
Forum: KC868-AI
Last Post: admin
Yesterday, 12:05 PM
» Replies: 1
» Views: 7
No Ethernet, No WiFi, No ...
Forum: KC868-A128
Last Post: admin
Yesterday, 12:01 PM
» Replies: 1
» Views: 13
MB Current & Power too lo...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
Yesterday, 01:17 AM
» Replies: 3
» Views: 30
N30 LoRa and RS485 code f...
Forum: N30
Last Post: admin
Yesterday, 01:17 AM
» Replies: 1
» Views: 11
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
12-19-2025, 01:53 PM
» Replies: 112
» Views: 24,794
KC868-A32 : PSU 24VDC
Forum: KC868-A32/A32 Pro
Last Post: admin
12-18-2025, 09:58 PM
» Replies: 3
» Views: 29
a16v3 - reed switch and m...
Forum: KC868-A16v3
Last Post: admin
12-18-2025, 09:56 PM
» Replies: 11
» Views: 557
Loxone RS485
Forum: KinCony integrate with Loxone home automation
Last Post: admin
12-18-2025, 09:51 PM
» Replies: 7
» Views: 1,063

Lightbulb [Arduino IDE demo source code for KC868-AG]--#01-433Mhz send code
Posted by: KinCony Support - 01-27-2022, 01:31 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - No Replies

Code 1: //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(digitalPinToInterrupt(22)); //IO22 433Mhz send pin
}

void loop() {
  mySwitch.switchOn("11111", "00010");
  delay(1000);
  mySwitch.switchOff("11111", "00010");
  delay(1000);

  mySwitch.send(5393, 24);
  delay(1000); 
  mySwitch.send(5396, 24);
  delay(1000); 

  mySwitch.send("000000000001010100010001");
  delay(1000); 
  mySwitch.send("000000000001010100010100");
  delay(1000);

  mySwitch.sendTriState("00000FFF0F0F");
  delay(1000); 
  mySwitch.sendTriState("00000FFF0FF0");
  delay(1000);
}
   

.zip   433-sender-code.zip (Size: 811 bytes / Downloads: 629)

Print this item

  H32BS and COLB communication
Posted by: autind - 01-27-2022, 12:25 AM - Forum: KC868-HxB series Smart Controller - Replies (13)

1st - To use KCB868-H32BS connected to KCB868-COLB, with RS485 - Modbus communication, what network configurations are necessary?

2nd - Using the COLB with mqtt protocol, how to read the analog values?


3rd - To use COLD using SCADA software, which mosbus is it possible to use, RTU or TCPip?
Is it possible to configure the master-slave mode and the controller Id?

Print this item

  What i need and how communicate , and other ques.
Posted by: tahmasbi - 01-26-2022, 01:30 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

1-  can i use single pole wall switch (mechanical switch) .
2-If i use small ethernet relay installed under the wall switch for each room and connect the other side of ethernet to an switch is less expensive than all 'L' wires goes from DB for each light , because in first case it will have only on 'L' wire and all other switches in same room take from it , That's true or not?
3-What exactly needs to control house with 80 light switch (each switch my control 4 or 6 bulbs) , and control it from PC and from App?
4-Are there a way to control the thermostat?
5-Is the wire goes  from KC868 to the wall switch and then to the 3 bulb?
6-Is there any diagram that shows not only inside the DB , But also how to goes to wall switch and then to bulb?

Print this item

  Chain KC868-H32B and KC868-H32L
Posted by: tdh - 01-26-2022, 07:08 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hi, 

I have both the KC868-H32B and KC868-H32L. 

Is it possible to extend / chain the two controllers so i have 64 relay's? 

And is it then also possible to control them over HTTP like : 
http://192.168.1.10/sw_ctl.cgi?Relay64=ON

Thanks!!

Print this item

  KC868-AG ESP32 I/O pin define
Posted by: admin - 01-26-2022, 05:00 AM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (14)

ESP32 PINs define of  KC868-AG

IR receiver: IO23
IR sender: IO2

433MHz receiver: IO13
433MHz sender: IO22

Buzzer: IO4

LED: IO26,IO27,IO14  (if you want to use , need solder 3 LEDs (0603)  on the bottom of PCB by yourself)

free GPIO:
IO19,IO18,IO16,IO33,IO35,IO39
IO13,IO21,IO17,IO32,IO34,IO36

Print this item

  KC868-A16 ESP32 I/O pin define
Posted by: admin - 01-14-2022, 11:29 PM - Forum: KC868-A16 - Replies (10)

#define ANALOG_A1  36
#define ANALOG_A2  34
#define ANALOG_A3  35
#define ANALOG_A4  39

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24
Relay_IIC_address 0x25

Input_IIC_address 0x21
Input_IIC_address 0x22

DS18B20/DHT11/DHT21/LED strip -1: 32
DS18B20/DHT11/DHT21/LED strip -2: 33
DS18B20/DHT11/DHT21/LED strip -2: 14


RF433MHz wireless receiver: 2
RF433MHz wireless sender: 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:16
TXD:13

Print this item

  ESP Web Tools for KC868-A series board
Posted by: admin - 01-13-2022, 02:35 AM - Forum: KC868-A series and Uair Smart Controller - No Replies

online web install firmware for KC868-A4: https://hzkincony.github.io/kc868-a4/
online web install firmware for KC868-A8: https://hzkincony.github.io/kc868-a8/
online web install firmware for KC868-A16: https://hzkincony.github.io/kc868-a16/
online web install firmware for KC868-Uair: https://hzkincony.github.io/kc868-uair/
online web install firmware for KC868-AG: https://hzkincony.github.io/kc868-ag/

Print this item

  3D cad model of KC868-A4
Posted by: Raton - 01-12-2022, 01:26 PM - Forum: KC868-A4 - Replies (2)

Hello I recently bought KC868-A4 board. I want to make my own case for it. Can you send me 3D model of that board (or case, if you have), so I can desigin it?  preferably in .stl or .idv file.

Thanks a lot.

Print this item

  KBOX android phone app V2.0 updated
Posted by: admin - 01-10-2022, 07:42 AM - Forum: News - Replies (11)

1. Add remote control and monitor function by internet.

2. Support KinCony cloud server or any 3rd MQTT cloud server.

3. Set controller connect to any cloud server just according to server's IP and Port.

4. MQTT configure share QR code for new mobile phone.



Support products list:

KC868-H32BS,KC868-H32B,KC868-H16B,KC868-H8B,KC868-H4B,KC868-H2B,KC868-Server (in furture)

KC868-COLBS,KC868-COLB,KC868-COLB-Mini


Note: if update to this version, must delete your old version app firstly.

If you want to use KBOX application remote control by internet, KinCony supply free MQTT cloud server for you .

MQTT Server IP: 47.96.253.237   Domain name: iot.kincony.com    Port: 1883

                       

Print this item

Heart [Arduino demo source code for KC868-A4]-10 infrared signal receive and decoding
Posted by: KinCony Support - 01-07-2022, 05:27 AM - Forum: KC868-A4 - Replies (8)

 Code 9: //The demo code is IR-ReceiveAndSend2     You can copy the code to your Arduino IDE.

Code:
#include <Arduino.h>
#include "PinDefinitionsAndMore.h"

//#define EXCLUDE_EXOTIC_PROTOCOLS // saves around 900 bytes program space

#include <IRremote.h>

int SEND_BUTTON_PIN = APPLICATION_PIN;
int STATUS_PIN = LED_BUILTIN;

int DELAY_BETWEEN_REPEAT = 50;

// On the Zero and others we switch explicitly to SerialUSB
#if defined(ARDUINO_ARCH_SAMD)
#define Serial SerialUSB
#endif

// Storage for the recorded code
struct storedIRDataStruct {
    IRData receivedIRData;
    // extensions for sendRaw
    uint8_t rawCode[RAW_BUFFER_LENGTH]; // The durations if raw
    uint8_t rawCodeLength; // The length of the code
} sStoredIRData;

int lastButtonState;

void storeCode(IRData *aIRReceivedData);
void sendCode(storedIRDataStruct *aIRDataToSend);

void setup() {
    Serial.begin(115200);
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_USB) || defined(SERIAL_PORT_USBVIRTUAL)  || defined(ARDUINO_attiny3217)
    delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
#endif
    // Just to know which program is running on my Arduino
    Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));

    IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK); // Start the receiver, enable feedback LED, take LED feedback pin from the internal boards definition

    IrSender.begin(IR_SEND_PIN, ENABLE_LED_FEEDBACK); // Specify send pin and enable feedback LED at default feedback LED pin

    pinMode(STATUS_PIN, OUTPUT);

    Serial.print(F("Ready to receive IR signals at pin "));
#if defined(ARDUINO_ARCH_STM32) || defined(ESP8266)
    Serial.println(IR_RECEIVE_PIN_STRING);
#else
    Serial.println(IR_RECEIVE_PIN);
#endif

    Serial.print(F("Ready to send IR signals at pin "));
#if defined(ARDUINO_ARCH_STM32) || defined(ESP8266)
    Serial.println(IR_SEND_PIN_STRING);
#else
    Serial.print(IR_SEND_PIN);
#endif
    Serial.print(F(" on press of button at pin "));
    Serial.println(SEND_BUTTON_PIN);

}

void loop() {

    // If button pressed, send the code.
    int buttonState = digitalRead(SEND_BUTTON_PIN); // Button pin is active LOW

    /*
     * Check for button just released in order to activate receiving
     */
    if (lastButtonState == LOW && buttonState == HIGH) {
        // Re-enable receiver
        Serial.println(F("Button released"));
        IrReceiver.start();
    }

    /*
     * Check for static button state
     */
    if (buttonState == LOW) {
        IrReceiver.stop();
        /*
         * Button pressed send stored data or repeat
         */
        Serial.println(F("Button pressed, now sending"));
        digitalWrite(STATUS_PIN, HIGH);
        if (lastButtonState == buttonState) {
            sStoredIRData.receivedIRData.flags = IRDATA_FLAGS_IS_REPEAT;
        }
        sendCode(&sStoredIRData);
        digitalWrite(STATUS_PIN, LOW);
        delay(DELAY_BETWEEN_REPEAT); // Wait a bit between retransmissions

        /*
         * Button is not pressed, check for incoming data
         */
    } else if (IrReceiver.available()) {
        storeCode(IrReceiver.read());
        IrReceiver.resume(); // resume receiver
    }

    lastButtonState = buttonState;
}

// Stores the code for later playback in sStoredIRData
// Most of this code is just logging
void storeCode(IRData *aIRReceivedData) {
    if (aIRReceivedData->flags & IRDATA_FLAGS_IS_REPEAT) {
        Serial.println(F("Ignore repeat"));
        return;
    }
    if (aIRReceivedData->flags & IRDATA_FLAGS_IS_AUTO_REPEAT) {
        Serial.println(F("Ignore autorepeat"));
        return;
    }
    if (aIRReceivedData->flags & IRDATA_FLAGS_PARITY_FAILED) {
        Serial.println(F("Ignore parity error"));
        return;
    }
    /*
     * Copy decoded data
     */
    sStoredIRData.receivedIRData = *aIRReceivedData;

    if (sStoredIRData.receivedIRData.protocol == UNKNOWN) {
        Serial.print(F("Received unknown code and store "));
        Serial.print(IrReceiver.decodedIRData.rawDataPtr->rawlen - 1);
        Serial.println(F(" timing entries as raw "));
        IrReceiver.printIRResultRawFormatted(&Serial, true); // Output the results in RAW format
        sStoredIRData.rawCodeLength = IrReceiver.decodedIRData.rawDataPtr->rawlen - 1;
        /*
         * Store the current raw data in a dedicated array for later usage
         */
        IrReceiver.compensateAndStoreIRResultInArray(sStoredIRData.rawCode);
    } else {
        IrReceiver.printIRResultShort(&Serial);
        sStoredIRData.receivedIRData.flags = 0; // clear flags -esp. repeat- for later sending
        Serial.println();
    }
}

void sendCode(storedIRDataStruct *aIRDataToSend) {
    if (aIRDataToSend->receivedIRData.protocol == UNKNOWN /* i.e. raw */) {
        // Assume 38 KHz
        IrSender.sendRaw(aIRDataToSend->rawCode, aIRDataToSend->rawCodeLength, 38);

        Serial.print(F("Sent raw "));
        Serial.print(aIRDataToSend->rawCodeLength);
        Serial.println(F(" marks or spaces"));
    } else {

        /*
         * Use the write function, which does the switch for different protocols
         */
        IrSender.write(&aIRDataToSend->receivedIRData, NO_REPEATS);

        Serial.print(F("Sent: "));
        printIRResultShort(&Serial, &aIRDataToSend->receivedIRData);
    }
}

.zip   ReceiveAndSend2.zip (Size: 4.73 KB / Downloads: 722)

Print this item