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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,754
» Latest member: onapace
» Forum threads: 3,831
» Forum posts: 19,610

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 23 Guest(s)
AhrefsBot, Amazonbot, Applebot, Bing, Google, PetalBot, Sogou web, Yandex, bot

Latest Threads
Monitor 1 shows power=0 w...
Forum: N20
Last Post: admin
42 minutes ago
» Replies: 1
» Views: 8
"KCS" v3.23.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
43 minutes ago
» Replies: 2
» Views: 141
Help choosing equipment f...
Forum: DIY Project
Last Post: admin
44 minutes ago
» Replies: 20
» Views: 496
kWh resolution
Forum: N30
Last Post: Vega
8 hours ago
» Replies: 23
» Views: 624
KinCony DM32 32CH ESP32 D...
Forum: News
Last Post: admin
Today, 10:31 AM
» Replies: 0
» Views: 5
Adding a debounce capabil...
Forum: KC868-A16v3
Last Post: admin
Today, 10:11 AM
» Replies: 3
» Views: 13
KinCony DM4 4CH ESP32 Dim...
Forum: News
Last Post: admin
Today, 04:21 AM
» Replies: 0
» Views: 8
KinCony Z1 Problem
Forum: KC868-AG / AG Pro / AG8 / Z1
Last Post: admin
Today, 01:04 AM
» Replies: 12
» Views: 486
F8 on device physical swi...
Forum: F8
Last Post: admin
Today, 12:53 AM
» Replies: 1
» Views: 9
G1 cannot flash latest fi...
Forum: G1
Last Post: admin
03-13-2026, 11:48 PM
» Replies: 3
» Views: 33

Wink Lesson25 - how to use Apple HomeKit by home assistant
Posted by: admin - 05-23-2022, 03:07 AM - Forum: Home automation training courses - No Replies


1. home assistant -- Configration -- Device & Services +ADD INTEGRATION -- HomeKit

2. find the QRcode of HomeKit "HASS Bridge" in Notifications

3. open "HOME" app by iOS device (iPhone/iPad) scan this QRcode to add devices.

Print this item

  Disappointed with this server...
Posted by: Amaral989 - 05-23-2022, 01:54 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (5)

The ESP 3.3v is 5v now. 
i can not get ADC to read voltages . This unit just doesn't work like its described.  Angry

Print this item

  ADC pins
Posted by: Amaral989 - 05-22-2022, 03:54 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (4)

Hello, 
This is all new to me and trying to learn as i go along. 
I have a resistance sensor that reads water tank levels. Full level it reads 33ohms, empty level reads 240ohms. 
I'm trying to understand how to hook this sensor up. I'm assuming it needs to be on ADC 0. 
If it does , i dont see anything occuring . 

Thank you for you help. 
john

Print this item

Wink 【Sensor series program】-#02-Arduino code of KC868-A6 and Laser Sensor
Posted by: KinCony Support - 05-20-2022, 09:03 AM - Forum: KC868-A6 - No Replies

【Sensor series program】-#02-Arduino code of KC868-A6 and Laser Sensor

Code:
#include <U8g2lib.h>
#include <Wire.h>
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0,  15, 4, U8X8_PIN_NONE);//SCL IO15  SDA  IO4


void page1() {
  u8g2.setFont(u8g2_font_timR14_tf);// Font 18
  u8g2.setFontPosTop();
  u8g2.setCursor(5,20);
  u8g2.print("Sending Lasers ");
}
void page2() {
  u8g2.setFont(u8g2_font_timR14_tf);// Font 18
  u8g2.setFontPosTop();
  u8g2.setCursor(5,20);
  u8g2.print("Not Sending");
}

void setup() {
  pinMode(0,INPUT);
  pinMode(32,OUTPUT);
  u8g2.setI2CAddress(0x3C*2);
  u8g2.begin();
  u8g2.enableUTF8Print();
 
}
void loop() {
  if(digitalRead(0)==LOW)
  {
   digitalWrite(32,HIGH);
   u8g2.firstPage();
    do
     {
    page1();
     }while(u8g2.nextPage());
  }
  else
     {
      digitalWrite(32,LOW);
         u8g2.firstPage();
    do
     {
       page2();
     }while(u8g2.nextPage());
     }
 
}
       

Print this item

Wink 【Sensor series program】-#01-Arduino code of KC868-A6 and Hall Sensor
Posted by: KinCony Support - 05-20-2022, 03:11 AM - Forum: KC868-A6 - No Replies

