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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,602
» Latest member: fsfsfsf
» Forum threads: 2,931
» Forum posts: 15,543

Full Statistics

Online Users
There are currently 24 online users.
» 0 Member(s) | 10 Guest(s)
Amazonbot, Bytespider, Crawl, Google, PetalBot, WordPress/, bot

Latest Threads
MB Specs - 8A per channel...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
3 hours ago
» Replies: 1
» Views: 5
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
Yesterday, 10:44 PM
» Replies: 52
» Views: 5,533
KC868-A8M circuit diagram
Forum: KC868-A8M
Last Post: admin
Yesterday, 10:44 PM
» Replies: 2
» Views: 855
KC868-AG ESP32 I/O pin de...
Forum: KC868-AG / AG Pro / AG8
Last Post: admin
Yesterday, 12:23 PM
» Replies: 12
» Views: 2,618
Low output voltage
Forum: KC868-A16
Last Post: twostar
Yesterday, 11:59 AM
» Replies: 2
» Views: 21
Tuya adapter V2 arduino s...
Forum: KC868-ATC / Tuya adapter V2
Last Post: admin
Yesterday, 01:18 AM
» Replies: 2
» Views: 247
Dummy question: non-zero ...
Forum: T16M
Last Post: jarekD
04-05-2025, 09:00 AM
» Replies: 9
» Views: 165
BM16 Problems
Forum: B16M
Last Post: PWJ
04-04-2025, 08:51 AM
» Replies: 2
» Views: 26
M30 negative power
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
04-04-2025, 12:10 AM
» Replies: 3
» Views: 27
KC868-A16 analog input
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
04-04-2025, 12:10 AM
» Replies: 5
» Views: 346

  Request for KCS Firmware Source Code
Posted by: umutc - 01-10-2025, 06:57 PM - Forum: "KCS" v2 firmware system - Replies (1)

I am currently developing automation software using the Sedona Framework and would like to integrate it with Tridium Niagara. To achieve this, I am seeking access to the KCS firmware source code to facilitate a seamless integration between both platforms.
If you are willing to share the source code, I would greatly appreciate it if you could send it via email to me.
Thank you for your time and consideration.

Best regards,

Print this item

  Basic Steps to Connect MB to Home Assistant
Posted by: petermac - 01-10-2025, 02:30 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (5)

Have received new MB DC Meter.

Please if you could provide the basics steps to get it connected to Home Assistant.

Thanks.

Print this item

Photo Inputs don't works
Posted by: osis - 01-10-2025, 09:36 AM - Forum: KC868-A16 - Replies (9)

I'm asking for help because my inputs don't work.
I check by shorting the input to GND - as in the instructions.
Do I need to configure it? I tried various configurations but without any positive effect (picture).



Attached Files Thumbnail(s)
   
Print this item

  PCF8575 Library Missing for F16
Posted by: Talal - 01-09-2025, 07:59 PM - Forum: F16 - Replies (1)

Hi! I have been working on my Project using F16. I cannot find the libraries for F16 "PCF8575" and "U8g2lib" anywhere. Kindly share the libraries. Also It would be helpful If you can provide the F16 Schematic Diagram. Thanks

Print this item

  relay
Posted by: TurSolution - 01-09-2025, 04:02 PM - Forum: KC868-A16 - Replies (1)

Hi all
I can't use relays no turn on and no turn off.
How can you help me?


my code : 
#include "gpio_i2c.h"
#include "compile_profile.h"
#include "print_log.h"
#include "PCF8574.h"
#include <Wire.h>


#define MODULE_NAME  "gpio_i2c.cpp"

#define Input_IIC_address 0x21
#define Input_IIC_address 0x22

#define Relay_IIC_address 0x24
#define Relay_IIC_address 0x25
GPIO_I2C gpioI2C;

// Set i2c address
PCF8574 pcf8574_input_1(Input_IIC_address,4,5);
PCF8574 pcf8574_input_2(Input_IIC_address,4,5);

