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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,501
» Latest member: seoentire
» Forum threads: 2,287
» Forum posts: 11,891

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 32 Guest(s)
Bytespider, Crawl, Facebook, Google, PetalBot, Yandex, bot, facebookexternalhit

Latest Threads
KC868 A32 Firmware 2.2.4 ...
Forum: KC868-A32/A32 Pro
Last Post: iozzi_giorgio
1 hour ago
» Replies: 2
» Views: 22
PWM support?
Forum: KC868-A16
Last Post: luis15pt
3 hours ago
» Replies: 2
» Views: 18
[arduino code examples fo...
Forum: KC868-A32/A32 Pro
Last Post: admin
6 hours ago
» Replies: 0
» Views: 3
USB ports
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: BaconRanch
8 hours ago
» Replies: 2
» Views: 6
Lesson23- How to connect ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 10:11 AM
» Replies: 10
» Views: 7,156
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: 17
a16 as basis for a securi...
Forum: KC868-A16
Last Post: admin
09-18-2024, 11:58 PM
» Replies: 8
» Views: 54
GSM CALL RELAY
Forum: KC868-A2
Last Post: admin
09-18-2024, 11:53 PM
» Replies: 9
» Views: 4,108
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

  WindowsError(5, 'Access Denied.')
Posted by: dampire - 05-24-2023, 02:45 PM - Forum: KC868-A8 - Replies (1)

HI,
I can't run any code from arduino.

I run the ide with arduine on windows 10.
I installed the drivers that I read in a post for the usb port.

The error:

esptool.py v3.0-dev
Serial port COM3
Traceback (most recent call last):
  File "esptool.py", line 3682, in <module>
  File "esptool.py", line 3675, in _main
  File "esptool.py", line 3329, in main
  File "esptool.py", line 263, in __init__
  File "site-packages\serial\__init__.py", line 88, in serial_for_url
  File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM3': WindowsError(5, 'Access Denied.')

Print this item

  Free sample KC868-A4 ESP32 board
Posted by: vitorxlima - 05-24-2023, 12:59 PM - Forum: Apply for free sample product - No Replies

Dear Kincony,

I Would like to try to aquire one sample for of KC868-A4 to learning and testing for home automation (type of use A).

Best Regards.

Print this item

Brick Free gpio in KC868-E16S
Posted by: Sewek0 - 05-23-2023, 11:38 AM - Forum: KC868-E16S/E16P - Replies (3)


Is anyone try to use free gpio on this board?
I mean solder cables to not used GPIO (6-11)??
Marked red in diagram. 17-22

   

Print this item

  Schematic of Power Distribution Box Made by KC868-Server
Posted by: admin - 05-23-2023, 07:25 AM - Forum: Schematic and diagram - 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: 171)
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 (7)

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