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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,367
» Latest member: johnkalvinsmith
» Forum threads: 2,574
» Forum posts: 13,305

Full Statistics

Online Users
There are currently 45 online users.
» 0 Member(s) | 32 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot

Latest Threads
change wake up name
Forum: KinCony AS
Last Post: gal
3 hours ago
» Replies: 12
» Views: 72
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
4 hours ago
» Replies: 17
» Views: 180
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
7 hours ago
» Replies: 32
» Views: 390
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
11 hours ago
» Replies: 10
» Views: 60
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
11 hours ago
» Replies: 7
» Views: 45
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
11 hours ago
» Replies: 2
» Views: 163
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
11 hours ago
» Replies: 1
» Views: 20
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 446
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 34
M16 SHT31 sensor disconne...
Forum: KC868-M16 / M1 / MB / M30
Last Post: bsarra
12-16-2024, 08:36 PM
» Replies: 4
» Views: 38

  KC868-A16 & ds18b20
Posted by: Wickfut - 09-23-2024, 01:48 PM - Forum: KC868-A series and Uair Smart Controller - Replies (11)

Can someone help me with a connection and code for a ds18b20 to a KC868-A16

Thank you,

Chris

Print this item

  UDP,TCP Server,TCP Client means in network setting
Posted by: dorishuntt - 09-23-2024, 07:04 AM - Forum: KC868-HxB series Smart Controller - No Replies

UDP: Controller power on will auto connect to KinCony's cloud server. This is use for "KinCony Smart Home" phone app. work need internet.
TCP Server: Controller is a server running on local network . This is use for "KBOX" phone app. work without internet.

Print this item

  how to turn on relay by SIM7600E 4G module voice call in ESPHome
Posted by: admin - 09-23-2024, 02:08 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (12)

   
   

Code:
esphome:
  name: a2

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "YnmQggQsfd7jvFefoMqNCpBtb63RXtotS+mSBQVIhY8="

# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

switch:
  - platform: gpio
    name: "a2-light1"
    pin: 15
    inverted: False
    id: relay_1  # Assign ID to relay 1

  - platform: gpio
    name: "a2-light2"
    pin: 2
    inverted: False

binary_sensor:
  - platform: gpio
    name: "a2-input1"
    pin:
      number: 36
      inverted: true

  - platform: gpio
    name: "a2-input2"
    pin:
      number: 39
      inverted: true

web_server:
  port: 80

# UART configuration for SIM7600E
uart:
  id: uart_2
  tx_pin: GPIO5
  rx_pin: GPIO13
  baud_rate: 115200

interval:
  - interval: 200ms  # Shorten the interval to reduce blocking time
    then:
      - lambda: |-
          static std::string uart_buffer;
          uint8_t c;
          int count = 0;
          const int max_reads = 10;  // Limit the number of bytes read per interval

          while (id(uart_2).available() && count < max_reads) {
            if (id(uart_2).read_byte(&c)) {
              uart_buffer += (char)c;
              count++;

              // Log each received character (optional for debugging)
              ESP_LOGD("UART", "Received: %c", (char)c);

              // Check if we have received the "RING" signal
              if (uart_buffer.find("RING") != std::string::npos) {
                ESP_LOGI("SIM7600", "Incoming call detected, turning on relay 1.");
                id(relay_1).turn_on();  // Turn on relay 1
                uart_buffer.clear();  // Clear the buffer after processing
              }

              // Clear the buffer if it gets too large
              if (uart_buffer.length() > 100) {
                uart_buffer.clear();
              }
            }
          }
ESPHome yaml file for KC868-A2 board download: 
.txt   A2-yaml-sim7600-call-relay.txt (Size: 2.02 KB / Downloads: 44)

Print this item

  rs232 problem
Posted by: alex989 - 09-22-2024, 04:08 PM - Forum: KC868-A6 - Replies (22)

Hi,
I'm trying to use the rs232 port of the board but I'm some trouble.
to test it i have done a bridge from pin 2 and 3 of dsub connector and seems that the bytes that send doesn't been received.
i attach an other rs232 module in the same pin and with this module the bytes that send also been received.
seems that is the rs232 module of the board that have some problem

Print this item

  "KCS" v2.4.10 firmware for M30 AC Energy Meter
Posted by: admin - 09-22-2024, 05:29 AM - Forum: "KCS" firmware system - No Replies

2.4.10 improment:
support multi M30 boards work in home assistant by MQTT auto discovery.
   
ESP32 firmware download:
.zip   KCS_M30_V2.4.10.zip (Size: 735 KB / Downloads: 73)

Print this item

  [arduino code examples for A32 Pro]-12 How to use DHT11 temperature humidity sensor
