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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,494
» Latest member: 247expresspackers
» Forum threads: 2,286
» Forum posts: 11,887

Full Statistics

Online Users
There are currently 33 online users.
» 2 Member(s) | 19 Guest(s)
Bytespider, Google, PetalBot, Yandex, Yeti, bot, admin, BaconRanch

Latest Threads
PWM support?
Forum: KC868-A16
Last Post: admin
3 hours ago
» Replies: 1
» Views: 9
USB ports
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: admin
3 hours ago
» Replies: 1
» Views: 4
Lesson23- How to connect ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 10:11 AM
» Replies: 10
» Views: 7,155
KC868-AG RF - sending rep...
Forum: KC868-A series and Uair Smart Controller
Last Post: PhilW
Yesterday, 07:46 AM
» Replies: 3
» Views: 9
Usar entradas y oled i2c ...
Forum: KC868-A6
Last Post: sistemasyusa
Yesterday, 03:16 AM
» Replies: 4
» Views: 15
a16 as basis for a securi...
Forum: KC868-A16
Last Post: admin
09-18-2024, 11:58 PM
» Replies: 8
» Views: 53
GSM CALL RELAY
Forum: KC868-A2
Last Post: admin
09-18-2024, 11:53 PM
» Replies: 9
» Views: 4,107
KC868-A16S or KC868-A8S
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
09-18-2024, 11:51 PM
» Replies: 3
» Views: 38
KCS firmware
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
09-18-2024, 11:48 PM
» Replies: 10
» Views: 113
[Arduino IDE demo source ...
Forum: KC868-A6
Last Post: sistemasyusa
09-18-2024, 09:03 AM
» Replies: 8
» Views: 4,564

  KCS firmware on kincony chip of this server not working
Posted by: homeassistant144 - 12-10-2023, 12:07 PM - Forum: KC868-Server Raspberry Pi4 local server - Replies (10)

I am currently using this KC868 server board with CM4 model with homeAssistant installed on it and for the 16 digital input and output as well as the binary sensors of this KC868 board I was using mqtt inorder to communicate with homeassistant. everything worked well. I was controlling several lights as well as using the digital inputs for door window sensors. But now all of a sudden the kcs firmware seems to be not responding. HomeAssistant is still working but the rest part of the board is not working. 
This board shows IP too but when i ping to IP in browser in order to login, page doesn't load. keeps buffering.

Print this item

Question Struggling to get a KC868-E16S working with ESPHome/Home Assistant
Posted by: PeZu - 12-09-2023, 10:29 PM - Forum: KC868-E16S/E16P - Replies (1)

Hello, I bought a KC868-E16S and would appreciate some help to get this device working in Home Assistant.
This is my first experience with ESPHome.

Just by connecting over Ethernet, the device didn't get an IP address by DHCP.
I searched for information/documentation but could find anything.
Finally by connecting with USB I did write a file with and got WiFi working but not the LAN interface.
I found a yaml file (KC868-E16S/E16P demo configure for ESPhome) for this device, uncommented the manual IP section, assigned a fixed IP and was able to upload that file to the device.
Still I could not get the LAN interface working, no LEDS, no ping reply.

Can you please tell me how to get this device working or point me to the documentation for it.

Thank you.

Print this item

  how to calibrate AC voltage for M16V2
Posted by: admin - 12-09-2023, 01:25 PM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

1. run arduino calibration program code to find your "Sensitivity" value for ESPHome M16v2 component. 
here is arduino code: https://www.kincony.com/forum/showthread.php?tid=3089
before use this arduino code, you need install "ZMPT101B" arduino library firstly.
then before run this code, use multi meter test your L and N voltage , then only "Change this based on actual voltage" in code:
   
   
when running this code, serial port will print  "Sensitivity" value at the end.
   
then change  "Sensitivity" value in home assistant "/homeassistant/esphome/zmpt101b/zmpt101b_custom_sensor.h"
   
now it's completed.
   

Print this item

  Es32 8 or 16 Mo
Posted by: Vorms - 12-08-2023, 11:50 PM - Forum: KC868-A8 - Replies (18)

Hello,
We want to developp an plc with a embedded web server.
The plc will be usable with a very short lesson.
For doing that, we need a 8 or 16 Mo of memory. 

Do you know if it is possible to buy card with an adapted cpu? Is that possible to change the existing cpu?


Many thanks for your response. 
Best regards! 
Thierry

Print this item

Star New home with KinCony products
Posted by: sebagarayco - 12-08-2023, 03:35 PM - Forum: DIY Project - Replies (30)

Hi!  Newbie and KinCony products enthusiast here..

I'm about to build a new house and would like to use KinCony products. What I would like:
- Control devices via Ethernet / Wifi. I would like to use cable as much as possible.
- Home Assistante to control from Phone
- Control devices using Siri (preferred), Alexa or Google
- Control devices from Internet (WAN)
- Have a plan B in case KC868 server goes down. e.g:  if Raspberry hangs I would still like to power on/off lights via traditional switch
- Control Temparature sensors
- Control TV
- Control Garden Irrigation
- Doors sensors
- Dimming lights (not all, just in base floor)

Size:
- Two floor house
- 70-80 bulbs. some paired together per room. Not sure how many Wall Switches.
- 2 TVs
- 3 doors sensors (opened/closed)
- 2 temperature sensors 
- 5 courtain motors

Question/doubts:
- COMPONENTS: Would https://www.alibaba.com/product-detail/S...67057.html satisfy all the requirements?  Am I missing components??
- CABLING: Not sure how to proceed with cabling and best practices. Should I cable both floors to Distribution box?  Should I divide electric cabling from ethernet/RS485 in different pipes?  Would be good to concentrate cabling in second floor and then connect to first floor (Distribution Box)
- SWITCHES: If using smart wall switches, how can I still use traditional switching in case KC868 goes down?
- GARDEN IRRIGATION: How to control this?

I would really appreciate help.
Thank you

Print this item

  best board with 8 inputs
Posted by: ndev - 12-08-2023, 01:36 PM - Forum: Suggestions and feedback on KinCony's products - Replies (9)

Hi,

I looked into your website and I like all your board.
Great !

You have so many board, it is difficult to find the correct one.
I have a project for which I need at least 4 boards with 8 inputs and some relays (no more than 6 for each).
I will use esphome with Ethernet.


What could be the best board for me ?
KC868-A8
KC868-A8S
KC868-A8S V2
....

Thanks,

Print this item

  Board for window contact sensors
Posted by: threadstone - 12-07-2023, 08:53 PM - Forum: Development - Replies (15)

Dear Kincony-Team,
 
I'm currently looking for a suitable circuit board to realize a new project. At my search I found your website and some boards that could be the right one (for example the KC868-AI) but I’m not sure which one is the right one. Can you possibly tell me if the KC868-AI is the right one respectively which of your boards would be suitable?
 
I have 13 windows in my house and every window has an sensor for the status (open, closed and tilted). I want to integrate these sensors in my already existing Home Assistant installation. I think the integration via ESP could be one solution.
Here the information about the sensors:
 

  • 7-wire cable
    • 2 wires for the sabotage loop / sabotage line
    • 2 wires for the signaling contact (generally open/closed)
    • 3 wires for the open/tilted state (common "ground")
 
According to the instructions, there are also the following technical data:
  • General:
    • Switch voltage max. 48V DC
    • Contact resistance max. 150mOhm
  • Surveillance:
    • Switching current max. 0.5A
    • Transport current max. 1.0A
    • Switch performance max. 10W pure ohmic load
  • or for the tilt status query:
    • Switching current max. 0.25A
    • Transport current max. 1.2A
    • Switch performance max. 3W pure ohmic load
 
Attached you can find an extrude of the installation instructions.
 
It would be nice if you could tell me if the KC868-AI is suitable. If it is not, which of your boards would be suitable? Is there eventually already a program / yaml for ESP or Home Assistant is existing?
 
Thank you in advance.



Attached Files Thumbnail(s)
   
Print this item

  TDS Sensor
Posted by: suliman0007 - 12-07-2023, 03:42 PM - Forum: KC868-A8 - Replies (3)

Hello
I Want conncetd TDS Sensor 
Model SEN0244   to KC868-A8
I tride this  example :
#define TdsSensorPin 34
#define VREF 3.3              // analog reference voltage(Volt) of the ADC
#define SCOUNT  30            // sum of sample point

int analogBuffer[SCOUNT];    // store the analog value in the array, read from ADC
int analogBufferTemp[SCOUNT];
int analogBufferIndex = 0;
int copyIndex = 0;

float averageVoltage = 0;
float tdsValue = 0;
float temperature = 23;      // current temperature for compensation

// median filtering algorithm
int getMedianNum(int bArray[], int iFilterLen){
  int bTab[iFilterLen];
  for (byte i = 0; i<iFilterLen; i++)
  bTab[i] = bArray[i];
  int i, j, bTemp;
  for (j = 0; j < iFilterLen - 1; j++) {
    for (i = 0; i < iFilterLen - j - 1; i++) {
      if (bTab[i] > bTab[i + 1]) {
        bTemp = bTab[i];
        bTab[i] = bTab[i + 1];
        bTab[i + 1] = bTemp;
      }
    }
  }
  if ((iFilterLen & 1) > 0){
    bTemp = bTab[(iFilterLen - 1) / 2];
  }
  else {
    bTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2;
  }
  return bTemp;
}

void setup(){
  Serial.begin(115200);
  pinMode(TdsSensorPin,INPUT);
}

void loop(){
  static unsigned long analogSampleTimepoint = millis();
  if(millis()-analogSampleTimepoint > 40U){    //every 40 milliseconds,read the analog value from the ADC
    analogSampleTimepoint = millis();
    analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin);    //read the analog value and store into the buffer
    analogBufferIndex++;
    if(analogBufferIndex == SCOUNT){
      analogBufferIndex = 0;
    }
  } 
 
  static unsigned long printTimepoint = millis();
  if(millis()-printTimepoint > 800U){
    printTimepoint = millis();
    for(copyIndex=0; copyIndex<SCOUNT; copyIndex++){
      analogBufferTemp[copyIndex] = analogBuffer[copyIndex];
     
      // read the analog value more stable by the median filtering algorithm, and convert to voltage value
      averageVoltage = getMedianNum(analogBufferTemp,SCOUNT) * (float)VREF / 1024.0;
     
      //temperature compensation formula: fFinalResult(25^C) = fFinalResult(current)/(1.0+0.02*(fTP-25.0));
      float compensationCoefficient = 1.0+0.02*(temperature-25.0);
      //temperature compensation
      float compensationVoltage=averageVoltage/compensationCoefficient;
     
      //convert voltage value to tds value
      tdsValue=(133.42*compensationVoltage*compensationVoltage*compensationVoltage - 255.86*compensationVoltage*compensationVoltage + 857.39*compensationVoltage)*0.5;
     
      //Serial.print("voltage:");
      //Serial.print(averageVoltage,2);
      //Serial.print("V  ");
      Serial.print("TDS Value:");
      Serial.print(tdsValue,0);
      Serial.println("ppm");
    }
  }
}


