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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,843
» Latest member: nate922
» Forum threads: 3,868
» Forum posts: 19,756

Full Statistics

Online Users
There are currently 33 online users.
» 0 Member(s) | 22 Guest(s)
Amazonbot, Bytespider, PetalBot, bot

Latest Threads
N30 wire case diagram for...
Forum: N30
Last Post: admin
8 hours ago
» Replies: 0
» Views: 4
N30 wire case diagram for...
Forum: N30
Last Post: admin
8 hours ago
» Replies: 0
» Views: 7
Incoming SMS not reported...
Forum: G1
Last Post: JCh
Yesterday, 02:15 PM
» Replies: 5
» Views: 171
"KCS" v3.24.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 12:02 AM
» Replies: 2
» Views: 235
RS485 Modbus SHT30 sensor...
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 12:01 AM
» Replies: 1
» Views: 21
Bulk IFTTT mapping
Forum: "KCS" v3 firmware
Last Post: npekpacHo
03-28-2026, 08:55 AM
» Replies: 2
» Views: 270
Connecting Nextion NX3224...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
03-28-2026, 01:38 AM
» Replies: 1
» Views: 24
Very Low Volume even at M...
Forum: KinCony AS
Last Post: MartinBanner
03-26-2026, 11:23 PM
» Replies: 0
» Views: 22
AS-ESP32-S3 won't initial...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: MartinBanner
03-26-2026, 11:03 PM
» Replies: 10
» Views: 349
N60 N30 N20 N10 ARM CPU f...
Forum: N30
Last Post: admin
03-26-2026, 10:05 PM
» Replies: 6
» Views: 102

  KC868-A8v3 ModBus Temp. Sensor
Posted by: JuDie07 - 11-05-2025, 09:54 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hello, can I read and display an "RS485 Temperature and Humidity Sensor Modbus RTU Use By SHT30" using KCS v3 (3.15.0)?
Under Sensors “Type,” I can only set TR (RS485) and TS (RS485).

Print this item

  KC868-A6 Flow Control
Posted by: Edomicianoa - 11-04-2025, 04:47 PM - Forum: KC868-A6 - Replies (3)

Prezada Equipe de Suporte Técnico da KinCony,
Estou usando a placa de automação residencial inteligente KC868-A6 V1 4SP .
Preciso saber se é possível usar o controle de fluxo de hardware RTS/CTS (Request To Send / Clear To Send) nas portas seriais RS232 e/ou RS485 integradas .

  • Em caso afirmativo: Poderia especificar quais pinos da placa estão atribuídos aos sinais RTS e CTS para as interfaces RS232 e/ou RS485?
  • Caso a resposta seja NÃO: Você poderia recomendar um modelo alternativo de placa KinCony que suporte o controle de fluxo de hardware RTS/CTS por meio de sua interface RS232?
Agradecemos imensamente sua ajuda para esclarecer as capacidades de hardware da placa KC868-A6.
Muito obrigado, Smile

Print this item

  D16 Dimmer - Set memory value without turning on via MQTT?
Posted by: stansvec - 11-04-2025, 08:48 AM - Forum: KC868-HxB series Smart Controller - Replies (6)

Hello,
Is there an MQTT command to update the D16 dimmer's stored brightness memory value WITHOUT actually turning on the dimmer?

Current behavior:

  • Send
    Code:
    {"dimmer1": {"value": 50}}
    → Light turns on at 50%
  • Send
    Code:
    {"dimmer1": {"value": 0}}
    → Light turns off, hardware remembers 50%
  • Physical button press → Light restores to 50%

What I need:
  • While dimmer is OFF, update the stored memory to a different value (e.g., 30%)
  • So next physical button press turns on at 30%, not 50%
  • Without the light briefly flashing on

Is there a command like
Code:
{"dimmer1": {"memory": 30}}
or similar that only updates the stored value?

Thanks!

Print this item

  WHATS FIRMWARE
Posted by: kamarguinho - 11-03-2025, 11:46 PM - Forum: "KCS" v3 firmware - Replies (7)

Hello, it's been 4 days since this motherboard arrived and I'm trying to get this KC868 E16T-V1.2 working because the access point option doesn't appear. I tried connecting it via cable to see if I could find it on the network, but without success. I can only see it through the USB cable, so I'd like to know which firmware I can install and a step-by-step guide to get it working using Tuya.        

Print this item

  [arduino code examples for F4]-11 digital INPUT trigger OUTPUT directly
Posted by: admin - 11-03-2025, 11:45 PM - Forum: F4 - No Replies

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

