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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,969
» Latest member: eyevisions
» Forum threads: 2,423
» Forum posts: 12,543

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 20 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot, mrwolfj

Latest Threads
Sms relays control
Forum: KC868-A8S
Last Post: Michele
3 hours ago
» Replies: 6
» Views: 20
new home automation
Forum: DIY Project
Last Post: admin
4 hours ago
» Replies: 1
» Views: 6
Energy consumption not me...
Forum: KC868-M16 / M1 / MB / M30
Last Post: sebastianfs
10 hours ago
» Replies: 2
» Views: 29
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,942
KC868-A8 board esphome + ...
Forum: KC868-A8
Last Post: admin
Yesterday, 11:47 PM
» Replies: 9
» Views: 47
Nextion display work with...
Forum: KC868-A4
Last Post: admin
Yesterday, 11:47 AM
» Replies: 5
» Views: 1,923
New KC868-A32 Arduino ESP...
Forum: Suggestions and feedback on KinCony's products
Last Post: admin
Yesterday, 11:45 AM
» Replies: 3
» Views: 15
A16 and HC-SR04
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:44 AM
» Replies: 1
» Views: 26
KC868-A4 with Nextion 5 i...
Forum: KC868-A4
Last Post: YOO SEOK
Yesterday, 01:54 AM
» Replies: 2
» Views: 2,822

  KC868-A8
Posted by: vinicius.marthes - 07-22-2024, 03:33 AM - Forum: Development - Replies (8)

Hello, I bought a KC868-A8, but in my excitement I ended up connecting it directly to the USB and cell phone charger. It is visible via USB but does not record anything. At startup, it does not test the relays, it just flashes the lights quickly, but the pilot light works. I've already replaced the IC CH340C, tested the components in the USB and 12v input circuits but I can't find out what else could have burned out. I would be grateful if someone could help me. Thanks.

Print this item

  Firmware + I2C + Button
Posted by: MarcinG - 07-21-2024, 08:22 AM - Forum: KC868-A16 - Replies (3)

Hi,

I have a few issues:

  1. When I install firmware versions newer than v.1.0.24, I can't set Bind Output, Function, On, Off and Toggle in the input settings. It simply doesn't exist (screenshot 1). This is v.2.2.4 (screenshot 2). In older firmware versions, this problem does not occur (screenshot 3). This is v.1.0.24 (screenshot 4). I'm not sure if this is an issue on my end or if these functions have been removed?
  2. Will the I2C sensor support function be added in future firmware updates? I prefer the official firmware over ESPHome, and I would like to be able to connect and operate the BME280 sensor with the official firmware just like the ONEWire DS18B20 sensor (in newer firmware versions).
  3. Is it possible to create a "virtual" button? I'm thinking of a situation like this: In my office, I have a main light connected to the output on the KC868-A16 (the button controlling this light is connected to the input) and an LED strip connected to Home Assistant via Zigbee communication. I would like to toggle the main light with a single click, toggle the LED strip with a double click, and turn off both lights with a hold on. Is this possible? It is possible to pull out the topic in Home Assistant to do automation on double click? Or maybe this can be done in the new firmware version, for example, in the input tab, where you specify which input will control which output, will be able to provide entities from Home Assistant?

Best regards,


   
   
   
   

Print this item

  KC868-AI TCP COMUNICATION PROTOCOL
Posted by: Dm81 - 07-21-2024, 07:03 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Good Morning
I didn't find KC868-AI comunication protocol in "Software & Document" menù on your website, please, is it possible to see it;
Is this board has TCP server like KC868-H16B or KC868-COLB?
thank you

Print this item

  KinCony ALR ESP32-S3 LoRa SX1278 Gateway released
Posted by: admin - 07-21-2024, 05:18 AM - Forum: News - No Replies

We have designed ESP32 LoRa SX1278 Gateway - KinCony ALR. It support install into waterproof box. it use ESP32-S3-WROOM-1U N16R8 chip. small PCB with relay,SSD1306 LCD, 4 channel analog input, digital input, i2c bus extender, 1-wire GPIO, SX1278 LoRa module, DIP switch set for LoRa address.It can use for smart home IoT project use by home assistant. ESP32-S3 also support arduino IDE / MicroPython / ESP-IDF development tool.
[Image: ESP32-LoRa-1.jpg]
[Image: ALR_diagram.jpg]
Hardware resource:
Power supply: DC9-24V
USB-C: download firmware
Buttons: ESP32 Reset and Download
ESP32-S3-WROOM-1U N16R8
SX1278 LoRa module
Relay: MAX Load AC250v10A COM,NO,NC
SSD1306 i2c LCD
8bit DIP switch: set LoRa device address
Analog Input: 4 channel dc 0-5v signal
1-wire: 1 channel
digital input: 1 channel (dry contact signal)
I2C bus: 1

