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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,374
» Latest member: zeth
» Forum threads: 2,574
» Forum posts: 13,315

Full Statistics

Online Users
There are currently 53 online users.
» 2 Member(s) | 35 Guest(s)
AhrefsBot, Bytespider, Crawl, Google, PetalBot, Yandex, bot, owler, biofects, jenniferpollak

Latest Threads
KC868-A2 configure yaml f...
Forum: KC868-A2
Last Post: elemarek
9 hours ago
» Replies: 15
» Views: 7,686
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
10 hours ago
» Replies: 12
» Views: 134
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
Today, 03:07 AM
» Replies: 13
» Views: 470
change wake up name
Forum: KinCony AS
Last Post: admin
Today, 02:10 AM
» Replies: 13
» Views: 104
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:41 PM
» Replies: 6
» Views: 51
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: admin
Yesterday, 11:15 PM
» Replies: 18
» Views: 191
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
Yesterday, 11:12 PM
» Replies: 8
» Views: 2,272
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 04:32 AM
» Replies: 32
» Views: 399
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
12-17-2024, 11:43 PM
» Replies: 10
» Views: 73
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
12-17-2024, 11:40 PM
» Replies: 7
» Views: 55

  COL + rs485 meter
Posted by: athxp - 05-02-2024, 08:51 PM - Forum: KC868-HxB series Smart Controller - Replies (3)

HI,
I have a Kincony RS-484 meter. I would like to use it to monitor a photovoltaic system and carry out automations with COL.
we are talking about around 6000-6500w of power and currents around 30A. will the meter have problems?
Furthermore, can I program COL using the simple IFTTT rules linked to the meter measurements?
 thanks

Print this item

  KC868-A4S Analog Inputs
Posted by: DabblerIOT - 05-02-2024, 07:36 PM - Forum: Development - Replies (2)

Hi.   Sorting out analog inputs using esp32home. Thank you for any response, board working well.

Using this right now..

- platform: adc
    pin: 36
    name: "ADC-IN1"
    update_interval: 5s
    attenuation: 11db
    filters:
      - lambda: if (x <= 0.15) { return 0; } return x * 1.51;

Several questions:
(1) I saw some example code posted to this forum where about x of 3.1 it used a higher multiplier. Why? This code is going to cause a large increase in output value at 3.111 x. Would a better approach be to read ground and vcc to the esp, and then scale your input readings according to those two readings using those values as 0 and 100% of input span? (0-3.3 after the voltage divider, or 0-5v at the input terminal).

(2) If I want to read a 10k ntc thermistor, it looks like a voltage divider, of 5.1k/10k is already there on the input... so if I power a 10k ntc thermistor with 3.3 volts, wouldn't I be essentially just adding the resistance value of my thermistor onto the 5.1k on-board resistor? (Allowing me to subtract 5.1k from the read value, and then normalizing my reading using the on-board code). My voltage isn't what I expect if this were true. (I am not an expert on the electronics side). Just enough to be dangerous.

Code was here.
https://www.kincony.com/forum/showthread...hlight=adc
sensor:
- platform: adc
pin: 36
name: "A8S A1 Voltage"
update_interval: 5s
attenuation: 11db
filters:
- lambda:
if (x >= 3.11) {
return x * 1.60256;
} else if (x <= 0.15) {
return 0;
} else {
return x * 1.51;
}

Print this item

  KC868 A4 for education
Posted by: Sidboudk - 05-01-2024, 06:33 PM - Forum: Apply for free sample product - No Replies

I'm requesting a KC868-A4 equipment for educational purpos. I'm associated professor at Evry-paris saclay university and we want to teach our students microcontroller programming and basic concepts of electricity and electronics.

Print this item

  E16T IFTTT Limit and Logs
Posted by: ByteCrusader22 - 04-30-2024, 05:08 AM - Forum: "KCS" firmware system - Replies (1)

Hello, 


I'm currently running E16T using E16S KCS Firmware and linked to Tuya APP


1. Is there a limit to how many IFTTT automations can be run on E16T using KCS firmware without running into memory issues and causing instability?
2. Can IFTTT and Tuya automations be run at the same time? If so which will override the other if there are clashes.
3. ⁠Is it possible to check the memory utilisation using the KCS firmware?
4. ⁠Can the device post logs to external databases using IFTTT?