【Sensor series program】-#01-Arduino code of KC868-A6 and Hall Sensor

Code:
/*【Sensor series program】Arduino code of KC868-A6 and Hall Sensor*/
/*When the Hall sensor is triggered, Turn on relay 1; Otherwise turn off relay1*/
#include "Wire.h"
#include"PCF8574.h"

PCF8574 pcf8574_RE(0x24,4,15);
int rawValue;

void setup(){

  pinMode(32,INPUT);
  Serial.begin(115200);
  pcf8574_RE.pinMode(P0,OUTPUT);
  pcf8574_RE.pinMode(P1,OUTPUT);
  pcf8574_RE.pinMode(P2,OUTPUT);
  pcf8574_RE.pinMode(P3,OUTPUT);
  pcf8574_RE.pinMode(P4,OUTPUT);
  pcf8574_RE.pinMode(P5,OUTPUT);
  pcf8574_RE.begin();
  for(int i=0;i<6;i++)
  {
   pcf8574_RE.digitalWrite(i,HIGH);
  }
}

void loop(){
  rawValue=analogRead(32);
  Serial.println(rawValue);
  if(rawValue==0)
  {
     
      pcf8574_RE.digitalWrite(P0,LOW);
  }
  else {
      pcf8574_RE.digitalWrite(P0,HIGH);
  }
}
 
   

Print this item

  KC868 H32B in node red and home assistant
Posted by: ahmedwizza - 05-19-2022, 11:52 AM - Forum: KC868-HxB series Smart Controller - Replies (1)

Hello Engineer 

I faced some problem.when I active Alexa bridge and made switch .then connect Alexa node to controller by TCP out 
  all okay .... the sound control by Alexa is okay ...the switch appeared in Alexa app in my phone ...but I cant find the switch in Alexa entities in home assistant to control

as attached photos



Attached Files Thumbnail(s)
           
Print this item

Rainbow How to use tasmota for KC868-A32 via PCF8574 IIC extend GPIO
Posted by: KinCony Support - 05-18-2022, 02:50 AM - Forum: KC868-A32/A32 Pro - Replies (10)

How to use tasmota for KC868-A32 via PCF8574 IIC extend GPIO

   
The Tamplate code is:

{"NAME":"KC868-A32","GPIO":[32,0,1120,0,641,609,0,0,0,608,1,640,0,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,1],"FLAG":0,"BASE":1}
   

Set all Device port to  "OUTPUT"
   

   



Attached Files
.zip   ESP-Flasher-Windows-x64.zip (Size: 16.07 MB / Downloads: 774)
.zip   firmware-en-a32.zip (Size: 764.89 KB / Downloads: 787)
Print this item

  Lesson24 - home assistant remote access by FREE DuckDNS
Posted by: admin - 05-17-2022, 04:27 AM - Forum: Home automation training courses - Replies (5)


https://www.duckdns.org/

Print this item

Thumbs Up [Arduino IDE demo source code for KC868-E16S]--#06-KC868-E16S-RS485
Posted by: KinCony Support - 05-17-2022, 01:29 AM - Forum: KC868-E16S/E16P - No Replies

[Arduino IDE demo source code for KC868-E16S]--#06-KC868-E16S-RS485
   

Code:
/*WWW.KINCONY.COM */
/*KC868-E16S CODE OF RS485*/
void setup(){
  Serial2.begin(9600,SERIAL_8N1,13,32);// IO13 is 485RX  IO32 is 485TX
}

void loop() {
Serial2.println("abcd123456789551");// send abcd123456789551
}



Attached Files
.zip   KC868-E16S-RS485.zip (Size: 469.31 KB / Downloads: 705)
Print this item

Thumbs Up [Arduino IDE demo source code for KC868-E16S]--#05-KC868-E16S-LAN8720_UDP
Posted by: KinCony Support - 05-17-2022, 01:28 AM - Forum: KC868-E16S/E16P - No Replies

[Arduino IDE demo source code for KC868-E16S]--#05-KC868-E16S-LAN8720_UDP
   

Code:
/*www.kincony.com */
/* KC868-E16S CODE OF LAN8720-UDP */
#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
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
  }
}
   



Attached Files
.zip   KC868-E16S-LAN8720_UDP.zip (Size: 1.11 KB / Downloads: 653)
Print this item