#include <Wire.h>
#include <PCF8574.h>

// I2C pins
#define SDA 8
#define SCL 18

// PCF8575 I2C address
#define INPUT_I2C_ADDRESS 0x24   

// Create PCF8575 object
PCF8574 pcf8574_IN(INPUT_I2C_ADDRESS);

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

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

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

  // Initialize PCF8575
  pcf8574_IN.begin();

  // Turn off all relays first (assuming LOW activates the relay)
  for (int i = 4; i < 8; i++) {
    pcf8574_IN.digitalWrite(i, HIGH);  // Set to HIGH to turn off the relay
  }

  delay(50);
}

void loop() {

  if (pcf8574_IN.digitalRead(0)) pcf8574_IN.digitalWrite(4, HIGH); else pcf8574_IN.digitalWrite(4, LOW);
  delay(50);
  if (pcf8574_IN.digitalRead(1)) pcf8574_IN.digitalWrite(5, HIGH); else pcf8574_IN.digitalWrite(5, LOW);       
  delay(50);
  if (pcf8574_IN.digitalRead(2)) pcf8574_IN.digitalWrite(6, HIGH); else pcf8574_IN.digitalWrite(6, LOW);
  delay(50);
  if (pcf8574_IN.digitalRead(3)) pcf8574_IN.digitalWrite(7, HIGH); else pcf8574_IN.digitalWrite(7, LOW);
  delay(50);
}
arduino ino file download:

.zip   11-input-trigger-output.zip (Size: 846 bytes / Downloads: 179)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   11-input-trigger-output.ino.merged.zip (Size: 199.41 KB / Downloads: 190)

Print this item

  [arduino code examples for F4]-02 Read digital input ports state
Posted by: admin - 11-03-2025, 11:41 PM - Forum: F4 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* Description:
* This Arduino program reads the state of a 16-channel PCF8574 I/O expander
* and prints the state of all input pins to the Serial Monitor. The state of
* each pin is represented as a bit in a 8-bit value, where each bit corresponds
* to an input pin. The program prints the input state in binary format.
*
* Pin Definitions:
* - SDA: GPIO 21
* - SCL: GPIO 22
* - PCF8575 I2C Address: 0x24
*/

#include "Arduino.h"
#include "PCF8574.h"

// Define I2C pins
#define I2C_SDA 8  // Define SDA pin
#define I2C_SCL 18  // Define SCL pin

// Set I2C address
PCF8574 pcf8574_IN1(0x24); // The I2C address of the PCF8575

void setup() {
    Serial.begin(115200);

    // Initialize I2C communication
    Wire.begin(I2C_SDA, I2C_SCL); // Initialize I2C with defined SDA and SCL pins

    pcf8574_IN1.pinMode(P0, INPUT);
    pcf8574_IN1.pinMode(P1, INPUT);
    pcf8574_IN1.pinMode(P2, INPUT);
    pcf8574_IN1.pinMode(P3, INPUT);

    pcf8574_IN1.begin(); // Initialize the PCF8575

    Serial.println("KinCony F4 4 channel input state 0:ON  1:OFF");
}

void loop() {
    uint16_t state = 0;

    // Read the state of each pin (assuming 16 pins)
    for (int pin = 0; pin < 4; pin++) {
        if (pcf8574_IN1.digitalRead(pin)) {
            state |= (1 << pin); // Set the bit for the active pin
        }
    }

    Serial.print("Input state: ");
    Serial.println(state, BIN); // Print the state of inputs in binary

    delay(500); // Delay 500ms
}
arduino ino file download:

.zip   2-digital-input.zip (Size: 879 bytes / Downloads: 174)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   2-digital-input.ino.merged.zip (Size: 199.53 KB / Downloads: 200)

Print this item

  [arduino code examples for F4]-01 Turn ON/OFF relay
Posted by: admin - 11-03-2025, 11:40 PM - Forum: F4 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This program controls a 8-channel relay board via a PCF8574 I/O expander.
* It sequentially turns on each relay and then turns them off in a loop.
*
* Pin Definitions:
* - SDA: GPIO 8
* - SCL: GPIO 18
*
* Delay Time:
* - 200 milliseconds between switching relays
*/

#include <Wire.h>        // Include the Wire library for I2C communication
#include <PCF8574.h>     // Include the PCF8575 library to control the I/O expander

#define SDA 8            // Define the SDA pin
#define SCL 18           // Define the SCL pin
#define DELAY_TIME 200   // Define the delay time in milliseconds

