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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,982
» Latest member: kamermcw
» Forum threads: 2,429
» Forum posts: 12,559

Full Statistics

Online Users
There are currently 43 online users.
» 1 Member(s) | 29 Guest(s)
AhrefsBot, Amazonbot, Crawl, Google, PetalBot, bot, owler, ironbill

Latest Threads
Submit your suggestions a...
Forum: Suggestions and feedback on KinCony's products
Last Post: kamermcw
6 hours ago
» Replies: 7
» Views: 3,463
Help whit update Cold CPU...
Forum: KC868-HxB series Smart Controller
Last Post: itzek
9 hours ago
» Replies: 0
» Views: 6
KC868-AIO connecting to E...
Forum: KC868-AIO
Last Post: slava
11 hours ago
» Replies: 0
» Views: 1
DI8
Forum: Development
Last Post: Vaughan2024
Yesterday, 10:24 PM
» Replies: 0
» Views: 16
Clarification on CT Clamp...
Forum: KC868-M16 / M1 / MB / M30
Last Post: ironbill
Yesterday, 09:27 PM
» Replies: 0
» Views: 14
AS ESPHome yaml for home ...
Forum: KinCony AS
Last Post: admin
Yesterday, 12:29 PM
» Replies: 4
» Views: 281
KCS firmware - MQTT LWT?
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 12:02 PM
» Replies: 34
» Views: 3,317
H32W Firmware
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 10:32 AM
» Replies: 5
» Views: 1,609
"KCS" v3.0.2 firmware for...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 12:00 AM
» Replies: 0
» Views: 44
What makes the ESP32 chip...
Forum: KC868-A series and Uair Smart Controller
Last Post: alice_amira
11-08-2024, 04:38 PM
» Replies: 0
» Views: 4

  Firmware problem KC868-E16S
Posted by: Fran - 01-05-2023, 09:22 PM - Forum: Development - Replies (5)

Hi, I'm new to the forum, I bought a KC868-E16S motherboard. when upgrading the firmware as in the example "KC868-E16S_Web_Server-ETH", the network card does not work and cannot find the card. I need help for this problem.
Thank you
fleira@gessco.es

Print this item

  KC868-H32B Pro + KC868-E16v2 + KC868-AK
Posted by: admin - 01-04-2023, 08:06 AM - Forum: Schematic and diagram - Replies (4)

Here is KC868-H32B Pro smart controller work with KC868-E16v2 and KC868-AK for manual control switch panel.
   

Print this item

  KC868-H32B Pro work with KC868-HA via traditional switch
Posted by: admin - 01-04-2023, 08:01 AM - Forum: Schematic and diagram - No Replies

a. KC868-H32B Pro connect with KC868-HA RS485 button adapter via "Momentary" switch panel:
   

b. KC868-H32B Pro connect with KC868-HA RS485 button adapter via "Latch" switch panel:
   

Print this item

  KC868-E8T with manual control switch panel and energy meter monitor
Posted by: admin - 01-04-2023, 07:57 AM - Forum: Schematic and diagram - Replies (6)

KC868-E8T manual control relay by wall switch panel and use Tuya app remote control relay and remote monitor energy meter.
   

Print this item

  KC868-AP dimmer work with RGBW LED strip
Posted by: admin - 01-04-2023, 07:53 AM - Forum: Schematic and diagram - Replies (21)

here is KC868-AP dimmer controller work with DC12V/24V LED strip and wall switch panel.
   

Print this item

  KC868-H32B Pro + AC contact + KC868-AK
Posted by: admin - 01-04-2023, 07:50 AM - Forum: Schematic and diagram - No Replies

Here is KC868-H32B Pro smart controller work with 32 channel AC contact and KC868-AK for manual control switch panel.
   

Print this item

  Tasmota A6 Templates/Mapping
Posted by: Vulcan - 01-03-2023, 09:58 PM - Forum: KC868-A6 - Replies (13)

Not sure how to ask this question but.......

