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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,233
» Latest member: beaudoin michel
» Forum threads: 3,602
» Forum posts: 18,569

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 16 Guest(s)
Amazonbot, Bing, Crawl, PetalBot, Yandex, bot

Latest Threads
N20 ESPHome & HA - Line t...
Forum: N20
Last Post: WestCoastXS
Today, 02:52 AM
» Replies: 0
» Views: 11
Automation lamps A16_V3+E...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 11:18 PM
» Replies: 6
» Views: 134
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
Yesterday, 11:16 PM
» Replies: 16
» Views: 6,648
flash kc868-a4
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:14 PM
» Replies: 9
» Views: 163
KC868-COLB Analog Sensor ...
Forum: Development
Last Post: admin
Yesterday, 11:13 PM
» Replies: 12
» Views: 121
Driver recommendation for...
Forum: DIY Project
Last Post: guycaluwaerts
Yesterday, 08:54 PM
» Replies: 7
» Views: 1,341
N30 installation for Home...
Forum: N30
Last Post: guy
Yesterday, 05:46 AM
» Replies: 13
» Views: 92
Raspberry Pi5 Compute Mod...
Forum: Pi5
Last Post: admin
Yesterday, 05:42 AM
» Replies: 1
» Views: 10
E16T is not detected when...
Forum: KC868-E16T
Last Post: admin
12-08-2025, 11:36 PM
» Replies: 6
» Views: 81
KC868-A16 rs485
Forum: KC868-A16
Last Post: admin
12-08-2025, 11:24 PM
» Replies: 1
» Views: 14

  [Arduino source code for KC868-A4S]-05 DS18B20
Posted by: KinCony Support - 03-02-2023, 05:29 AM - Forum: KC868-A4S - No Replies

Code:
/*KC868-A4S DS18B20 CODE*/
#include <DS18B20.h>
DS18B20 ds1(5);  //channel-1-DS18b20
DS18B20 ds2(14);  //channel-2-DS18b20

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

void loop()
{
  Serial.print("Temperature1:");
  Serial.print(ds1.getTempC());
  Serial.println(" C /");
  delay(100);
  Serial.print("Temperature2:");
  Serial.print(ds2.getTempC());
  Serial.println(" C /\n");
  delay(100); 
}



Attached Files
.zip   A4S_DS18B20.zip (Size: 529 bytes / Downloads: 534)
Print this item

  [Arduino source code for KC868-A4S]-04 DO
Posted by: KinCony Support - 03-02-2023, 05:28 AM - Forum: KC868-A4S - No Replies

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


#define A4S_SDA 4
#define A4S_SCL 16
TwoWire I2Cone = TwoWire(0);
TwoWire I2Ctwo = TwoWire(1);

PCF8574 pcf8574_RE1(&I2Cone,0x24,A4S_SDA,A4S_SCL);//DO
/*PCF8574 pcf8574_RE2(&I2Cone,0x21,A4S_SDA,A4S_SCL);//DO
PCF8574 pcf8574_IN1(&I2Ctwo,0x22,A4S_SDA,A4S_SCL);//DI
PCF8574 pcf8574_IN2(&I2Ctwo,0x24,A4S_SDA,A4S_SCL);//DI*/


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

void loop()
{
/* pcf8574_RE1.digitalWrite(P0, HIGH);delay(1000);
  pcf8574_RE1.digitalWrite(P1, HIGH);delay(1000);
  pcf8574_RE1.digitalWrite(P2, HIGH);delay(1000);
  pcf8574_RE1.digitalWrite(P3, HIGH);delay(1000);
 
  pcf8574_RE1.digitalWrite(P0, LOW);delay(1000);
  pcf8574_RE1.digitalWrite(P1, LOW);delay(1000);
  pcf8574_RE1.digitalWrite(P2, LOW);delay(1000);
  pcf8574_RE1.digitalWrite(P3, LOW);delay(1000);*/
 
  if(pcf8574_RE1.digitalRead(P4)==LOW)
  {
    Serial.println("D09 PRESSED");
    pcf8574_RE1.digitalWrite(P0, LOW);
    }else pcf8574_RE1.digitalWrite(P0, HIGH);
    delay (100);
  if(pcf8574_RE1.digitalRead(P5)==LOW)
  {
    Serial.println("D10 PRESSED");
    pcf8574_RE1.digitalWrite(P1, LOW);
    }else pcf8574_RE1.digitalWrite(P1, HIGH);
    delay (100);
  if(pcf8574_RE1.digitalRead(P6)==LOW)
  {
    Serial.println("D11 PRESSED");
    pcf8574_RE1.digitalWrite(P2, LOW);
    }else pcf8574_RE1.digitalWrite(P2, HIGH);
    delay (100);
  if(pcf8574_RE1.digitalRead(P7)==LOW)
  {
    Serial.println("D12 PRESSED");
    pcf8574_RE1.digitalWrite(P3, LOW);
    }else pcf8574_RE1.digitalWrite(P3, HIGH);
    delay (100);
  delay(20);


}



Attached Files
.zip   A4S_DO.zip (Size: 737 bytes / Downloads: 508)
Print this item

  [Arduino source code for KC868-A4S]-03 DI
Posted by: KinCony Support - 03-02-2023, 05:27 AM - Forum: KC868-A4S - No Replies

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

