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 26 online users.
» 1 Member(s) | 9 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

  KC868-A6v3 ESPHome yaml for home assistant
Posted by: admin - 02-15-2025, 05:43 AM - Forum: KC868-A6v3 - No Replies

Code:
esphome:
  name: a6v3
  friendly_name: a6v3

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:

wifi:
  ssid: "KinCony"
  password: "a12345678"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "A6 Fallback Hotspot"
    password: "GLdHSsZr1p96"

captive_portal:

i2c:
  sda: 12
  scl: 11
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

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

  - id: uart_2    #RS232
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 9
    rx_pin: 10

switch:
  - platform: gpio
    name: "A6v3-output1"
    id: a6v3_output1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "A6v3-output2"
    id: a6v3_output2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "A6v3-output3"
    id: a6v3_output3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "A6v3-output4"
    id: a6v3_output4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "A6v3-output5"
    id: a6v3_output5
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "A6v3-output6"
    id: a6v3_output6
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

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

  - platform: uart
    uart_id: uart_2
    name: "RS232 Button"
    data: [0x55, 0x66, 0x77, 0x88, 0x99]

binary_sensor:
  - platform: gpio
    name: "A6v3-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A6v3-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A6v3-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A6v3-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A6v3-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A6v3-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true


##pull-up resistance on PCB
  - platform: gpio
    name: "A6v3-W1-io15"
    pin:
      number: 15
      inverted: true

  - platform: gpio
    name: "A6v3-W1-io16"
    pin:
      number: 16
      inverted: true

  - platform: gpio
    name: "A6v3-W1-DW"
    pin:
      number: 0
      inverted: true


sensor:
  - platform: adc
    pin: 4
    name: "A6v3 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: 5
    name: "A6v3 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: "A6v3 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 7
    name: "A6v3 A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

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 A6v3");

gp8403:
  id: my_gp8403
  voltage: 10V

output:
  - platform: gp8403
    id: gp8403_output_1
    gp8403_id: my_gp8403
    channel: 0
  - platform: gp8403
    id: gp8403_output_2
    gp8403_id: my_gp8403
    channel: 1

light:
  - platform: monochromatic
    name: "A6v3-DAC-1"
    output: gp8403_output_1

  - platform: monochromatic
    name: "A6v3-DAC-2"
    output: gp8403_output_2

web_server:
  port: 80
esphome yaml file download:
.txt   A6v3-HA.txt (Size: 5.11 KB / Downloads: 108)

Print this item

  KC868-A6v3 ESP32-S3 IO pins define
Posted by: admin - 02-15-2025, 05:42 AM - Forum: KC868-A6v3 - No Replies

ANALOG_A1  GPIO4
ANALOG_A2  GPIO5
ANALOG_A3  GPIO6
ANALOG_A4  GPIO7

1-wire (pull-up resistance on PCB):
1-wire1:GPIO15
1-wire2:GPIO16

GP8403 DAC i2c address: 0x58

IIC SDA:GPIO12
IIC SCL:GPIO11

Input_IIC_address 0x22
Relay_IIC_address 0x24

RS485 RXD: GPIO18
RS485 TXD: GPIO17

SPI_Bus: (For LoRA/nRF24L01)
CS: GPIO38
MOSI: GPIO43
MISO: GPIO44
SCK: GPIO39

LoRA sx1278:
RST:GPIO42
DIO0:GPIO41

nRF24L01:
CE: GPIO40

RS232:
TXD:GPIO9
RXD:GPIO10

free GPIO on PCB (beside ESP32-S3 module)
GPIO8
GPIO13
GPIO14
GPIO21
GPIO47
GPIO48

Print this item

  "KCS" v3 firmware HTTP protocol document
Posted by: admin - 02-15-2025, 04:04 AM - Forum: "KCS" v3 firmware - No Replies

Note: This protocol document use for KinCony ESP32-S3 smart controller:
you need to download KCS v3 firmware to ESP32-S3 firstly.
Different board will have different channel of digital output, digital input , ADC, DAC,IR, RF. So the protocol is same , just according to the hardware resource to set channel number.
protocol document download:
.pdf   KCSv3-protocol-HTTP.pdf (Size: 308.71 KB / Downloads: 86)

Print this item

  "KCS" v3 firmware STRING protocol document
Posted by: admin - 02-15-2025, 04:01 AM - Forum: "KCS" v3 firmware - No Replies

