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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,171
» Latest member: gilbertodaniels
» Forum threads: 4,084
» Forum posts: 20,484

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 27 Guest(s)
Amazonbot, Applebot, Baidu, PetalBot, bot

Latest Threads
M16v2 and SCT013-050
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
4 hours ago
» Replies: 5
» Views: 36
[arduino code examples fo...
Forum: KC868-AGv3
Last Post: admin
Yesterday, 08:44 PM
» Replies: 0
» Views: 11
[arduino code examples fo...
Forum: KC868-AGv3
Last Post: admin
Yesterday, 08:42 PM
» Replies: 0
» Views: 5
[arduino code examples fo...
Forum: KC868-AGv3
Last Post: admin
Yesterday, 08:41 PM
» Replies: 0
» Views: 6
KC868-AGv3 ESP32S3 I/O pi...
Forum: KC868-AGv3
Last Post: admin
Yesterday, 08:38 PM
» Replies: 0
» Views: 7
KinCony KC868-AGv3 ESP32S...
Forum: News
Last Post: admin
Yesterday, 08:32 PM
» Replies: 0
» Views: 13
Single-family home automa...
Forum: DIY Project
Last Post: rosnoteh
Yesterday, 08:13 PM
» Replies: 2
» Views: 37
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 07:46 PM
» Replies: 7
» Views: 664
[Arduino IDE demo source ...
Forum: KC868-A128
Last Post: admin
Yesterday, 05:19 AM
» Replies: 0
» Views: 12
Enable 2 I2C buses at the...
Forum: KC868-A128
Last Post: admin
Yesterday, 05:17 AM
» Replies: 1
» Views: 11

  Sim7600E kc868_A4S GSM SIM Internet Is not working - 4G and 3G Enabled
Posted by: venuakil2 - 05-01-2025, 10:04 AM - Forum: KC868-A4S - Replies (4)

Hi, I am Sim7600E kc868_A4S Model to call website URL after Internet activation. 

SIM Yellow Light is blinking. 

SIM call and SMS are working. But, Internet is not working. I have changed SIM Provider APN details


#include <HardwareSerial.h>
// Define SIM7600 UART
#define MODEM_RX 13   // Connect to SIM7600 TX
#define MODEM_TX 15   // Connect to SIM7600 RX
HardwareSerial sim7600(1);  // Use UART1
const char* APN = "du";    // Set your network APN
const char* USER = "";     // Usually blank
const char* PASS = "";     // Usually blank
void setup() {
  Serial.begin(115200);           // USB serial
  sim7600.begin(115200, SERIAL_8N1, MODEM_RX, MODEM_TX); // UART1
  delay(5000);  // Give time to power up
  Serial.println("Initializing SIM7600...");
  // Disable echo for clean output
  sendATCommand("ATE0", "OK", 1000);
  // Basic check
  if (!retryCommand("AT", "OK", 2000, 3)) {
    Serial.println("SIM7600 not responding!");
    while (1);
  }
  // SIM card check
  if (!sendATCommand("AT+CPIN?", "READY", 2000)) {
    Serial.println("SIM Card not ready!");
    while (1);
  }
  // Set LTE-only mode
  sendATCommand("AT+CNMP=38", "OK", 3000);
  sendATCommand("AT+CMNB=1", "OK", 3000);
  // Set APN
  String apnCmd = "AT+CGDCONT=1,\"IP\",\"" + String(APN) + "\"";
  sendATCommand(apnCmd.c_str(), "OK", 3000);
  // Attach to network
  if (!sendATCommand("AT+CGATT=1", "OK", 10000)) {
    Serial.println("Failed to attach to network!");
    while (1);
  }
  // Activate PDP
  if (!sendATCommand("AT+CGACT=1,1", "OK", 10000)) {
    Serial.println("Failed to activate PDP!");
    while (1);
  }
  // Show IP
  printIPAddress();
}
void loop() {
  // Optional: monitor SIM7600 data or implement HTTP
}
// ========== AT COMMAND HELPERS ==========
bool sendATCommand(const char* cmd, const char* expected, uint32_t timeout) {
  sim7600.flush();
  sim7600.println(cmd);
  Serial.print(">> "); Serial.println(cmd);
  uint32_t start = millis();
  String response;
  while (millis() - start < timeout) {
    while (sim7600.available()) {
      char c = sim7600.read();
      Serial.write©;
      response += c;
      if (response.indexOf(expected) != -1) {
        return true;
      }
    }
  }
  Serial.println("\n!! Timeout or Unexpected response:");
  Serial.println(response);
  return false;
}
bool retryCommand(const char* cmd, const char* expected, uint32_t timeout, int retries) {
  for (int i = 0; i < retries; i++) {
    if (sendATCommand(cmd, expected, timeout)) return true;
    delay(1000);
  }
  return false;
}
void printIPAddress() {
  Serial.println("Checking IP with AT+CGPADDR=1...");
  sim7600.println("AT+CGPADDR=1");
  delay(1000);
  String response;
  while (sim7600.available()) {
    char c = sim7600.read();
    Serial.write©;
    response += c;
  }
  int ipStart = response.indexOf(",\"") + 2;
  int ipEnd = response.indexOf("\"", ipStart);
  if (ipStart > 1 && ipEnd > ipStart) {
    String ip = response.substring(ipStart, ipEnd);
    Serial.print("Assigned IP: ");
    Serial.println(ip);
  } else {
    Serial.println("No IP Address Assigned");
  }
}


OutPut  
13:57:40.249 -> >> AT
13:57:42.215 -> !! Timeout or Unexpected response:
13:57:49.212 -> SIM7600 not responding!


Note : SIM calling is working 
Note 2: SIM SMS are working.
Only Internet is not activated. I have to call website URL after Internet connected. 


   

Print this item

  LCD i2s display on KS868-A16
Posted by: markuutgrunnen - 04-30-2025, 04:31 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

Hello,

Who can help me, I have a KS868-A16 I would like 
to connect an I2s display 20x4) and show DS16B20 sensors on the 
display but I can't do it.

i use esphome, I have some DS16B20 sensors and they already work well with KS868-A16.

Greetings Mark

Print this item

  Serial Monitoring
Posted by: joe.sfeir@gmail.com - 04-30-2025, 03:03 AM - Forum: T16M - No Replies

Hi,

I am using Serial.begin() and Serial.println() but I see nothing in my Serial Monitor (Platformio). What could the problem be?

I am using 115200 as monitoring speed (configured in platformio.ini) and my Serial monitor is configured with the same rate.

I am using the demo code below:

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This program reads 16 input states from a PCF8575 I/O expander and
* controls a corresponding 16-channel relay module. When an input pin
* is LOW, the corresponding relay is turned ON (LOW means ON for the relay).
* When the input pin is HIGH, the corresponding relay is turned OFF.
*
* Pin Definitions:
* - SDA: GPIO 11
* - SCL: GPIO 12
* - Input I2C Address: 0x24
* - Relay I2C Address: 0x25
*/

#include <Wire.h>        // I2C communication
#include <PCF8575.h>     // Library to control the PCF8575 I/O expander

// Define I2C pins
#define SDA 11           // SDA pin
#define SCL 12           // SCL pin

// I2C addresses
#define INPUT_I2C_ADDRESS 0x24   // I2C address for the input PCF8575 module
#define RELAY_I2C_ADDRESS 0x25   // I2C address for the relay PCF8575 module

PCF8575 pcf8575_IN(INPUT_I2C_ADDRESS);    // Create an object for the input PCF8575
PCF8575 pcf8575_RL(RELAY_I2C_ADDRESS);    // Create an object for the relay PCF8575

void setup() {
  // Initialize I2C communication
  Wire.begin(SDA, SCL);

  // Initialize serial communication
  Serial.begin(115200);

  // Initialize input and relay modules
  pcf8575_IN.begin();
  pcf8575_RL.begin();

  // Turn off all relays at the start
  for (int i = 0; i < 16; i++) {
    pcf8575_RL.write(i, LOW);  // Assuming relays are LOW when OFF, setting all relays to OFF initially
  }

  Serial.println("System started: Input state controlling 16 relays");
}

void loop() {
  uint16_t inputState = 0;

  // Read the state of 16 inputs
  for (int i = 0; i < 16; i++) {
    if (pcf8575_IN.read(i)) {
      inputState |= (1 << i);  // If input is HIGH, set the corresponding bit
    } else {
      inputState &= ~(1 << i); // Otherwise, clear the corresponding bit
    }
  }

  Serial.println("Test Point...");

  // Control the relays based on the input state
  for (int i = 0; i < 16; i++) {
    if (inputState & (1 << i)) {
      pcf8575_RL.write(i, HIGH);  // If input is HIGH, turn the relay OFF
    } else {
      pcf8575_RL.write(i, LOW);   // If input is LOW, turn the relay ON
    }
  }

  // Delay for 500 milliseconds
  delay(500);
}


Thanks

Print this item

  RF with KCS-firmware
Posted by: jve91 - 04-29-2025, 05:57 PM - Forum: F16 - Replies (1)

Tried to copy some RF-remotes i had laying around.
I go the RF-page and hit the "learn" button. all i got is a timeout.

Is there anything that needs to be done first to receive the RF-signals?
I tried this running v3.9.1.

Print this item

  Does the KC868-A6 V1.4 board provide a 5V output for DS18B20 sensors?
Posted by: GetBK - 04-29-2025, 12:04 PM - Forum: KC868-A6 - Replies (1)

Hi everyone,
I'm using the Kincony KC868-A6 V1.4 board and planning to connect several DS18B20 temperature sensors. I know these sensors can work with 3.3V, but they tend to be more stable with a 5V power supply—especially when using longer cables.
Does this board provide a dedicated 5V output pin that I can use to power the DS18B20 sensors? If so, where exactly can I find it on the board?
Any help or insights would be greatly appreciated!
Thanks in advance!

Print this item

Exclamation Problems wifi / ESPHome?
Posted by: S.Krans - 04-29-2025, 10:59 AM - Forum: KC868-A128 - Replies (9)

Can somebody test my code my wifi is dropping and cant connect to it after the update esphome


ESPHome Device Builder 
Current version: 2025.4.1

Home Assistant
Core 2025.4.4
Supervisor 2025.04.1
Operating System 15.2
Frontend 20250411.0

Network 
UniFi OS 4.2.9
Network 9.0.114



Attached Files
.txt   koi-rk-kincony-kc868-a128_logs.txt (Size: 12.57 KB / Downloads: 345)
.txt   default-code.txt (Size: 618 bytes / Downloads: 333)
.txt   full code.txt (Size: 40.64 KB / Downloads: 316)
Print this item

  PlatformIO Programming
Posted by: joe.sfeir@gmail.com - 04-29-2025, 10:25 AM - Forum: T16M - Replies (1)

Hi, NooB Here.

Trying to program the ESP32 in PlatformIO:

1. Which ESP32 S3 chip should I configure when creating the project in PlatformIO?

2. How do I make it connect to upload? Do I need to hold a button before uploading? I tried holding the DL button but it didn't connect. Same for the RST button.

Thanks

Print this item

  Relay type - Can I use DC?
Posted by: polarkreis - 04-28-2025, 05:41 PM - Forum: KC868-A32/A32 Pro - Replies (1)

Can I use 24V DC instead of 230V AC on relays?

I would like to use them to activate my 24VDC activated contactor (and then contactor would let 230V AC to pass through).

Print this item

  KC868-A6 PCB layout CAD file
Posted by: admin - 04-28-2025, 12:46 PM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

KC868-A6 PCB layout CAD file



Attached Files
.zip   KC868_A6_V104SP.zip (Size: 255.69 KB / Downloads: 706)
Print this item

  KC868-A4 PCB layout CAD file
Posted by: admin - 04-28-2025, 12:44 PM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

KC868-A4 PCB layout CAD file



Attached Files
.zip   KC868-A4-V1.2.6-20250410.zip (Size: 436.78 KB / Downloads: 576)
Print this item