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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,575
» Latest member: e.montolivo@gmail.com
» Forum threads: 2,918
» Forum posts: 15,487

Full Statistics

Online Users
There are currently 27 online users.
» 1 Member(s) | 10 Guest(s)
Amazonbot, Bing, Crawl, PetalBot, Semrush, WordPress/, bot, owler, acztassi

Latest Threads
M30 negative power
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
2 hours ago
» Replies: 44
» Views: 5,310
Simulating RF Remote Butt...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
Fatal error while uploadi...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 6
» Views: 4,912
ESP32S3 Chip efuse check ...
Forum: "KCS" v3 firmware
Last Post: admin
2 hours ago
» Replies: 3
» Views: 9
KC868-A16 analog input
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
2 hours ago
» Replies: 1
» Views: 40
A32pro RGB led strip
Forum: DIY Project
Last Post: admin
2 hours ago
» Replies: 1
» Views: 7
KC868-A16 rev. 1.6 firmwa...
Forum: "KCS" v2 firmware system
Last Post: jollyroger
8 hours ago
» Replies: 2
» Views: 21
M30 negative power
Forum: KC868-M16 / M1 / MB / M30
Last Post: Linus68
Yesterday, 11:35 AM
» Replies: 0
» Views: 1
BM16 Problems
Forum: B16M
Last Post: admin
Yesterday, 08:25 AM
» Replies: 1
» Views: 7

  Product packaging
Posted by: mitzuuu89 - 02-03-2025, 08:55 AM - Forum: Suggestions and feedback on KinCony's products - Replies (1)

Hi,

I've just received my K868-A32 and K868-A16s boards in Romania.

I just want to suggest to improve the package wrapping, the K868-A32 plastic case came broken. 

Thanks! Looking forward to installing the boards.



Attached Files Thumbnail(s)
   
Print this item

  [arduino code examples for A16v3]-13 read DS18B20 temperature sensors
Posted by: admin - 02-03-2025, 06:17 AM - Forum: KC868-A16v3 - No Replies

Code:
// https://github.com/junkfix/esp32-ds18b20

#include "OneWireESP32.h"
const uint8_t MaxDevs = 1;
float currTemp[MaxDevs];

void tempTask(void *pvParameters){
    OneWire32 ds1(47); //gpio pin
    OneWire32 ds2(48); //gpio pin
  OneWire32 ds3(38); //gpio pin

    uint64_t addr1[MaxDevs];
  uint64_t addr2[MaxDevs];
  uint64_t addr3[MaxDevs];
    
    //uint64_t addr[] = {
    //    0x183c01f09506f428,
    //    0xf33c01e07683de28,
    //};
    
    //to find addresses
    uint8_t devices1 = ds1.search(addr1, MaxDevs);
    for (uint8_t i = 0; i < devices1; i += 1) {
        Serial.printf("T1: 0x%llx,\n", i, addr1[i]);
        //char buf[20]; snprintf( buf, 20, "0x%llx,", addr[i] ); Serial.println(buf);
    }

    uint8_t devices2 = ds2.search(addr2, MaxDevs);
    for (uint8_t i = 0; i < devices2; i += 1) {
        Serial.printf("T2: 0x%llx,\n", i, addr2[i]);
        //char buf[20]; snprintf( buf, 20, "0x%llx,", addr[i] ); Serial.println(buf);
    }

    uint8_t devices3 = ds3.search(addr3, MaxDevs);
    for (uint8_t i = 0; i < devices3; i += 1) {
        Serial.printf("T3: 0x%llx,\n", i, addr3[i]);
        //char buf[20]; snprintf( buf, 20, "0x%llx,", addr[i] ); Serial.println(buf);
    }
    //end

    for(;;){
        ds1.request();
    ds2.request();
    ds3.request();
        vTaskDelay(750 / portTICK_PERIOD_MS);
        for(byte i = 0; i < MaxDevs; i++){
            uint8_t err = ds1.getTemp(addr1[i], currTemp[i]);
            if(err){
                const char *errt[] = {"", "CRC", "BAD","DC","DRV"};
                Serial.print(i); Serial.print(": "); Serial.println(errt[err]);
            }else{
                Serial.print("T1"); Serial.print(": "); Serial.println(currTemp[i]);
            }
        }

        for(byte i = 0; i < MaxDevs; i++){
            uint8_t err = ds2.getTemp(addr2[i], currTemp[i]);
            if(err){
                const char *errt[] = {"", "CRC", "BAD","DC","DRV"};
                Serial.print(i); Serial.print(": "); Serial.println(errt[err]);
            }else{
                Serial.print("T2"); Serial.print(": "); Serial.println(currTemp[i]);
            }
        }

        for(byte i = 0; i < MaxDevs; i++){
            uint8_t err = ds3.getTemp(addr3[i], currTemp[i]);
            if(err){
                const char *errt[] = {"", "CRC", "BAD","DC","DRV"};
                Serial.print(i); Serial.print(": "); Serial.println(errt[err]);
            }else{
                Serial.print("T3"); Serial.print(": "); Serial.println(currTemp[i]);
            }
        }

        vTaskDelay(3000 / portTICK_PERIOD_MS);
    }
} // tempTask

