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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,374
» Latest member: zeth
» Forum threads: 2,574
» Forum posts: 13,315

Full Statistics

Online Users
There are currently 58 online users.
» 1 Member(s) | 41 Guest(s)
AhrefsBot, Applebot, Bytespider, Crawl, Google, PetalBot, bot, owler, Verresen

Latest Threads
KC868-A2 configure yaml f...
Forum: KC868-A2
Last Post: elemarek
8 hours ago
» Replies: 15
» Views: 7,685
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
9 hours ago
» Replies: 12
» Views: 134
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
Today, 03:07 AM
» Replies: 13
» Views: 468
change wake up name
Forum: KinCony AS
Last Post: admin
Today, 02:10 AM
» Replies: 13
» Views: 104
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:41 PM
» Replies: 6
» Views: 51
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: admin
Yesterday, 11:15 PM
» Replies: 18
» Views: 191
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
Yesterday, 11:12 PM
» Replies: 8
» Views: 2,272
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 04:32 AM
» Replies: 32
» Views: 399
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
12-17-2024, 11:43 PM
» Replies: 10
» Views: 73
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
12-17-2024, 11:40 PM
» Replies: 7
» Views: 54

  Free sample controller KC868-A4
Posted by: Aleksis - 05-22-2023, 08:45 AM - Forum: Apply for free sample product - No Replies

Hello,

I am very interested in Kincony products and features and would like to explore all the possibilities in practice.

I would like to apply with condition A as I plan to use the KC868-A4 kit for personal training and development. I am very excited to explore the possibilities of these products and gain hands-on experience with them. I would like to try to implement various projects and in the future to purchase a large controller to automate other processes.

Best wishes,
Aleksandra

Print this item

  KC868-A8 v1.5 PIR AM312
Posted by: jonbot81 - 05-22-2023, 06:00 AM - Forum: KC868-A series and Uair Smart Controller - Replies (9)

Hello,

How would you recommend wiring the PIR sensor AM312 to the KC868-A8 v1.5?
I tried 
A8       AM312
GRD to GRD
Vcc  to  VCC
S4   to  out

   
   

Print this item

  KC868-A4 remote control over the Internet.
Posted by: kramm - 05-20-2023, 11:14 PM - Forum: KC868-A4 - Replies (1)

Hello.

I want to use the KC868-A4 for manual remote control of the boiler from an Android device.
Inputs A3 and A4 and outputs DA1 and DA2 are for power conveyor and exhaust fan control.
Inputs A1 and A2 are for temperature sensors. A DS18b20 sensor is also used for temperature control.
Digital inputs and relay outputs are for switching water pumps.

It is better to use port forwarding, VPN or DMZ than a cloud service to connect to the Internet.

I would like help in creating a program.

Print this item

  MQTT Example
Posted by: MonsterJoe - 05-19-2023, 06:35 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

// Example to read channel 1 and output to MQTT server
// Patched together from the other examples
// Install EmonLib and PubSubClient