// Set I2C address of the PCF8575 module
#define I2C_ADDRESS 0x24 // I2C address of the PCF8575 module

PCF8574 pcf8574_R1(I2C_ADDRESS); // Create a PCF8575 object with the specified I2C address

void setup() {
  // Initialize I2C communication
  Wire.begin(SDA, SCL); // SDA on GPIO 8, SCL on GPIO 18 (according to your board's configuration)
 
  // Initialize serial communication for debugging (optional)
  Serial.begin(115200);
  Serial.println("PCF8575 Relay Control: Starting...");

    pcf8574_R1.pinMode(P4, OUTPUT);
  pcf8574_R1.pinMode(P5, OUTPUT);
  pcf8574_R1.pinMode(P6, OUTPUT);
  pcf8574_R1.pinMode(P7, OUTPUT);

  // Initialize the PCF8575 module
  pcf8574_R1.begin();

  // Turn off all relays initially (set all pins HIGH)
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, HIGH); // Set all relays to OFF (assuming HIGH means OFF for relays)
  }
}

void loop() {
  // Sequentially turn on each relay
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, LOW);   // Turn on the relay at pin i (LOW means ON for the relay)
    delay(DELAY_TIME);          // Wait for DELAY_TIME milliseconds
  }

  // Sequentially turn off each relay
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, HIGH);  // Turn off the relay at pin i (HIGH means OFF for the relay)
    delay(DELAY_TIME);          // Wait for DELAY_TIME milliseconds
  }
}
arduino ino file download:

.zip   1-relay.zip (Size: 964 bytes / Downloads: 182)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-relay.ino.merged.zip (Size: 199.39 KB / Downloads: 187)

Print this item

  F4 ESPHome yaml for home assistant with tuya
Posted by: admin - 11-03-2025, 11:39 PM - Forum: F4 - No Replies

Code:
esphome:
  name: f4
  friendly_name: f4
  platformio_options:
    board_build.extra_flags:
      # WIFI_CONTROL_SELF_MODE = 0
      # WIFI_CONTROL_SELF_MODE = 1
      - "-DWIFI_CONTROL_SELF_MODE=1"
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
   

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-wifi-mcu
      ref: v1.3.0

# Enable logging

  # hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:
  encryption:
    key: "WeVOuL5oNhjXcfzXtTirlOwvtWvCD5yqIxd3oV4es1k="

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1

i2c:
   - id: bus_a
     sda: 8
     scl: 18
     scan: true
     frequency: 400kHz

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for DI1-DI4 Relay1-Relay4
    i2c_id: bus_a
    address: 0x24

uart:
  - id: uart_1    #RS485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 16
    rx_pin: 17

  - id: tuya_mcu_uart
    tx_pin: GPIO39
    rx_pin: GPIO38
    baud_rate: 9600

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: nnr2qbxrwuleqqgc
  uart_id: tuya_mcu_uart
  wifi_reset_pin: 28
  wifi_led_pin: 16

switch:
  - platform: uart
    uart_id: uart_1
    name: "RS485 Button"
    data: [0x11, 0x22, 0x33, 0x44, 0x55]

  - platform: gpio
    name: "f4-output01"
    id: "f4_output01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output01"

  - platform: gpio
    name: "f4-output02"
    id: "f4_output02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output2-tuya
    dp_id: 2
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output02"

  - platform: gpio
    name: "f4-output03"
    id: "f4_output03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output3-tuya
    dp_id: 3
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output03"

  - platform: gpio
    name: "f4-output04"
    id: "f4_output04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output4-tuya
    dp_id: 4
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output04"

binary_sensor:
  - platform: gpio
    name: "f4-input01"
    id: "f4_input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input1-tuya
    dp_id: 111
    bind_binary_sensor_id: f4_input01
    internal: true

  - platform: gpio
    name: "f4-input02"
    id: "f4_input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input2-tuya
    dp_id: 112
    bind_binary_sensor_id: f4_input02
    internal: true

  - platform: gpio
    name: "f4-input03"
    id: "f4_input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input3-tuya
    dp_id: 113
    bind_binary_sensor_id: f4_input03
    internal: true

  - platform: gpio
    name: "f4-input04"
    id: "f4_input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input4-tuya
    dp_id: 114
    bind_binary_sensor_id: f4_input04
    internal: true

##pull-up resistance on PCB
  - platform: gpio
    name: "f4-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "f4-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "f4-W1-io21"
    pin:
      number: 21
      inverted: true

  - platform: gpio
    name: "f4-W1-io15"
    pin:
      number: 15
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "f4-W1-io14"
    pin:
      number: 14
      inverted:  false

  - platform: gpio
    name: "f4-433M"
    pin:
      number: 40
      inverted:  false

  - platform: gpio
    name: "f4-io0"
    pin:
      number: 0
      inverted:  false

