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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,971
» Latest member: itzgreenpoiis0
» Forum threads: 2,423
» Forum posts: 12,543

Full Statistics

Online Users
There are currently 31 online users.
» 1 Member(s) | 20 Guest(s)
Bing, Crawl, Google, PetalBot, WordPress/, Yandex, bot, cea_automotive

Latest Threads
Sms relays control
Forum: KC868-A8S
Last Post: Michele
10 hours ago
» Replies: 6
» Views: 21
new home automation
Forum: DIY Project
Last Post: admin
11 hours ago
» Replies: 1
» Views: 7
Energy consumption not me...
Forum: KC868-M16 / M1 / MB / M30
Last Post: sebastianfs
Today, 05:26 AM
» Replies: 2
» Views: 30
M30 energy consumption no...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
Yesterday, 11:51 PM
» Replies: 1
» Views: 8
[Arduino IDE demo source ...
Forum: KC868-A16
Last Post: admin
Yesterday, 11:49 PM
» Replies: 10
» Views: 2,948
KC868-A8 board esphome + ...
Forum: KC868-A8
Last Post: admin
Yesterday, 11:47 PM
» Replies: 9
» Views: 50
Nextion display work with...
Forum: KC868-A4
Last Post: admin
Yesterday, 11:47 AM
» Replies: 5
» Views: 1,924
New KC868-A32 Arduino ESP...
Forum: Suggestions and feedback on KinCony's products
Last Post: admin
Yesterday, 11:45 AM
» Replies: 3
» Views: 16
A16 and HC-SR04
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:44 AM
» Replies: 1
» Views: 27
KC868-A4 with Nextion 5 i...
Forum: KC868-A4
Last Post: YOO SEOK
Yesterday, 01:54 AM
» Replies: 2
» Views: 2,823

  [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: 283)
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: 292)

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: 271)

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: 273)

Print this item

  [arduino source code for KC868-Uair-3] Let buzzer play tone
Posted by: admin - 12-30-2021, 01:01 AM - Forum: KC868-Uair - Replies (2)

// define Buzzer GPIO
const int TONE_OUTPUT_PIN = 26;

const int TONE_PWM_CHANNEL = 0;

void setup() {
  ledcAttachPin(TONE_OUTPUT_PIN, TONE_PWM_CHANNEL);
}

void loop() {
  // Plays the middle C scale
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_C, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_D, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_E, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_F, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_G, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_A, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_B, 4);
  delay(500);
  ledcWriteNote(TONE_PWM_CHANNEL, NOTE_C, 5);
  delay(500);
}

download arduino IDE source code file: 

.zip   play tone.zip (Size: 369 bytes / Downloads: 295)

Print this item

  [arduino source code for KC868-Uair-1] WS2812 RGB LEDs blink
Posted by: admin - 12-30-2021, 12:55 AM - Forum: KC868-Uair - No Replies

#include <FastLED.h>

#define NUM_LEDS 4
#define DATA_PIN 32
CRGB leds[NUM_LEDS];

void setup() {
    FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}

void loop() {
    leds[0] = CRGB::Blue;
    leds[1] = CRGB::Blue;
    leds[2] = CRGB::Blue;
    leds[3] = CRGB::Blue;
    FastLED.show();
    delay(2000);
    leds[0] = CRGB::Black;
    leds[1] = CRGB::Black;
    leds[2] = CRGB::Black;
    leds[3] = CRGB::Black;
    FastLED.show();
    delay(2000);
}

download arduino IDE source code file: 
.zip   Uair-LED.zip (Size: 364 bytes / Downloads: 291)

Note: install "FastLED" library online firstly.
   

Print this item