Note: This protocol document use for KinCony ESP32-S3 smart controller:
you need to download KCS v3 firmware to ESP32-S3 firstly.
Different board will have different channel of digital output, digital input , ADC, DAC,IR, RF. So the protocol is same , just according to the hardware resource to set channel number.
protocol document download:
.pdf   KCSv3-protocol-String.pdf (Size: 282.08 KB / Downloads: 65)
for IR commands:
   
   

Print this item

  "KCS" v3 firmware MQTT protocol document
Posted by: admin - 02-15-2025, 03:49 AM - Forum: "KCS" v3 firmware - No Replies

Note: This protocol document use for KinCony ESP32-S3 smart controller:
you need to download KCS v3 firmware to ESP32-S3 firstly.
Different board will have different channel of digital output, digital input , ADC, DAC,IR, RF. So the protocol is same , just according to the hardware resource to set channel number.
protocol document download:
.pdf   KCSv3-protocol-MQTT.pdf (Size: 278.41 KB / Downloads: 28)
for IR commands:
   
   
   

Print this item

  "KCS" v3 firmware Modbus protocol document
Posted by: admin - 02-15-2025, 03:32 AM - Forum: "KCS" v3 firmware - No Replies

Note: This protocol document use for KinCony ESP32-S3 smart controller:
you need to download KCS v3 firmware to ESP32-S3 firstly.
Different board will have different channel of digital output, digital input , ADC, DAC,IR, RF. So the protocol is same , just according to the hardware resource to set channel number.

.pdf   KCSv3-protocol-ModBus.pdf (Size: 264.96 KB / Downloads: 65)
for IR commands:
   
   
   

Print this item

  "KCS" v3 firmware UDP STRING protocol document for Loxone Miniserver
Posted by: admin - 02-15-2025, 03:21 AM - Forum: "KCS" v3 firmware - No Replies

Protocol

1: control digital output (DO)
Loxone send to KCS: RELAY-SET-255,2,1  //turn ON DO2
KCS back to Loxone: RELAY-SET-255,2,1,OK
Loxone send to KCS: RELAY-SET-255,2,0  //turn OFF DO2
KCS back to Loxone: RELAY-SET-255,2,0,OK

2: digital output (DO) state feedback
KCS back to Loxone: RELAY-SET-255,3,1,OK //DO3 is ON
KCS back to Loxone: RELAY-SET-255,3,0,OK //DO3 is OFF

3: digital input (DI) state feedback
KCS back to Loxone: RELAY-GET_INPUT-255,4,1,OK  //DI4 is ON
KCS back to Loxone: RELAY-GET_INPUT-255,4,0,OK  //DI4 is OFF

4: control analog output (AO)
Loxone send to KCS: RELAY-SET_DAC_255,2,0  //channel 2 AO=0  0%
KCS back to Loxone: RELAY-SET_DAC_255,2,0,OK
Loxone send to KCS: RELAY-SET_DAC_255,3,255  //channel 3 AO=255 100%
KCS back to Loxone: RELAY-SET_DAC_255,3,255,OK

5: analog output (AO) state feedback
KCS back to Loxone: RELAY-GET_DAC_255,1,107,OK  //channel 1 AO=107
KCS back to Loxone: RELAY-GET_DAC_255,2,255,OK  //channel 2 AO=255

6: analog input (AI) state feedback
KCS back to Loxone: RELAY-GET_ADC-255,1,2670,OK  //channel1 ADC is 2670

7: RF433M receiver state feedback
KCS back to Loxone: RELAY-GET_RF-255,2,1,OK  //channel2 RF sensor is ON
KCS back to Loxone: RELAY-GET_RF-255,3,0,OK  //channel3 RF sensor is OFF

8: temperature & humidity sensor feedback
KCS back to Loxone:RELAY-GET_SENSOR-255,3,16.8,46.8,OK //channel3 sensor temperature=16.8℃ humidity=46.8%
KCS back to Loxone:RELAY-GET_SENSOR-255,4,27.8,-100,OK //channel4 sensor temperature=27.8℃ without humidity

9: Learn IR (MAX support 192 IR signals):
Loxone send to KCS: RELAY-IR-LEARN-255,1,2    // begin learn IR signal ID=1, send by IR tube-2
KCS back to Loxone: RELAY-IR-LEARN-255,1,OK  // success
KCS back to Loxone: RELAY-IR-LEARN-255,1,TIMEOUT  // timeout