void setup() {
    delay(1000);
    Serial.begin(115200);
    xTaskCreatePinnedToCore(tempTask, "tempTask", 4096,  NULL,  1,  NULL, 0);
}


void loop() {}
arduino ino file download:
.zip   13-ds18b20.zip (Size: 888 bytes / Downloads: 57)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:
.zip   13-ds18b20.ino.merged.zip (Size: 183.21 KB / Downloads: 54)

Print this item

  Multiple fan wall project advice
Posted by: coroee - 02-02-2025, 04:39 PM - Forum: DIY Project - Replies (2)

Hello all!

We are working on an art project which consists of 8 walls of server brushless fans that are separated from each other.  in each wall there are 30 12v 0.2a fans, and 18 24v 0.5 fans. 

We would like to create different cycling programs in each wall that are triggered by a message from a main controller (esp32 / RPi) 
The walls are separated from each other so we thought that going wireless should be the cleanest way to build it.

We thought to use a Kincony A6 for each wall, that reads the message through esp-now or controlled by esphome or KCS firmware (can it control several boards?). 

I'm a pretty technical guy but making first steps into home automation.. so.. 

1. Does this setup make sense or is there a more elegant solution? 
2. I have some arduino coding knowledge but tempted by the GUI offered through the other solutions - which one of them provides just what I need, including manual on/off triggering of all connected boards + program scheduling?
3. Will the relays bear 6 amps 24v each for several seconds, going on and off for half an hour year (5 days a week, 10 hours per day), or should I opt for SSRs?

Many thanks and a lovely week to come! 

Roee.

Print this item

Thumbs Down THT22 and 5v
Posted by: jltluc57 - 02-02-2025, 09:58 AM - Forum: Development - Replies (17)

Improvement to be made:

I find it a shame that it is not specified in the documentation that to use the THT22 it must be in 5 volts.
You have to look on the forum.

In addition, it is not clean to go and get the 5v on the RF port, it is a DIY job.
An external terminal block would be more judicious.

Maybe in the future...




Board : KC868-A16

Print this item

  aduino and kc86822a to D1
Posted by: sistemasyusa - 02-01-2025, 04:35 PM - Forum: KC868-A2 - No Replies

BUEN DÍA

PUEDES CONECTAR UN ARDUINO A D1 Y HACER COMUNICACIÓN SERIAL Y TENDRÁS UN EJEMPLO, TANQUES

Print this item

  Explanation of how the inputs and outputs work
Posted by: twostar - 02-01-2025, 06:53 AM - Forum: Development - No Replies

While investigating the possibility of a hack to deal with this issue I had a look at the circuit diagram to see if there was a way to wire an output back to an input to get the necessary chaining of IFTTT rules (thanks to Kincony for publishing this, it would have been much harder trying to trace it on a multilayer board with SMDs).

In case this is useful to others, here's how things work.  In particular if you're confused about dry vs. wet contacts and so on, read on.  The circuit diagram is a bit tricky to read since there are elements scattered across it in different locations, there are groups of pullups, snubber diodes, and other things off by themselves that you have to link to the main circuit element, if I've made any mistakes please let me know.

For the inputs, one side of the optocoupler LEDs is tied to 12V and the other, which corresponds to the dry-contact inputs, has a pullup to 12V when the contact is open and gets connected to GND when the contact is closed.  So contact open = no opto LEDs lit, contact closed = opto LEDs lit.  This is how an input dry contact is turned into a wet contact.