Posted by: admin - 09-20-2024, 05:12 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
/*
*  Made by KinCony IoT: https://www.kincony.com

*  This program reads temperature and humidity values from a DHT11 sensor
*  connected to GPIO2 of an ESP32 board, and prints the readings to the serial monitor.

*  The DHT11 sensor measures the relative humidity and temperature in the environment.
*  This data is then read by the ESP32 and displayed in the serial monitor.
*
*  Requirements:
*  - ESP32 microcontroller
*  - DHT11 temperature and humidity sensor
*  - DHT sensor library by Adafruit (Install in Arduino IDE)
*
*  Connections:
*  - DHT11 Data Pin -> GPIO2 on ESP32
*  - DHT11 VCC Pin -> 3.3V on ESP32
*  - DHT11 GND Pin -> GND on ESP32
*/

#include <DHT.h>  // Import the DHT library

// Define the GPIO pin where the DHT11 sensor is connected
#define DHTPIN 2       // DHT11 data pin is connected to GPIO2 on ESP32

// Define the type of DHT sensor being used (DHT11)
#define DHTTYPE DHT11  // DHT11 sensor type

// Create a DHT object to read temperature and humidity
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  // Initialize serial communication for debugging at a baud rate of 115200
  Serial.begin(115200);
  Serial.println("DHT11 Sensor Test - Made by KinCony IoT: https://www.kincony.com");

  // Initialize the DHT sensor
  dht.begin();
}

void loop() {
  // Wait for 2 seconds between each reading to ensure stable data
  delay(2000);

  // Read humidity value from the DHT11 sensor
  float humidity = dht.readHumidity();
 
  // Read temperature value from the DHT11 sensor in Celsius
  float temperature = dht.readTemperature();

  // Check if there was an error reading the data
  if (isnan(humidity) || isnan(temperature)) {
    // Print error message if the sensor reading failed
    Serial.println("Failed to read from DHT11 sensor!");
    return;  // Exit loop iteration and try again after delay
  }

  // Print the humidity value to the serial monitor
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%");

  // Print the temperature value to the serial monitor
  Serial.print("  Temperature: ");
  Serial.print(temperature);
  Serial.println("°C");
}

arduino ino file download: 
.zip   12-DHT11-temperature-humidity.zip (Size: 1.05 KB / Downloads: 33)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: 
.zip   12-DHT11-temperature-humidity.ino.merged.zip (Size: 180.83 KB / Downloads: 36)
   

Print this item

  USB ports
Posted by: BaconRanch - 09-19-2024, 09:20 PM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (2)

Hello,

 am trying to use a 2.4 Gz USB keyboard on the device and its just now shgowing up.  I have tried all 4 ports and re-bvooted device each attempt with no luck. Most R Pi 4s have 2 blue USB and 2 black but mine are all black.  I have looked ubder Settings >System>Hardware>All HARDWARE and there are no ebtries indicating an USB ports and definitely nothing looking like a wireless keyboard.  Tje CM4 is wells seated, not a connection issue.  My keyboard works on a windows PC and an Android TV box perfectly, its not the issue.

Any ideas please?

Thank you,
Mark Young

Print this item

  PWM support?
Posted by: luis15pt - 09-19-2024, 06:10 PM - Forum: KC868-A16 - Replies (11)

I have a  KC868-A16 would it be possible to control a standard computer fan 12v that has PWM ? i know there are some GPIO ports, im assuming i have to configure one of these as PWM, how do i find out which ones they represent on the actual board? The next question is how do i monitor the RPM form the fan and where do i connect and configure it ?
[Image: rRuk1Q4.png]
[Image: sh-07-sensors.jpg]

Print this item

  KC868-AG RF - sending repeated signals
Posted by: PhilW - 09-18-2024, 12:29 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

I'm new to this HW, so maybe I'm missing something.

I have a remote 433mhz that I "learned" on the Web UI.

When I transmit the signal, it is being sent around 5 times, triggering the receiving device to turn on and off and on again etc.
Basically, the device (ventilator) beeps when it gets a signal, and I'm hearing around 5 beeps.

Is there any way to configure this behavior?

Or should I flash the device with a different fimware? Can I just flash esphome on it - and hope to fix this somehow that way?

Current firmware: v2.2.4

Print this item

  Usar entradas y oled i2c juntos
Posted by: sistemasyusa - 09-18-2024, 02:49 AM - Forum: KC868-A6 - Replies (4)

Buenas tardes 

Quiero usar las entradas y al mismo tiempo una pantalla  oled i2c, pero no logro usarlo en conjunto correctamente, veo el código de ejemplo de entradas y ahí viene esto:

PC8574. pc8564(0x22,4,15)

Y en el código de ejemplo de OLED viene lo siguiente :

U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, 15, 4, U8X8_PIN_NONE);//SCL IO15 SDA IO4

y el error que hace es que siempre manda indicar que la entrada se activo cuando junto tanto un codigo como el otro 

Agradecería su apoyo 


Anexo código completo



Attached Files Thumbnail(s)
   

.zip   DEMO_KC868_15_OLED_input.zip (Size: 2.12 KB / Downloads: 38)
Print this item