PCF8574 pcf8574_relay_1(Relay_IIC_address,4,5);
PCF8574 pcf8574_relay_2(Relay_IIC_address,4,5);



void GPIO_I2C::Init()
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)

    PRINT_LOG_API_PrintDebug("Init()..", MODULE_NAME, __LINE__);
    byte count = 0;
    Wire.begin(4, 5);
  for (byte i = 8; i < 120; i++)
  {
    Wire.beginTransmission (i);          // Begin I2C transmission Address (i)
    if (Wire.endTransmission () == 0)  // Receive 0 = success (ACK response)
    {
      Serial.print ("Found address: ");
      Serial.print (i, DEC);
      Serial.print (" (0x");
      Serial.print (i, HEX);    // PCF8574 7 bit address
      Serial.println (")");
      break;
    }
  }


    //Wire.begin();  // Initialize I2C communication
  // Wire.setClock(100000); // Set I2C clock to 100kHz (default is 400kHz)

   

   

    pcf8574_relay_1.pinMode(P0, OUTPUT);
    pcf8574_relay_1.pinMode(P1, OUTPUT);
    pcf8574_relay_1.pinMode(P2, OUTPUT);
    pcf8574_relay_1.pinMode(P3, OUTPUT);
    pcf8574_relay_1.pinMode(P4, OUTPUT);
    pcf8574_relay_1.pinMode(P5, OUTPUT);
    pcf8574_relay_1.pinMode(P6, OUTPUT);
    pcf8574_relay_1.pinMode(P7, OUTPUT);

    pcf8574_relay_2.pinMode(P0, OUTPUT);
    pcf8574_relay_2.pinMode(P1, OUTPUT);
    pcf8574_relay_2.pinMode(P2, OUTPUT);
    pcf8574_relay_2.pinMode(P3, OUTPUT);
    pcf8574_relay_2.pinMode(P4, OUTPUT);
    pcf8574_relay_2.pinMode(P5, OUTPUT);
    pcf8574_relay_2.pinMode(P6, OUTPUT);
    pcf8574_relay_2.pinMode(P7, OUTPUT);

   

    pcf8574_input_1.pinMode(P0, INPUT);
    pcf8574_input_1.pinMode(P1, INPUT);
    pcf8574_input_1.pinMode(P2, INPUT);
    pcf8574_input_1.pinMode(P3, INPUT);
    pcf8574_input_1.pinMode(P4, INPUT);
    pcf8574_input_1.pinMode(P5, INPUT);
    pcf8574_input_1.pinMode(P6, INPUT);
    pcf8574_input_1.pinMode(P7, INPUT);

    pcf8574_input_2.pinMode(P0, INPUT);
    pcf8574_input_2.pinMode(P1, INPUT);
    pcf8574_input_2.pinMode(P2, INPUT);
    pcf8574_input_2.pinMode(P3, INPUT);
    pcf8574_input_2.pinMode(P4, INPUT);
    pcf8574_input_2.pinMode(P5, INPUT);
    pcf8574_input_2.pinMode(P6, INPUT);
    pcf8574_input_2.pinMode(P7, INPUT);


    if (pcf8574_relay_1.begin())
    {
        Serial.println("pcf8574_relay_1 OK");
    }
    else
    {
        Serial.println("pcf8574_relay_1 not OK");
    }

    Serial.print("Init pcf8574_2...");
    if (pcf8574_relay_2.begin())
    {
        Serial.println("pcf8574_relay_2 OK");
    }
    else
    {
        Serial.println("pcf8574_relay_2 NOT OK");
    }

    for(int i=0; i< 8; i++)
    {
        pcf8574_relay_1.digitalWrite(i, LOW);
        pcf8574_relay_2.digitalWrite(i, LOW);
    }

    if (pcf8574_input_1.begin())
    {
        Serial.println("pcf8574_input_1 OK");
    }
    else
    {
        Serial.println("pcf8574_input_1 not OK");
    }

    Serial.print("pcf8574_input_2...");
    if (pcf8574_input_2.begin())
    {
        Serial.println("pcf8574_input_2 OK");
    }
    else
    {
        Serial.println("pcf8574_input_2 NOT OK");
    }

  PRINT_LOG_API_PrintDebug("Init()..Finish", MODULE_NAME, __LINE__);