I am working with Tasmota for the A6 and trying to understand how map the module parameters (GPIO1 to GPIO39) to the terminals of the 868-A6. I have not been able to find any documentation that describe the A6 functionally and which board inputs/outputs are mapped to the configuration table which is mapped to the ESP32 processor and determine which board inputs can be used for which sensors. IS THERE A DOCUMENT THAT EXPLAINS HOW THE TEMPLATE MAPS TO THE BOARD AND THE ESP32? E AND WHICH INPUTS/OUTPUS WORK WITH DIFFERENT TYPES OF SENSORS? 
HOW DO WE DECIDE WHICH "GPIO" NUMBERS TO USE FOR SPECIFIC PORTS AND WHAT THEY SUPPORT?
THE ESP32 SCHEMATIC DOES INDICATED SUPPORTED PROTOCOLS BUT HOW DOES THAT TRANSLATE TO THE GPIO'S IN THE TEMPLATE AND ON THE BOARD? 

I understand I2C and assume the display and external connector are wired to GPIO4 and GPIO15 and there are no other access points to that bus. Is this correct?


 I understand the PCF8574 expander/multiplexer and the configuration with the 6 relays and the 6 DI ports that can be configured as INPUT/OUTPUT and through rules you can map inputs to drive the relays, IS THIS CORRECT?

SPECIFIC SENSOR QUESTION:
I need to us SEVERAL DHT11 temperature sensors , which GPIO's support that sensor?  Its a digital data stream.

I assumed IO-1 or IO-2 on the board, is that correct? If so, should the KC868-A6 module parameter template be set to GPI01 and GPIO2? 
On this template there is a "TX GPIO1" and a "IO GPIO2" that can be mapped to many different devices.  Yet the input/outputs indicated for the A6 is "IO-1" and "IO-2". WHAT DOES THE "TX" AND "IO" DESIGNATIONS MEAN? IS "TX" MEANT TO BE AN OUTPUT IO OR ARE BOTH BI-DIRECTIONAL?

I different bus interface such as LoRa, RS22, Relays, etc. are clearly understood.

Are there 868-A6 specific videos and tasmota templates available? I have visited other forums and always come across the A4 and A8 but seldom find anything on the A6.

Print this item

  [Arduino source code for KC868-AP]-05 -PWM_Output
Posted by: KinCony Support - 01-03-2023, 01:48 AM - Forum: KC868-AP / ADR - No Replies

 [Arduino source code for KC868-AP]-05 -PWM_Output

Code:
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#define SDA  4
#define SCL  16
// called this way, it uses the default address 0x40
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40);
int brightness = 0;   
int fadeAmount = 64;   
void setup() {
  Serial.begin(9600);
  Serial.println("16 channel PWM test!");
  Wire.begin(SDA,SCL,100000);
  pwm.begin();
  pwm.setOscillatorFrequency(27000000);
 
  pwm.setPWMFreq(1000);  // 1600 This is the maximum PWM frequency

  // if you want to really speed stuff up, you can go into 'fast 400khz I2C' mode
  // some i2c devices dont like this so much so if you're sharing the bus, watch
  // out for this!
  Wire.setClock(400000);
}

void loop() {
  // Drive each PWM in a 'wave'

   for (uint8_t pwmnum=0; pwmnum < 16; pwmnum++) {
      pwm.setPWM(pwmnum, 0, brightness );
    }
    brightness = brightness + fadeAmount;
   if (brightness == 0 || brightness == 4096) {
    fadeAmount = -fadeAmount ;
  }
  Serial.println(brightness);             
   delay(20);
   
 
   

 
}



Attached Files
.zip   KC868-AP-PWM.zip (Size: 1.05 KB / Downloads: 189)
Print this item

  [Arduino source code for KC868-AP]-04 _digital_input
Posted by: KinCony Support - 01-03-2023, 01:43 AM - Forum: KC868-AP / ADR - No Replies

 [Arduino source code for KC868-AP]-04 _digital_input

Code:
#include "Arduino.h"
#include "PCF8574.h"
#define AP_8574_SDA 4
#define AP_8574_SCL 16

// Set i2c address
PCF8574 pcf8574_1(0x22,AP_8574_SDA,AP_8574_SCL);
PCF8574 pcf8574_2(0x21,AP_8574_SDA,AP_8574_SCL);