// Set i2c address
PCF8574 pcf8574_IN1(0x22,4,16);
unsigned long timeElapsed;
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(20);
}



Attached Files
.zip   A4S_DI.zip (Size: 651 bytes / Downloads: 507)
Print this item

  [Arduino source code for KC868-A4S]-02 ADC
Posted by: KinCony Support - 03-02-2023, 05:25 AM - Forum: KC868-A4S - No Replies

Code:
#include "Arduino.h"

#define ANALOG_A1   36        // IO36 
#define ANALOG_A2   39        // IO39   
#define ANALOG_A3   34        // IO34   
#define ANALOG_A4   35        // IO35

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

  pinMode(ANALOG_A1,INPUT);
  pinMode(ANALOG_A2,INPUT);
  pinMode(ANALOG_A3,INPUT);
  pinMode(ANALOG_A4,INPUT);
}

void loop()
{
  delay(500);
  Serial.printf("Current Reading A1 on Pin(%d)=%d\n",ANALOG_A1,analogRead(ANALOG_A1));
  Serial.printf("Current Reading A2 on Pin(%d)=%d\n",ANALOG_A2,analogRead(ANALOG_A2));
  Serial.printf("Current Reading A3 on Pin(%d)=%d\n",ANALOG_A3,analogRead(ANALOG_A3));
  Serial.printf("Current Reading A4 on Pin(%d)=%d\n",ANALOG_A4,analogRead(ANALOG_A4));
}



Attached Files
.zip   A4S_ADC.zip (Size: 567 bytes / Downloads: 523)
Print this item

  [Arduino source code for KC868-A4S]-01 RS485
Posted by: KinCony Support - 03-02-2023, 05:23 AM - Forum: KC868-A4S - No Replies

Code:
/*********************************
**********************************/
#define A4S_RS485_RX 33
#define A4S_RS485_TX 32
void setup() {
  Serial.begin(115200);
  pinMode(0,INPUT);
  Serial2.begin(115200,SERIAL_8N1,A4S_RS485_RX,A4S_RS485_TX);//A4S
  Serial2.println("A4S  485 TEST");
}

void loop() {
   if(digitalRead(0)==LOW)
  {
    delay(20);
     if(digitalRead(0)==LOW)
  {
    Serial2.println("Download key ok");
  }
  }
 
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//print rs485 receive
   }
  delay(200);

}



Attached Files
.zip   A4S_485.zip (Size: 582 bytes / Downloads: 515)
Print this item

  A32 Input voltage range
Posted by: Shaps77 - 03-02-2023, 05:16 AM - Forum: KC868-A32/A32 Pro - Replies (5)

What is the acceptable tolerance of the input voltage for the KC868-A32?

Print this item

  lesson34 - how to install Zigbee 3.0 gateway to home assistant
Posted by: admin - 03-02-2023, 02:25 AM - Forum: Home automation training courses - Replies (5)


1. install zigbee2mqtt
https://github.com/zigbee2mqtt/hassio-zigbee2mqtt

2. add config zigbee2mqtt
   
serial:
  port: tcp://192.168.1.201:6638
  adapter: ezsp

3. config (Zigbee Home Automation) ZHA

socket://192.168.1.201:6638
band: 115200
   
   

Print this item

Sad upgrade firmware v1.39 kc868-h32bs
Posted by: mutaz - 03-01-2023, 08:00 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

hi

i have kc868-h32bs v1.39 . 
i'm trying to upgrade the firmware . 
i downloaded KC868 Controller Bootloader and used serial to usb cable to upgrade but every time i run it i get error 
is there a way to upgrade using ethernet? if not what's the solution



Attached Files Thumbnail(s)
   
Print this item

  KC868-A4S 4G esp32 arduino relay board Released
Posted by: admin - 03-01-2023, 06:15 AM - Forum: News - No Replies

KC868-A4S esp32 arduino board based on ESP32 wifi chip, many hardware resource for you to use. it support GSM module for SMS, voice call, GPRS communication. Use SMS or call to turn ON/OFF relay will be very easy for home automation DIY. It also have 8 channel dimmer output and PWM output extender. You can write any code by Arduino IDE to ESP32 wifi/bluetooth/ethernet RS485 module. We will supply demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware for smart home automation DIY.
[Image: KC868-A4S-1_01.jpg]
[Image: KC868-A4S-1_02.jpg]
[Image: KC868-A4S-1_03.jpg]
[Image: KC868-A4S-1_04.jpg]

Print this item

  How to choose the right microcontroller/controller before starting the development of
Posted by: dedbless - 03-01-2023, 05:36 AM - Forum: DIY Project - Replies (2)

Hi guys,

I have started searching for some information about the microcontrollers/controllers with which I can develop my own controller and the SMART-house. It is needed for my research work. I am new to this, and it is hard for me to find the necessary information.
I have found that such controllers as Arduino, Raspberry PI, ESP32, etc can be used.
However, how can I find the model of the controller which can suit my requirements? They are the following:
2-stage building with a garage (so it is +-400 sq.m.) with some number of SMART devices that are responsible for security (cameras, fire alarm, etc), temperature control, radiators, leakage control, opening/closing control, etc.
I am interested in the hardware area at first.
Any advices, links to the resources, researches, and articles with a similar topic will be really appreciated.
PS: sorry for my not clear English (just in case)
Thank you in advance.

Print this item