#include <ETH.h>
#include <PubSubClient.h>
#include "Arduino.h"
#include "EmonLib.h"
EnergyMonitor emon1;
#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
// WiFiUDP Udp;                      //Create UDP object
unsigned int localUdpPort = 4196; //local port
IPAddress local_ip(10, 0, 0, 143);
IPAddress gateway(10, 0, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(10, 0, 0, 1);
#define s0 32
#define s1 33
#define s2 13
#define s3 16
#define IN3 35
int toggleState_1 = 1; //Define integer to remember the toggle state for relay 1
int toggleState_2 = 1; //Define integer to remember the toggle state for relay 2
int toggleState_3 = 1; //Define integer to remember the toggle state for relay 3
int toggleState_4 = 1; //Define integer to remember the toggle state for relay 4
// Update these with values suitable for your network.
const char* mqttServer = "10.0.0.16";
const char* mqttUserName = ""; // MQTT username
const char* mqttPwd = ""; // MQTT password
const char* clientID = "clientId"; // client id
WiFiClient espClient;
PubSubClient client(espClient);
int value = 0;
void setup_ethernet() {
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {
    Serial.println("LAN8720 Configuration failed.");
  }else{Serial.println("LAN8720 Configuration success.");}
  Serial.println("Connected");
  Serial.print("IP Address:");
  Serial.println(ETH.localIP());
}
void reconnect() {
  while (!client.connected()) {
    if (client.connect(clientID, mqttUserName, mqttPwd)) {
      Serial.println("MQTT connected");
      // ... and resubscribe
    }
    else
    {
      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
}
void callback(char* topic, byte* payload, unsigned int length) {
  Serial.print("Message arrived [");
  Serial.print(topic);
  Serial.print("] ");
  Serial.println("");
}
String byteToHexString(uint8_t byte) {
  String hexStr = String(byte, HEX);
  if (hexStr.length() == 1) {
    hexStr = "0" + hexStr;
  }
  return hexStr;
}
void setup() {
  Serial.begin(115200);
  pinMode(s0,OUTPUT);
  pinMode(s1,OUTPUT);
  pinMode(s2,OUTPUT);
  pinMode(s3,OUTPUT);
  pinMode(IN3,INPUT);
  setup_ethernet();
  client.setBufferSize(2048);
  client.setServer(mqttServer, 1883);
  client.setCallback(callback);  
 
  emon1.current(IN3, 20); // ADC_PIN is the pin where SCT013 is connected, 20 amps
}
void loop() {
  if (!client.connected()) {
    reconnect();
  }
 
  client.loop();
  Serial.println("done loop");
  // Set Low/High to flag for the input to read from: 0000 = chanel 1 to 1111 chanel 16
  digitalWrite(s0,LOW);
  digitalWrite(s1,LOW);
  digitalWrite(s2,LOW);
  digitalWrite(s3,LOW);
  if(analogRead(IN3)!=0){
    double Irms = emon1.calcIrms(1480);  // Calculate Irms only, 1480 is num samples per second
    Irms = Irms * 110; // 110v
   
    Serial.printf("A3 on CH1=%d\n",Irms);
    String val = "val 1 " + String(Irms);
    client.publish("sensorData", val.c_str());
  }
 
  delay(2000);
}

Print this item

  Do I have a faulty LAN chip?
Posted by: philmacu - 05-19-2023, 01:58 PM - Forum: KC868-A8S - Replies (5)

I have tried to get the ETH working on my KC868-A8S. I have tried the following:
Binary that shipped with the board - ETH not working.
LAN8720_UDP.ino using static address 192.168.1.200 - debug says connected but it does NOT appear on LAN
KC868-A8S_Digital_input_Web_Server-ETH.ino -using DHCP settings - returns IP address 0.0.0.0 and the following:

Code:
E (124) lan87xx: lan87xx_pwrctl(409): power up timeout
E (124) lan87xx: lan87xx_init(491): power control failed
E (124) esp_eth: esp_eth_driver_install(215): init phy failed

I have used the following settings 
Code:
#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
The LAN connection is working, but I do not see any LED activity on the KC868-A8S Physical port:
   

Any help would be appreciated.
Phil

Print this item

  Are there any drivers that need to be installed?
Posted by: MonsterJoe - 05-18-2023, 04:52 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (2)

Arduino IDE can't seem to find it.

Is there a quick how to for this board with Arduino? I just need to write the sensor data to MQTT.

Print this item

Wink KC868-A16 PWM LED
Posted by: Danp - 05-18-2023, 01:32 PM - Forum: KC868-A16 - Replies (5)

Hello,
Is there a way to use the KC868-A16 Board to directly control an LED using PWM or are all mosfets only controllable using the PCF8574 I/O Expander? 
Thank you!

Print this item

  Connectors
Posted by: Vulcan - 05-18-2023, 01:55 AM - Forum: KC868-A6 - Replies (3)

I order a number of I2C connectors intending to use them on the 868-A6 board but none of them are the correct size. Can anyone provide the specifications for the female connectors or refer me to a site/s that has the specific connectors, please? I would appreciate a specific part or part number. 

Thanks

Print this item

  Crystal interference DS1307
Posted by: bsarevalo - 05-18-2023, 12:57 AM - Forum: KC868-A6 - Replies (3)

Hello everyone ! especially Hifikat!  We recently connected a long-range antenna to the LoRa - SX1278 module, this cable passed near the RTC module of the KC868-A6 module, on occasions when we put the backup battery in the RTC Socket, our finger when making contact with the battery and being near the crystal, we have noticed that the RTC readings are beginning to fail, so we thought about placing a metal casing to protect this part of the circuit, we also thought about grounding the negative of the module to ground, is it okay to do this? What other recommendations could you give us for this situation? In advance thank you very much for your attention !



Attached Files Thumbnail(s)
   
Print this item

  KC868-E16S - Multiple
Posted by: keithc - 05-17-2023, 02:13 PM - Forum: KC868-E16S/E16P - Replies (7)

Dear Community,

I would like to confirm something please.

Do I need an additional Kincony / ESP enabled server if I have 10 x K868 E16S on the same via ESP Home / Home Assistant local network?

6 x K868 E16S in ground floor DB and 4 x K868 E16S in 2nd floor DB using local LAN to each device.

No wifi switches or devices, all hard wired.  

Note: replacement for circa 2007 VIPA 200 PLC system in a large residential home.

I may also need a separate AI and DO 24v on each floor.

Regards,

Keith Smile

Print this item