Print this item

  Wiring diagram KC868-A16
Posted by: Brouk - 04-29-2024, 08:33 PM - Forum: KC868-A16 - Replies (3)

Hello to everybody,
I am planning to buy the module "KC868-A16" to connect with Home Assistant with NodeRed. For proper connection, I need a wiring harness (di. inputs, di. outputs, DS18B20 temperature sensors, etc. Can you please provide me with a wiring diagram?

Print this item

  KC868-A2 and SIM7600G-H
Posted by: jpinto97 - 04-28-2024, 10:52 PM - Forum: KC868-A2 - Replies (1)

Hello, what are the pins to connect a sim7600g-h module to the KC868-A2-V2.4 board?

Print this item

  Digital Inputs with 2.2K ohm resistor
Posted by: bruces - 04-28-2024, 04:32 PM - Forum: KC868-AI - Replies (3)

So I need to know if i were to connect a DI to ground through a 2200 ohm resistor would the input trip.
I am trying to replace an old security system and all of the inputs have two states, open circuit or 2200 ohm in the line.
I would just remove the 2200 ohm resistor but most of them are not accessible.

Print this item

  Smoke Sensor Connected to KC868-AI
Posted by: fdcemb5 - 04-28-2024, 11:19 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

I connect the Smoke sensor to the KC868-AI, to input 3, the smoke sensor is constantly turn the input On. The sensor's 2 LED are constantly constantly green. I introduced smoke flame to the sensor but the green light still remains green and the input is turned on. This behavior is wired. Any help what is happening.

The Sensor is connected to pin 1+ve and pin 2 -ve, pin 3 to KCOM, and pin 4 to AI input pin 3.

Print this item

  [Arduino source code for KC868-ASR]-03 Relay auto ON/OFF by date time
Posted by: admin - 04-28-2024, 05:21 AM - Forum: KC868-ASR - No Replies

This is an arduino sample code for KC868-ASR , auto control relay ON/OFF by date and time. for example ,the demo is every year 4-26 (April 26th) relay will ON, every year 5-2 (May 2nd) relay will OFF. it support command by serial port (USB cable) to send date/time and read date/time.
   

Code:
#include <DS3231.h>
#include <Wire.h>

String serial_cmd_rcv = ""; //serial port receiver

typedef struct
{
  byte year;// Last two digits of the year, lib will add 2000.
  byte month;
  byte day;
  byte hour ;
  byte minute ;
  byte second ;
}MY_DATE_STR;

MY_DATE_STR my_date_str = {0};

#define OPEN_RLY_DATA   26
#define OPEN_RLY_MONTH  4

#define CLOSE_RLY_DATA   2
#define CLOSE_RLY_MONTH   5

#define SDA_PIN   26
#define SCL_PIN   27

#define RLY1_PIN  19
#define RLY2_PIN  5

DS3231  rtc;
bool h12Flag;
bool pmFlag;
static bool bCentury = false;
static bool old_level_high = false;
static bool old_level_low = false;

static bool CompareOpenDate()
{
  return (rtc.getDate()==OPEN_RLY_DATA)&(rtc.getMonth(bCentury)==OPEN_RLY_MONTH);
}

static bool CompareCloseDate()
{
  return (rtc.getDate()==CLOSE_RLY_DATA)&(rtc.getMonth(bCentury)==CLOSE_RLY_MONTH);
}

static void PrintfCurTime()
{
  Serial.print("current time is: ");
  int year = rtc.getYear() + 2000;
  Serial.print(year);
  Serial.print("-");
 
  Serial.print(rtc.getMonth(bCentury), DEC);
  Serial.print("-");
 
  // then the date
  Serial.print(rtc.getDate(), DEC);
  Serial.print(" ");
 
  // and the day of the week
  //Serial.print(rtc.getDoW(), DEC);
  //Serial.print(" ");
 
  // Finally the hour, minute, and second
  Serial.print(rtc.getHour(h12Flag, pmFlag), DEC);
  Serial.print(":");
  Serial.print(rtc.getMinute(), DEC);
  Serial.print(":");
  Serial.println(rtc.getSecond(), DEC);
 
}
static void GetSerialCmd()
{ ////format:D2024-04-28T11:50:22

  /*while (Serial.available() > 0)
  {
    serial_cmd_rcv += char(Serial.read());
    delay(5); 
  } */
  if(Serial.available() > 0)
  {
    delay(100);
    int num_read = Serial.available();
    while(num_read--)
      serial_cmd_rcv += char(Serial.read());
  }
  else return;
  
  serial_cmd_rcv.trim();

  if(serial_cmd_rcv == "current time")
  {
    PrintfCurTime();
    serial_cmd_rcv = "";
    return;
  }

  Serial.print("rcv length:");
  Serial.println(serial_cmd_rcv.length());

  int indexof_d = serial_cmd_rcv.indexOf('D');
  int indexof_t = serial_cmd_rcv.indexOf('T');

  Serial.print("d index:");Serial.print(indexof_d);
  Serial.print(" t index:");Serial.println(indexof_t);
 
  if (serial_cmd_rcv.length() != 20 ||
      serial_cmd_rcv.substring(0,1) != "D" ||
      serial_cmd_rcv.substring(11,12) != "T") 
  {
   
    Serial.println(serial_cmd_rcv);
    serial_cmd_rcv="";
    return;
    }
   
  Serial.println("setting is start!");
 
  my_date_str.year = (byte)serial_cmd_rcv.substring(3,5).toInt();
  my_date_str.month = (byte)serial_cmd_rcv.substring(6,8).toInt();
  my_date_str.day = (byte)serial_cmd_rcv.substring(9,11).toInt();

  my_date_str.hour = (byte)serial_cmd_rcv.substring(12,14).toInt();
  my_date_str.minute = (byte)serial_cmd_rcv.substring(15,17).toInt();
  my_date_str.second = (byte)serial_cmd_rcv.substring(18).toInt();

  rtc.setYear(my_date_str.year);
  rtc.setMonth(my_date_str.month);
  rtc.setDate(my_date_str.day);
  rtc.setHour(my_date_str.hour);
  rtc.setMinute(my_date_str.minute);
  rtc.setSecond(my_date_str.second);
 
  serial_cmd_rcv = "";

  Serial.println("setting is ending!");
}

static bool GetEdgeP(bool cur,bool old)  {return (cur & !old);}
static bool bOpen,bClose;

void setup() {
  // put your setup code here, to run once:
  // Start the I2C interface
  Wire.begin(SDA_PIN,SCL_PIN,40000);
 
  // Setup Serial connection
  Serial.begin(115200);
 
  pinMode(RLY1_PIN,OUTPUT);
  pinMode(RLY2_PIN,OUTPUT);
 
  // Set 12/24h mode. True is 12-h, false is 24-hour.
  rtc.setClockMode(false);////24h

  PrintfCurTime();

  while(Serial.read()>=0){}

}

void loop() {
  // put your main code here, to run repeatedly:
  
  GetSerialCmd();
 
  bOpen = CompareOpenDate();
  bClose = CompareCloseDate();
  if(GetEdgeP(bOpen,old_level_high)) digitalWrite(RLY1_PIN,HIGH);
  if(GetEdgeP(bClose,old_level_low)) digitalWrite(RLY1_PIN,LOW);


  old_level_high = bOpen;
  old_level_low = bClose;
  //delay (1000);
 
}
source code download ZIP file: 
.zip   DS3231TST-20240428.zip (Size: 1.53 KB / Downloads: 78)
before use code need install DS3231 arduino library firstly.
   
download firmware by arduino IDE: 
   
serial port by USB 115200bps
set date and time command example: D2024-04-28T11:50:22
print current date and time: current time
   
   

because it's not easy to battery by air plane, so if you want timer work when power off, you can install the CR1220 on KC868-ASR PCB bottom side.
   
   

Print this item

  AK not connecting to controller
Posted by: mutaz - 04-28-2024, 03:23 AM - Forum: KC868-AK - Replies (19)

Hi

My AK board is not connecting to controller. Only one light red showing. It was working before but suddenly stop.
I tried to use a different AK to the same controller but also didn't work.

What should I do?

Print this item