Print this item

  Arduino demo source code for LoRa "Receiver"
Posted by: admin - 07-21-2024, 05:11 AM - Forum: KinCony ALR - Replies (4)

Code:
#include <LoRa.h>
#include <SPI.h>


#include <Wire.h>
#include <Bonezegei_SSD1306.h>
Bonezegei_SSD1306 oled(128, 64);

#define ss 41
#define rst 2
#define dio0 40

#include "Arduino.h"


#define ANALOG_A1   4
#define ANALOG_A2   6
#define ANALOG_A3   5
#define ANALOG_A4   7

const int Relay1 = 48;

const int K1 = 47;
const int K2 = 21;
const int K3 = 14;
const int K4 = 13;
const int K5 = 12;
const int K6 = 11;
const int K7 = 10;
const int K8 = 9;

const int IO0 = 0;  //GPIO0
const int DI1 = 16;  //DI
const int DI2 = 15;  //1-wire


void setup()
{

 
  SPI.begin(42, 43, 44, 41);  //SPI.begin(PIN_SPI_SCK, PIN_SPI_MISO, PIN_SPI_MOSI, -1);   last one is SS not used, use -1
  Wire.begin(39, 38);

  oled.begin();
  oled.clear();
//  oled.drawText(1, 0, "Arial8", oled.Font_Arial8);
  oled.drawText(1, 0, "KinCony", oled.Font_Arial14);
//  oled.drawText(1, 24, "Arial12", oled.Font_Arial12);
//  oled.drawText(1, 40, "Arial14", oled.Font_Arial14);
  oled.draw();  //update the screen
 
  Serial.begin(115200);
  Serial.println("begin");
  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module
 
  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
 
  pinMode(Relay1,OUTPUT);
 
  pinMode(K1,INPUT);
  pinMode(K2,INPUT);
  pinMode(K3,INPUT);
  pinMode(K4,INPUT);
  pinMode(K5,INPUT);
  pinMode(K6,INPUT);
  pinMode(K7,INPUT);
  pinMode(K8,INPUT);
 
  pinMode(DI1,INPUT);
  pinMode(DI2,INPUT);
  pinMode(IO0,INPUT);

  pinMode(ANALOG_A1,INPUT);
  pinMode(ANALOG_A2,INPUT);
  pinMode(ANALOG_A3,INPUT);
  pinMode(ANALOG_A4,INPUT);
  digitalWrite(Relay1, HIGH);
 


}

void loop()
{
uint8_t valk1 = digitalRead(K1);
uint8_t valk2 = digitalRead(K2);
uint8_t valk3 = digitalRead(K3);
uint8_t valk4 = digitalRead(K4);
uint8_t valk5 = digitalRead(K5);
uint8_t valk6 = digitalRead(K6);
uint8_t valk7 = digitalRead(K7);
uint8_t valk8 = digitalRead(K8);

uint8_t valdi1 = digitalRead(DI1);
uint8_t valdi2 = digitalRead(DI2);
uint8_t valIO0 = digitalRead(IO0);

   
if (valdi1==LOW) digitalWrite(Relay1, HIGH); else digitalWrite(Relay1, LOW);
if (digitalRead(DI2)==LOW)Serial.println("input2 down");
if (digitalRead(IO0)==LOW)Serial.println("DL Button down");

if (digitalRead(K1)==LOW)Serial.println("K1 down");
if (digitalRead(K2)==LOW)Serial.println("K2 down");
if (digitalRead(K3)==LOW)Serial.println("K3 down");
if (digitalRead(K4)==LOW)Serial.println("K4 down");
if (digitalRead(K5)==LOW)Serial.println("K5 down");
if (digitalRead(K6)==LOW)Serial.println("K6 down");
if (digitalRead(K7)==LOW)Serial.println("K7 down");
if (digitalRead(K8)==LOW)Serial.println("K8 down");


//-------------------------------------
  if (analogRead(ANALOG_A1)>0) Serial.printf("Current Reading A1 on Pin(%d)=%d\n",ANALOG_A1,analogRead(ANALOG_A1));
  if (analogRead(ANALOG_A2)>0) Serial.printf("Current Reading A2 on Pin(%d)=%d\n",ANALOG_A2,analogRead(ANALOG_A2));
  if (analogRead(ANALOG_A3)>0) Serial.printf("Current Reading A3 on Pin(%d)=%d\n",ANALOG_A3,analogRead(ANALOG_A3));
  if (analogRead(ANALOG_A4)>0) Serial.printf("Current Reading A4 on Pin(%d)=%d\n",ANALOG_A4,analogRead(ANALOG_A4));

//---------------------------------------
  int packetSize = LoRa.parsePacket();    // try to parse packet
  if (packetSize)
  {
   
    Serial.print("Received packet '");

    while (LoRa.available())              // read packet
    {
      String LoRaData = LoRa.readString();
      Serial.print(LoRaData);

      oled.begin();
      oled.clear();
      oled.drawText(1, 0, LoRaData.c_str(), oled.Font_Arial14);
      String temp=String(LoRa.packetRssi());
      oled.drawText(1, 40, temp.c_str(), oled.Font_Arial14);
      oled.draw();  //update the screen
     
    }
    Serial.print("' with RSSI ");         // print RSSI of packet
    Serial.println(LoRa.packetRssi());
  }



}