sensor:
  - platform: adc
    pin: 5
    name: "f4 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;
          }
  - platform: adc
    pin: 7
    name: "f4 A2 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 6
    name: "f4 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 4
    name: "f4 A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

web_server:
  port: 80

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "KinCony f4");
esphome yaml file:

.txt   F4-HA-tuya.txt (Size: 6.04 KB / Downloads: 150)

Print this item

  F4 ESPHome yaml for home assistant without tuya
Posted by: admin - 11-03-2025, 11:38 PM - Forum: F4 - No Replies

Code:
esphome:
  name: f4
  friendly_name: f4

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
   
# Enable logging

  # hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1

i2c:
   - id: bus_a
     sda: 8
     scl: 18
     scan: true
     frequency: 400kHz

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for DI1-DI4 Relay1-Relay4
    i2c_id: bus_a
    address: 0x24

uart:
  - id: uart_1    #RS485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 16
    rx_pin: 17


switch:
  - platform: uart
    uart_id: uart_1
    name: "RS485 Button"
    data: [0x11, 0x22, 0x33, 0x44, 0x55]

  - platform: gpio
    name: "f4-output01"
    id: "f4_output01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "f4-output02"
    id: "f4_output02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "f4-output03"
    id: "f4_output03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "f4-output04"
    id: "f4_output04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: "f4-input01"
    id: "f4_input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "f4-input02"
    id: "f4_input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "f4-input03"
    id: "f4_input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "f4-input04"
    id: "f4_input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true


##pull-up resistance on PCB
  - platform: gpio
    name: "f4-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "f4-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "f4-W1-io21"
    pin:
      number: 21
      inverted: true

  - platform: gpio
    name: "f4-W1-io15"
    pin:
      number: 15
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "f4-W1-io14"
    pin:
      number: 14
      inverted:  false

  - platform: gpio
    name: "f4-433M"
    pin:
      number: 40
      inverted:  false

  - platform: gpio
    name: "f4-io0"
    pin:
      number: 0
      inverted:  false

sensor:
  - platform: adc
    pin: 5
    name: "f4 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;
          }
  - platform: adc
    pin: 7
    name: "f4 A2 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 6
    name: "f4 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 4
    name: "f4 A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

web_server:
  port: 80

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "KinCony f4");
esphome yaml file:

.txt   F4-HA-without-tuya.txt (Size: 4.2 KB / Downloads: 139)

Print this item

  F4 ESP32-S3 IO pins define
Posted by: admin - 11-03-2025, 11:36 PM - Forum: F4 - No Replies

ANALOG_A1(0-5v)    GPIO5
ANALOG_A2(0-5v)    GPIO7
ANALOG_A3(4-20mA)  GPIO6
ANALOG_A4(4-20mA)  GPIO4

IIC SDA:GPIO8
IIC SCL:GPIO18

PCF8574:U23  i2c address:0x24

PCF8574->P0 (DI1)
PCF8574->P1 (DI2)
PCF8574->P2 (DI3)
PCF8574->P3 (DI4)

PCF8574->P4 (relay1)
PCF8574->P5 (relay2)
PCF8574->P6 (relay3)
PCF8574->P7 (relay4)

RF433MHz wireless receiver: GPIO40
------------------------

Ethernet (W5500) I/O define:

clk_pin: GPIO42
mosi_pin: GPIO43
miso_pin: GPIO44
cs_pin: GPIO41

interrupt_pin: GPIO2
reset_pin: GPIO1

--------------------
RS485:
RXD:GPIO17
TXD:GPIO16
--------------------
Tuya module:
RXD:GPIO38
TXD:GPIO39

Tuya network button: Tuya module's P28
Tuya network LED: Tuya module's P16

---------------------
1-wire (pull-up resistance on PCB):
1-wire1:GPIO48
1-wire2:GPIO47
1-wire3:GPIO21
1-wire4:GPIO15

1-wire (without resistance on PCB):
1-wire2:GPIO14
------------------------
SD Card:
SPI-MOSI:GPIO10
SPI-SCK:GPIO11
SPI-MISO:GPIO12
SPI-CS:GPIO9
SPI-CD:GPIO13
------------------------
24C02 EPROM i2c address: 0x50
DS3231 RTC i2c address: 0x68
SSD1306 display: i2c address:0x3c

Print this item