10: Send IR
Loxone send to KCS: RELAY-IR-RUN-255,1  // send IR signal ID=1
KCS back to Loxone: RELAY-IR-RUN-255,1,OK

11: Delete IR
Loxone send to KCS: RELAY-IR-DEL-255,1  // delete learned IR signal ID=1
KCS back to Loxone: RELAY-IR-DEL-255,1,OK

download Loxone config demo project file from KinCony forum

Print this item

  "KCS" v3.7.0 firmware BIN file download
Posted by: admin - 02-15-2025, 03:18 AM - Forum: "KCS" v3 firmware - No Replies

v3.7.0 improvement:
1. add support KC868-A6v3, KC868-A16v3, AG8, T16M controller.
2. fixed some bugs.



Attached Files
.zip   KCS_A6V3_V3.7.0.zip (Size: 1 MB / Downloads: 67)
.zip   KCS_A16V3_V3.7.0.zip (Size: 1.08 MB / Downloads: 64)
.zip   KCS_A32PRO_V3.7.0.zip (Size: 1.04 MB / Downloads: 44)
.zip   KCS_AG8_V3.7.0.zip (Size: 1.03 MB / Downloads: 45)
.zip   KCS_B16M_V3.7.0.zip (Size: 1.07 MB / Downloads: 42)
.zip   KCS_F16_V3.7.0.zip (Size: 1.07 MB / Downloads: 42)
.zip   KCS_F24_V3.7.0.zip (Size: 1.07 MB / Downloads: 41)
.zip   KCS_T16M_V3.7.0.zip (Size: 1.02 MB / Downloads: 50)
Print this item

  KC868-A16v3 ESPHome yaml for home assistant
Posted by: admin - 02-15-2025, 03:01 AM - Forum: KC868-A16v3 - Replies (7)

Code:
esphome:
  name: a16v3
  friendly_name: a16v3
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

# Enable logging
logger:
  hardware_uart: USB_SERIAL_JTAG

api:

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

i2c:
   - id: bus_a
     sda: 9
     scl: 10
     scan: true
     frequency: 400kHz

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x22

uart:
  - id: uart_1
    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: "a16v3_output1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16v3_output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true


binary_sensor:

  - platform: gpio
    name: "a16v3_input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16v3_input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A16v3 IO47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "A16v3 IO48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "A16v3 IO38"
    pin:
      number: 38
      inverted: true

  - platform: gpio
    name: "A16v3 IO39"
    pin:
      number: 39
      inverted: true

  - platform: gpio
    name: "A16v3 IO40"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "A16v3 IO41"
    pin:
      number: 41
      inverted: true

  - platform: gpio
    name: "A16v3 DW"
    pin:
      number: 0
      inverted: true

sensor:
  - platform: adc
    pin: 4
    name: "A16v3 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: 6
    name: "A16v3 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: 7
    name: "A16v3 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 5
    name: "A16v3 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), "A16v3");
download yaml file: 
.txt   A16v3-ESPHome.txt (Size: 7.81 KB / Downloads: 183)

Print this item

  KC868-A16v3 ESP32-S3 IO pins define
Posted by: admin - 02-15-2025, 03:00 AM - Forum: KC868-A16v3 - No Replies

ANALOG_A1  4
ANALOG_A2  6
ANALOG_A3  7
ANALOG_A4  5

IIC Bus:

SDA:GPIO9
SCL:GPIO10

Relay_IIC_address 0x24
Relay_IIC_address 0x25

Input_IIC_address 0x21
Input_IIC_address 0x22

24C02 EPROM i2c address: 0x50
DS3231 RTC i2c address: 0x68
SSD1306 display: i2c address:0x3c

-----------------

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

free GPIOs (without pull-up resistance on PCB):
free gpio-1:GPIO39
free gpio-2:GPIO40
free gpio-3:GPIO41
-----------------

Ethernet (W5500) I/O define:

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

interrupt_pin: GPIO2
reset_pin: GPIO1

--------------------
RS485:
RXD:GPIO17
TXD:GPIO16

--------------------
SD Card:
SPI-MOSI:GPIO12
SPI-SCK:GPIO13
SPI-MISO:GPIO14
SPI-CS:GPIO11
SD-CD:GPIO21

--------------------
RF433MHz wireless receiver: GPIO8
RF433MHz wireless sender: GPIO18

free gpio on PCB (beside ESP32-S3 module)
GPIO39
GPIO40
GPIO41

Print this item