before use this code, need to install LoRa SX1278 arduino library firstly.
   

Print this item

  Arduino demo source code for LoRa "SENDER"
Posted by: admin - 07-21-2024, 05:10 AM - Forum: KinCony ALR - No Replies

Code:
#include <LoRa.h>
#include <SPI.h>

#define ss 41
#define rst 2
#define dio0 40

int counter = 0;

void setup()
{
  SPI.begin(42, 43, 44, 41);  //SPI.begin(PIN_SPI_SCK, PIN_SPI_MISO, PIN_SPI_MOSI, -1);   last one is SS not used, use -1
  Serial.begin(115200);
  Serial.println("LoRa Sender");

  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module
 
  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}

void loop()
{
  Serial.print("Sending packet: ");
  Serial.println(counter);

  LoRa.beginPacket();   //Send LoRa packet to receiver
  LoRa.print("KinCony LoRa");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(2000);
}
before use this code, need to install LoRa SX1278 arduino library firstly.
   

Print this item

  KinCony ALR ESP32 I/O pin define
Posted by: admin - 07-21-2024, 05:07 AM - Forum: KinCony ALR - No Replies

ANALOG_A1  4
ANALOG_A2  6
ANALOG_A3  5
ANALOG_A4  7

1-wire: 15
digital input:16

DIP switch: use for set LoRa address
DIP-K1:47
DIP-K2:21
DIP-K3:14
DIP-K4:13
DIP-K5:12
DIP-K6:11
DIP-K7:10
DIP-K8:9

relay:48

IIC SDA:39
IIC SCL:38


SPI_Bus: (For SX1278 LoRA)
CS: 41
MOSI: 44
MISO: 43
SCK: 42

RST:2
DIO0:40

Print this item

  how to use KinCony Server16/Server-Mini work with Tuya app
Posted by: admin - 07-21-2024, 12:19 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

1. add Kincony Tuya Mqtt component to home assistant by HACS
https://github.com/hzkincony/hass-tuya-mqtt
   
   
   
   
   

2. edit configuration.yaml add the code as sample code:
here is whole configuration.yaml download:

.txt   Server16-Tuya-HA.txt (Size: 6.15 KB / Downloads: 39)

you need to buy Tuya license for Server16 or Server-Mini from KinCony. how to order Tuya license, see here: https://www.kincony.com/forum/showthread.php?tid=2544

after you bought Tuya license, replace these 3 lines with yourself:

  device_id: xxxxxxxxxxxxxxxxxxxxx
  device_secret: xxxxxxxxxxxxxxxxxxx
  region: xx

"bind_id" for switch and binary_sensor, you need search in home assistant -- "Developer tools"--"STATES", input your entity name, then find the ID name.
   
   

3. use Tuya application or smart life application to scan QRcode(we will give you) add device.

4. you can test turn on/off relay and short digital input port.
here are test photo for turn on relay1,2.
   
   

here are test photo for short digital input1 with GND.
   
   

now you can not only use home assistant control device in local network, but also remote control device by internet via tuya application.
   

Print this item

  yaml detail for DI on modbus controller
Posted by: Savino - 07-20-2024, 07:45 PM - Forum: KC868-A6 - Replies (2)

Hello,

where I could find yaml file with details to add digital inputs of kc868-a6 board to modbus-controller?


I have already info to add relay, as following:

- platform: modbus_controller
  name: 'modbus-switch1'
  address: 0 # 0: relay1  1: relay 2 .........
  register_type: coil
  bitmask: 1

I need something similar to add digital inputs to the RS485.

Print this item

Wink MQTT M16v2
Posted by: jojorahu - 07-20-2024, 04:17 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

Hello


This Arduino sketch can read the 16 channels of the clamps, read the temperature and humidity sensor and send the data to a mqtt broker

att

Jose Joaquin Ramirez



Attached Files
.txt   KC868_M16_MQTT_8ch_demo.ino.txt (Size: 7.49 KB / Downloads: 94)
Print this item