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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 3,083
» Latest member: diegover
» Forum threads: 1,829
» Forum posts: 9,615

Full Statistics

Online Users
There are currently 62 online users.
» 0 Member(s) | 41 Guest(s)
AhrefsBot, Facebook, Google, Semrush, Yandex, bot, facebookexternalhit, omgili

Latest Threads
Issue with KC868-AIO-EXTA...
Forum: KC868-AIO
Last Post: admin
5 hours ago
» Replies: 4
» Views: 3
Develop on my own questio...
Forum: KC868-AG/AG Pro
Last Post: admin
5 hours ago
» Replies: 1
» Views: 1
kc868-a8 V1.5 flashing
Forum: "KCS" firmware system
Last Post: admin
5 hours ago
» Replies: 12
» Views: 9
Flux Sensor
Forum: News
Last Post: admin
5 hours ago
» Replies: 1
» Views: 1
Screws to lock the board ...
Forum: KC868-A16
Last Post: admin
Yesterday, 10:34 AM
» Replies: 1
» Views: 1
KC868-AP KCS 2 MQTT
Forum: KC868-AP / ADR
Last Post: admin
Yesterday, 08:34 AM
» Replies: 3
» Views: 4
Kc868-server-modbus
Forum: KC868-Server Raspberry Pi4 local server
Last Post: admin
04-24-2024, 10:13 PM
» Replies: 4
» Views: 4
KC868-HAv2 esphome issue
Forum: Development
Last Post: admin
04-24-2024, 10:12 PM
» Replies: 24
» Views: 844
H32L issue
Forum: KC868-HxB series Smart Controller
Last Post: Saif Kitany
04-24-2024, 07:12 AM
» Replies: 10
» Views: 8
KC868-A16 esp32 board (A1...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
04-23-2024, 11:47 PM
» Replies: 23
» Views: 2,873

  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 (1)

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

  KC868-H32B V5.04 firmware support Tuya app
Posted by: admin - 05-17-2023, 01:19 AM - Forum: News - No Replies

improvement:
[Image: attachment.php?aid=2412]   
1. support use Tuya app for remote control OUTPUT and monitor INPUT state.
2. support TCP Server, TCP Client, UDP, MQTT, Tuya different protocol at the same time by ethernet.
such as you can use Home assistant (by mqtt) in local LAN network and Tuya app for remote monitor by internet.
3. add "MQTT send all" option. if "enabled" , MQTT state message will feedback all channel's information. if "disabled" , MQTT state message will feedback single channel's information.
4. support control by KC868-AK keyboard.
firmware download:

.zip   H32B_V504_230516.zip (Size: 134.3 KB / Downloads: 169)
   
how to order tuya licence:

here is Tuya licence for "H32BS,H32B,COLB" firmware , it can let your board remote control by internet.

1:telll us your email, we will send the licence to your email

2:tell us your area(choose from :China/Westen US/Eastern US/Central Europe/Western Europe/India)

IMPORTANT: check for your tuya account, which REGION you have registered.

Check in your tuya or smart life mobile phone app: Me -- Settings -- Account and Security -- Region

according to the "Region" visit here (https://developer.tuya.com/en/docs/iot/o...i0ku9l07qb) to check your server location.

[Image: attachment.php?aid=1928]    [Image: attachment.php?aid=1929]    [Image: attachment.php?aid=1930]   

if you really don't know how to check, just send us your tuya or smart life app account name, we will check for you.


3:tell us you model(choose from Kincony A4/A6/A8/A8S/A16/A32/A64/A128/E16S/AI/AK/H32BS/H32B/COLB)

4: The license has no time limit, and the tuya platform provides corresponding services and guarantees

5:Once sold, it cannot be returned or refund

6:One licence only for one product


Tuya internet cloud server locate in 6 positon in the world:
Location-A: China
Location-B: Western US
Location-C: Eastern US
Location-D: Central Europe
Location-E: Western Europe
Location-F: India

please tell us which server location your app account used. such as if your account is "Western Europe" ,tell us "Location-E: Western Europe".

if you want to order, please contact with us, you can pay by PayPal or Bank account.

Print this item

  A4S DIMMER
Posted by: mark2023 - 05-16-2023, 10:35 PM - Forum: KC868-HxB series Smart Controller - Replies (17)

I have connected up a dimmable led light bulb with a solid state relay from analogue 1 on the A4Sbut i seem to be getting the following problems.

1: when the relays are off from the color LED-1 in Home assistant the bulb is still on but very dim. when i switch it on it goes full brightness but when i switch off the bulb does not go out it goes back to very dim.
2: i set up a automation to use a momentry input switch to increase brightness and another input to dicrease brightness, again the bulb is still on when off but now i have to keep pressing the button several times to increase brightness instead of just holding the button. I also notice that the bulb starts to flicker at certain increases. can you explain whats going wrong please.
3: i have attached the photos to make sure it is all wired correctly.



Attached Files Thumbnail(s)
           
Print this item