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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,754
» Latest member: onapace
» Forum threads: 3,831
» Forum posts: 19,610

Full Statistics

Online Users
There are currently 21 online users.
» 0 Member(s) | 8 Guest(s)
AhrefsBot, Amazonbot, Bytespider, Google, bot

Latest Threads
Monitor 1 shows power=0 w...
Forum: N20
Last Post: admin
2 hours ago
» Replies: 1
» Views: 9
"KCS" v3.23.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
2 hours ago
» Replies: 2
» Views: 142
Help choosing equipment f...
Forum: DIY Project
Last Post: admin
2 hours ago
» Replies: 20
» Views: 497
kWh resolution
Forum: N30
Last Post: Vega
10 hours ago
» Replies: 23
» Views: 624
KinCony DM32 32CH ESP32 D...
Forum: News
Last Post: admin
Yesterday, 10:31 AM
» Replies: 0
» Views: 5
Adding a debounce capabil...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 10:11 AM
» Replies: 3
» Views: 13
KinCony DM4 4CH ESP32 Dim...
Forum: News
Last Post: admin
Yesterday, 04:21 AM
» Replies: 0
» Views: 8
KinCony Z1 Problem
Forum: KC868-AG / AG Pro / AG8 / Z1
Last Post: admin
Yesterday, 01:04 AM
» Replies: 12
» Views: 486
F8 on device physical swi...
Forum: F8
Last Post: admin
Yesterday, 12:53 AM
» Replies: 1
» Views: 9
G1 cannot flash latest fi...
Forum: G1
Last Post: admin
03-13-2026, 11:48 PM
» Replies: 3
» Views: 33

  [arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode
Posted by: admin - 01-04-2022, 01:16 AM - Forum: KC868-Uair - No Replies

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(13));
}

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();
  }
}


download arduino IDE source code file: 

.zip   RF-receiver.zip (Size: 393 bytes / Downloads: 738)
Note: install "rcswitch" library online firstly.
   

Print this item

  [arduino source code for KC868-Uair-7] send IR code signal
Posted by: admin - 01-03-2022, 05:41 AM - Forum: KC868-Uair - No Replies

#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {

  Serial.begin(9600);
  IrSender.begin(IR_SEND_PIN, ENABLE_LED_FEEDBACK);

}

  uint16_t sAddress = 0x78;
  uint8_t sCommand = 0xCD;
  uint8_t sRepeats = 0;

void loop() {
  IrSender.sendNEC(sAddress, sCommand, sRepeats);
  delay(1000);
}


download arduino IDE source code file: 

.zip   Uair_IR_send.zip (Size: 388 bytes / Downloads: 695)

Note: install "IRremote" library online firstly.

[Image: attachment.php?aid=456]

set IR sender and receiver GPIO pins define as below image:
[Image: attachment.php?aid=459]

Print this item

  [arduino source code for KC868-Uair-6] IR remoter button decode
Posted by: admin - 01-02-2022, 04:15 AM - Forum: KC868-Uair - No Replies

#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {
  Serial.begin(9600);
  IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK, USE_DEFAULT_FEEDBACK_LED_PIN);
}

void loop() {
    if (IrReceiver.decode()) {
        
        IrReceiver.printIRResultShort(&Serial);
        if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
          
            IrReceiver.printIRResultRawFormatted(&Serial, true);
        }
        Serial.println();
    IrReceiver.resume();
    }
}


download arduino IDE source code file: 

.zip   Uair_IR_receive.zip (Size: 569 bytes / Downloads: 696)
Note: install "IRremote" library online firstly.
   

set IR sender and receiver GPIO pins define as below image:
   

Print this item

  KC868-A Pins to HomeSpan HomeKit
Posted by: glock4101 - 12-31-2021, 10:43 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hello, I would like to use my controller for homekit control. I found out from the instructional videos that Relay 3 and 4 are on pins 2 and 15.
I would like to use more relays, and configure digital inputs as switches.
In further configuration I would like to use analog inputs and a temperature sensor.