For the outputs, there's a p-channel MOSFET that switches a voltage onto the output.  This one is a bit confusing because if you look at the board images there's a 12/24V DC input next to the output connectors rather than the expected GND.  What happens is that when the output is off there's an open circuit between the 12/24VDC input and the output connector.  When it's on the voltage from the input connector is switched onto the output connector, with the GND provided separately.  In other words you externally wire the GND to the board and whatever it is you're driving from the output, and only a single wire, the output, goes to the other device with the GND shared between them.

This possibly also means you can switch something other than 12V or 24V onto the output, the inputs on the, ah, outputs are labelled LO0 and LO1 and only appear on the output side of the output optocouplers, so you may be able to run 5V relays off them by feeding in 5V on the "12/24V DC" input.

Print this item

  Chaining IFTTT rules
Posted by: twostar - 02-01-2025, 01:30 AM - Forum: Development - Replies (6)

The KC868 (almost) makes a great PLC for home automation, but one thing I can't find is any ability to chain IFTTT rules.  The rule table has "IF NUM" and "THEN NUM" entries which look like they would allow this but they're all set to zero and can't be edited.

To explain what I mean here, it's the ability to say IF <rule 1 condition met> THEN <goto rule 2>, where <rule 2> allows testing further conditions.  Let's say you want to use the device as an alarm controller, so you want to test:

Code:
IF ( motion_sensor1 OR motion_sensor2 OR motions_sensor3 ) AND is_armed THEN siren
The IFTTT rules only allow OR or AND but not complex expressions like the above, so it'd have to be done as:
Code:
rule1: IF ( motion_sensor1 OR motion_sensor2 OR motions_sensor3 ) THEN rule2
rule2: IF ( rule1 AND is_armed ) THEN siren_on + rule3
rule3: IF ( rule2 ) THEN delay 10 minutes + siren_off
Another example is for an aquarium pump controller where the IFTTT is almost perfect except for the ability to chain rules, I can sense inputs, add timing delays, run the pump as an output, but I need the ability to connect multiple rules to do that similar to the alarm.

Is there any way to chain rules in this manner, and if not could it be added?

Print this item

  Interfacing WS2812B led strips
Posted by: Krushi - 01-30-2025, 09:36 PM - Forum: KC868-AIO - Replies (3)

Hi I am using KC868 AIO installed for my smart home project, I would like to interface 4 ws2812b led strips how can I do that? Which of the pins can be used as data pins for the same. An example circuit and Yaml also will be appreciated.

Regards
Krushi

Print this item

  Can't Connect Over LAN
Posted by: Error7 - 01-30-2025, 07:37 PM - Forum: Development - Replies (1)

I posted this question a few days ago but I can not see it on the forum.

I recently purchased a KC868-A16 but I can not connect to the board.
I have changed the static IP on my router to 192.168.1.1 and if I scan my network with IP Scanner I can see the the address 192.168.1.200 which I think is the KC868.
I can not see the 192.168.1.200 using the Kincony Scan List tool and I am unable to connect to the board using Firefox.

Is the board faulty or am I doing something wrong? Please help.

Print this item

  KCS firmware bugs
Posted by: twostar - 01-30-2025, 12:47 PM - Forum: "KCS" v2 firmware system - Replies (11)

Not sure where to report this, but three bugs I've found with the KCS firmware, latest version (v2.2.8).

  1. The LAN activity LED (green) flickers constantly even though there's no activity on the LAN.  Since this is a network activity indicator it should only be lit when there's network traffic.
  2. The WiFi status indicator in the Network settings is wrong, it always displays enabled even if it's not.  To see this, go to Network -> WiFi, click on "enable" to make it disabled (greyed out), click Save, the system restarts and it's marked as enabled again.  The only way to tell its actual state is via a WiFi scanner to see if the KC868... AP is present or not.
  3. Time handling is wrong, with the default time zone of UTC the board displays the current time as 17:41 but it's actually 12:41, so it's five hours out.  It's also not possible to set all time zones, it stops at UTC+12 but there are countries which are currently at UTC+13.  A better way to handle this would be to allow for DST, since UTC+13 is actually UTC+12 + DST offset of 1 hour.  Without this, it's necessary to manually change the time on the board every time a DST changeover occurs.

Print this item