#endif

}
void GPIO_I2C:TongueinMode(uint8_t pinNum, bool mode)
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)
if (pinNum > 8)
    {
        if(mode)
        {
            pcf8574_relay_1.pinMode((pinNum - 1), OUTPUT);
        }       
    }
    else
    {
        if(mode)
        {
            pcf8574_relay_2.pinMode((pinNum - 1 - 8), OUTPUT);           
        }
    }
#endif
}


void GPIO_I2C::SetPinMode(bool mode, uint8_t pinNum)
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)
    if (pinNum > 8)
    {
        if(mode)
        {
            pcf8574_relay_1.pinMode((pinNum - 1), OUTPUT);
        }
       
    }
    else
    {
        if(mode)
        {
            pcf8574_relay_2.pinMode((pinNum - 1 - 8), OUTPUT);
           
        }
    }

#endif
}

void GPIO_I2C:Big GrinigitalWrite(uint8_t pinNum, bool mode)
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)
   
    if (pinNum > 8)
    {
        pcf8574_relay_1.digitalWrite(pinNum - 1, mode);
    }
    else
    {
        pcf8574_relay_2.digitalWrite(pinNum - 8 - 1, mode);
    }

#endif
}
void GPIO_I2C::SetOutputMode(bool mode, uint8_t pinNum)
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)
   
    if (pinNum > 8)
    {
        pcf8574_relay_1.digitalWrite(pinNum - 1, mode);
    }
    else
    {
        pcf8574_relay_2.digitalWrite(pinNum - 8 - 1, mode);
    }

#endif
}

bool GPIO_I2C::ReadInput(uint8_t pinNum)
{
    bool retVal = false;


#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)


    if (pinNum > 8)
    {
        retVal = pcf8574_input_1.digitalRead(pinNum - 1);
    }
    else
    {
        retVal = pcf8574_input_2.digitalRead(pinNum - 8 - 1);
    }

#endif

    return retVal;

}


int GPIO_I2C:Big GrinigitalRead(uint8_t pinNum)
{
    int retVal = -1;
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)
   
    if (pinNum > 8)
    {
        retVal = pcf8574_input_1.digitalRead(pinNum - 1);
    }
    else
    {
        retVal = pcf8574_input_2.digitalRead(pinNum - 8 - 1);
    }

#endif

return retVal;
}

void GPIO_I2C::TestOutput()
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)

    PRINT_LOG_API_PrintDebug("TestOutput()..", MODULE_NAME, __LINE__);

    for(int i=0; i< 8; i++)
    {
        PRINT_LOG_API_PrintDebug("TestOutput() HIGH", MODULE_NAME, __LINE__);
        pcf8574_relay_1.digitalWrite(i, HIGH);
        pcf8574_relay_2.digitalWrite(i, HIGH);
        delay(2500);
        PRINT_LOG_API_PrintDebug("TestOutput() LOW", MODULE_NAME, __LINE__);
        pcf8574_relay_1.digitalWrite(i, LOW);
        pcf8574_relay_2.digitalWrite(i, LOW);
    }
    PRINT_LOG_API_PrintDebug("TestOutput()..Finish", MODULE_NAME, __LINE__);
    #endif
}