unsigned long timeElapsed;
void setup()
{
Serial.begin(115200);
delay(1000);
pinMode(34, INPUT);// input 17
pinMode(35, INPUT);// input 18
pcf8574_1.pinMode(P0, INPUT);
pcf8574_1.pinMode(P1, INPUT);
pcf8574_1.pinMode(P2, INPUT);
pcf8574_1.pinMode(P3, INPUT);
pcf8574_1.pinMode(P4, INPUT);
pcf8574_1.pinMode(P5, INPUT);
pcf8574_1.pinMode(P6, INPUT);
pcf8574_1.pinMode(P7, INPUT);

pcf8574_2.pinMode(P0, INPUT);
pcf8574_2.pinMode(P1, INPUT);
pcf8574_2.pinMode(P2, INPUT);
pcf8574_2.pinMode(P3, INPUT);
pcf8574_2.pinMode(P4, INPUT);
pcf8574_2.pinMode(P5, INPUT);
pcf8574_2.pinMode(P6, INPUT);
pcf8574_2.pinMode(P7, INPUT);
pcf8574_1.begin();
pcf8574_2.begin();

}

void loop()
{
uint8_t val1 = pcf8574_1.digitalRead(P0);
uint8_t val2 = pcf8574_1.digitalRead(P1);
uint8_t val3 = pcf8574_1.digitalRead(P2);
uint8_t val4 = pcf8574_1.digitalRead(P3);
uint8_t val5 = pcf8574_1.digitalRead(P4);
uint8_t val6 = pcf8574_1.digitalRead(P5);
uint8_t val7 = pcf8574_1.digitalRead(P6);
uint8_t val8 = pcf8574_1.digitalRead(P7);

uint8_t val9 = pcf8574_2.digitalRead(P0);
uint8_t val10 = pcf8574_2.digitalRead(P1);
uint8_t val11 = pcf8574_2.digitalRead(P2);
uint8_t val12 = pcf8574_2.digitalRead(P3);
uint8_t val13 = pcf8574_2.digitalRead(P4);
uint8_t val14 = pcf8574_2.digitalRead(P5);
uint8_t val15 = pcf8574_2.digitalRead(P6);
uint8_t val16 = pcf8574_2.digitalRead(P7);
 
if (val1==LOW) Serial.println("KEY1 PRESSED");
if (val2==LOW) Serial.println("KEY2 PRESSED");
if (val3==LOW) Serial.println("KEY3 PRESSED");
if (val4==LOW) Serial.println("KEY4 PRESSED");
if (val5==LOW) Serial.println("KEY5 PRESSED");
if (val6==LOW) Serial.println("KEY6 PRESSED");
if (val7==LOW) Serial.println("KEY7 PRESSED");
if (val8==LOW) Serial.println("KEY8 PRESSED");

if (val9==LOW) Serial.println("KEY9 PRESSED");
if (val10==LOW) Serial.println("KEY10 PRESSED");
if (val11==LOW) Serial.println("KEY11 PRESSED");
if (val12==LOW) Serial.println("KEY12 PRESSED");
if (val13==LOW) Serial.println("KEY13 PRESSED");
if (val14==LOW) Serial.println("KEY14 PRESSED");
if (val15==LOW) Serial.println("KEY15 PRESSED");
if (val16==LOW) Serial.println("KEY16 PRESSED");
if(digitalRead(34)== LOW) Serial2.println("KEY17 PRESSED");
if(digitalRead(35)== LOW) Serial2.println("KEY18 PRESSED");
    delay(100);
}



Attached Files
.zip   KC868-AP8574-DI.zip (Size: 886 bytes / Downloads: 182)
Print this item

  [Arduino source code for KC868-AP]-03 _RS485_communication
Posted by: KinCony Support - 01-03-2023, 01:36 AM - Forum: KC868-AP / ADR - No Replies

 [Arduino source code for KC868-AP]-03 _RS485_communication

Code:
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,33,14);
   Serial2.println("RS485 SEND is OK!!");
   Serial2.println("******************");
 
}

void loop() {
  /*print the received data of RS485 port*/
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it
   }
  delay(200);
}



Attached Files
.zip   KC868-AP-485.zip (Size: 855 bytes / Downloads: 168)
Print this item