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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,714
» Latest member: digitalsetgo
» Forum threads: 3,821
» Forum posts: 19,548

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 31 Guest(s)
AhrefsBot, Amazonbot, Bing, Bytespider, Crawl, PetalBot, bot, panscient

Latest Threads
KC868-HAv2 work with F24 ...
Forum: KC868-HA /HA v2
Last Post: swisstmack25
2 hours ago
» Replies: 10
» Views: 1,181
sample code to receive ht...
Forum: F16
Last Post: telinda
2 hours ago
» Replies: 15
» Views: 622
N10 port modbus
Forum: N10
Last Post: admin
7 hours ago
» Replies: 11
» Views: 102
N60/N30/N20/N10 PC softwa...
Forum: N60
Last Post: admin
7 hours ago
» Replies: 3
» Views: 600
N60 N30 N20 N10 ARM CPU f...
Forum: N60
Last Post: admin
7 hours ago
» Replies: 0
» Views: 7
KinCony ALR ESP32 I/O pin...
Forum: KinCony ALR
Last Post: admin
Today, 01:29 AM
» Replies: 6
» Views: 1,536
KC868-A6v3 ESP32-S3 6 cha...
Forum: KC868-A6
Last Post: admin
Today, 01:27 AM
» Replies: 1
» Views: 24
RF fo KC868-A6
Forum: KC868-A6
Last Post: admin
Today, 01:27 AM
» Replies: 5
» Views: 807
Device change after damag...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 09:35 PM
» Replies: 1
» Views: 12
KinCony B32M Smart Contro...
Forum: News
Last Post: admin
Yesterday, 01:44 AM
» Replies: 0
» Views: 21

  Schematic of Power Distribution Box Made by KC868-Server
Posted by: admin - 05-23-2023, 07:25 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

   

Print this item

  5V DC Input
Posted by: italo - 05-22-2023, 01:51 PM - Forum: KC868-A4S - Replies (3)

hi, first of all thanks for the great product. it fits 100% to our requirements.

we use the board togehter with home assistant and ESPhome V 2023.5.2.

We like to messure Temperature via NTC sensors. We use this settings.

10K NTC
9.89K resistor
5V DC Power Supply
Connected on INA1

We get a wrong temperature reading. If we connect the 5V DC direkt to the  INA1 input we get max. 3.03V on the GPIO36. As we see you use a LMxxx bevor the ESP32. Is the conversion of the 5V linear
to the 3.3V input of the ESP32? Do you have any hints? as the  reference_voltage we use 3V because of the limitation of the ESP32.

BR
Giuseppe

ESPHome Code: 

sensor:
  -  platform:  ntc
     sensor:  resistance_sensor
     name:  NTC Temperature
     id: INA1_TEMP
     calibration:
      b_constant: 3950
      reference_temperature: 25°C
      reference_resistance: 10kOhm
   
  # Example source sensors:
  - platform: resistance
    id: resistance_sensor
    sensor: INA1
    configuration: DOWNSTREAM
    resistor: 9.89kOhm
    reference_voltage: 3V
    name: Resistance Sensor


  - platform: adc
    id: INA1
    pin: GPIO36
    attenuation: auto
    update_interval: 5s
    name: "INA1"

Print this item

Big Grin KC868-COLB Mini Logic Controller
Posted by: ahmedwizza - 05-22-2023, 10:07 AM - Forum: News - Replies (7)

hello kincony

I have some problem when I add analog in my yamal file 

--give me wrong when I make restart

--and all mqtt stop 

---when i remove all thing good


this my yamal file in attach



Attached Files
.txt   my yamal file.txt (Size: 56.11 KB / Downloads: 492)
Print this item

  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