void GPIO_I2C::TestOutputP1()
{
#if ( PROFILE_COMPILE & GPIO_I2C_MODULE)

        PRINT_LOG_API_PrintDebug("TestOutputP1() HIGH", MODULE_NAME, __LINE__);
        //pcf8574_relay_1.digitalWriteAll(0xff);
        //pcf8574_relay_2.digitalWriteAll(0xff);
        //pcf8574_1.digitalWrite(0, HIGH);
        for (size_t i = 0; i < 8; i++)
        {
            pcf8574_relay_1.digitalWrite(i, HIGH);
            pcf8574_relay_2.digitalWrite(i, HIGH);
        }
       
     
        delay(1000);
        PRINT_LOG_API_PrintDebug("TestOutputP2() LOW", MODULE_NAME, __LINE__);
        for (size_t i = 0; i < 8; i++)
        {
            pcf8574_relay_1.digitalWrite(i, LOW);
            pcf8574_relay_2.digitalWrite(i, LOW);
        }
        delay(1000);
    #endif
}

Print this item

  KC868-A16S multiple DS18B20 possible ?
Posted by: land88 - 01-09-2025, 10:13 AM - Forum: KC868-A16S - Replies (1)

Hi,

I have connected on KC868-a16S a DS18B20 on 1-Wire input, it's ok with KCS.
Is it possible to put an other DS18B20 in parallel ? I have try, but not possible to see an other sensor temperature.
If not possible with an other DS18B20, is it possible with other sensor type ? by exemple thermistance NTC b3950-10K on Analogic ADC input ? (I think there is two positions analogic for voltage)

Thanks.

Print this item

  K868-a32 plastic case
Posted by: mitzuuu89 - 01-09-2025, 08:54 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Coundn't find a plastic case for the K868-a32 in the kincony store, there's a shell for kc868-ai but i'm not sure if it fits the K868-a32. 
Anyone have a 3d print file? Or does anyone know if the AI shell fits the A32?

https://shop.kincony.com/products/green-...put-module

Print this item

  Advice for a board
Posted by: Bergoglio - 01-08-2025, 11:50 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Good morning,

I'm searching a simple ESP32 board with these connections :
- 1 LAN rj45 port
- 2 dry contacts for two different switches
- 2 GPIO pins to pilot one DFRobot DFPlayer Mini MP3 Player
- 1 GPIO pin to pilot a RGB led strip (probably a WS2812 chip)

Because I'm quite a noob in electronic, I'm not able to choose between Your products and I need Your help / advice.

Best regards

Print this item

  Better documentation?
Posted by: riz94107 - 01-08-2025, 09:40 PM - Forum: KC868-A6 - Replies (7)

I've just got a KC868-A6 purchased via Aliexpress - I was expecting things to "just work", but since they're not, is there better documentation anywhere?

Here's what I've tried:

- the unit boots (and cycles the relays) when 12V is applied
- What little documentation I've seen says it should be in AP mode - but no APs show up in my local wifi at all (even after pressing buttons for >10s as indicated)
- the USB-C port does not seem to work, or at least it's not detected when I plug it into my computer (neither MacOS nor Linux).  I would expect to be able to load ESP32 code via USB, but... no
- plugging in an s1306 display doesn't yield any info (the display remains dark, probably not supported in the loaded firmware)
- the RS232 port does have some activity.  I see this:

Code:
**********
T1: -0.06
         T2: -0.06
                  2022/11/28 (Monday) 11:30:52

... and when I press the S2 button, I get this:
Code:
Download key is ok !

How am I supposed to be able to get ESPHome on this thing? Smile  (I am pretty familiar with ESP32 and ESPHome - it's not clear which serial port is supposed to work for this).

Thanks.

Print this item

  KC868_16S System Menu : exit to login
Posted by: land88 - 01-08-2025, 08:41 PM - Forum: KC868-A16S - Replies (2)

Hi,

I have a new KC868_A16S, firmware V2.2.10.
When I want to set ntp in system menu, the menu exit to login and it's impossible to go inside the system Menu.

How to do ?
Thanks.

Print this item