Print this item

  [arduino source code for KC868-Uair-5] read DS18B20 temperature sensor
Posted by: admin - 12-31-2021, 02:15 AM - Forum: KC868-Uair - No Replies

#include <DS18B20.h>

DS18B20 ds(27);

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

void loop() {
 
    Serial.print(ds.getTempC());
    Serial.print("℃");
    Serial.println();
}

download arduino IDE source code file: 

.zip   temperature.zip (Size: 286 bytes / Downloads: 707)

Note: install "DallasTemperature" library online firstly.
   

edit IR send and receiver GPIO pin define in "PinDefinitionsAndMore.h"
   

Print this item

  RC snubber wiring
Posted by: bigramon - 12-30-2021, 07:19 PM - Forum: KC868-HxB series Smart Controller - Replies (10)

Can you please confirm the following wiring of the RC snubber with a KC868-H32B for a furnace valve is OK ?
[Image: kincony-rc-snubber.jpg]

Print this item

  H32B and 32 input panel stops communicating
Posted by: uvrtar - 12-30-2021, 03:05 PM - Forum: KC868-HxB series Smart Controller - Replies (5)

Hi, I have a problem with one of my setups. H32B and input panel stops communicating after 6-10 tries.
After deset it is ok gor 6-10 tries and then stops.

We changed the input panel and it is the same problem. Communicating with Home assistant and mode red is working, Just the connection with panel and contoller.
H32B was not replaced.

Any suggestions?

Print this item

  ESP32 input problem from contacts of Thermal-magnetic circuit breaker
Posted by: gokhan - 12-30-2021, 06:32 AM - Forum: DIY Project - Replies (3)

Hi
I am designing a pressure controlled vacuum tank.
Software of ESP32 and
Nextion screen is OK

But I have problem when
I get digital input from (TMCB)
thermal magnetic circuit protector( schneider gv2me14)
When red fault contacts close I want to get information of fault of motor.  But esp32 reset itself .



Attached Files Thumbnail(s)
   
Print this item

  [arduino source code for KC868-Uair-4] let Buzzer play music
Posted by: admin - 12-30-2021, 01:14 AM - Forum: KC868-Uair - No Replies

#define Do 262
#define Re 294
#define Mi 330
#define Fa 350
#define Sol 393
#define La 441
#define Si 495
#define Doo 882
#define CC 525
#define DD 589
#define EE 661
#define AA 882
#include <ESP32Servo.h>

int musiclist[32]={Do,Re,Mi,Do,Do,Re,Mi,Do,Mi,Fa,Sol,Mi,Fa,Sol,Sol,La,Sol,Fa,Mi,Do,Sol,La,Sol,Fa,Mi,Do,Re,Sol,Do,Re,Sol,Do};

int timelist[32]={2,2,2,2,2,2,2,2,2,2,4,2,2,4,1,1,1,1,2,2,1,1,1,1,2,2,3,3,4,3,3,4};

void setup(){
  Serial.begin(115200);
  pinMode(26,OUTPUT);
}

void loop(){
  int i = 0;
    for (int i = 0; i <32; i = i + (1)) {
      tone(26, musiclist[i], 125*timelist[i]);
      delay(100);
    }
    delay(1000);
    i = 0;
  }
 
download arduino IDE source code file: 

.zip   play music.zip (Size: 486 bytes / Downloads: 645)

Note: install "ESP32Servo" library online firstly.
   

Print this item

  [arduino source code for KC868-Uair-2] let Buzzer beep
Posted by: admin - 12-30-2021, 01:06 AM - Forum: KC868-Uair - No Replies

void setup() {
  pinMode(26,OUTPUT);
}

void loop() {
  digitalWrite(26,HIGH);
  delay(3000);
  digitalWrite(26,LOW);
  delay(2000);
}


download arduino IDE source code file: 

.zip   beep.zip (Size: 247 bytes / Downloads: 711)

Print this item