the result ppm 0 

I Need Help

Print this item

  A24 arduino demo source code-06- Ethernet LAN8720 by UDP
Posted by: KinCony Support - 12-07-2023, 02:39 AM - Forum: KinCony A24 - No Replies

Code:
#include <ETH.h>
#include <WiFiUdp.h>

#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

// Set it based on the IP address of the router
IPAddress local_ip(192, 168, 1, 200);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);

void setup()
{
  Serial.begin(115200);
  Serial.println();
  
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH

  // write confir for static IP, gateway,subnet,dns1,dns2
  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());

  Udp.begin(localUdpPort); //begin UDP listener
}

void loop()
{
  int packetSize = Udp.parsePacket(); //get package size
  if (packetSize)                     //if have received data
  {
    char buf[packetSize];
    Udp.read(buf, packetSize); //read current data

    Serial.println();
    Serial.print("Received: ");
    Serial.println(buf);
    Serial.print("From IP: ");
    Serial.println(Udp.remoteIP());
    Serial.print("From Port: ");
    Serial.println(Udp.remotePort());

    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data
    Udp.print("Received: ");   
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer
    Udp.endPacket();            //send data
  }
}
   

Print this item

  A24 arduino demo source code-05-read DS18B20 temperature sensor
Posted by: KinCony Support - 12-07-2023, 02:32 AM - Forum: KinCony A24 - No Replies

Code:
#include <DS18B20.h>
DS18B20 ds1(15);  //channel-1-DS18b20


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

void loop()
{
  Serial.print("Temperature1:");
  Serial.print(ds1.getTempC());
  Serial.print(" C /");
  delay(500);  
}
       

Print this item