Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KinCony ESP32-S3 Core Board ESPHome yaml for home assistant
#1
Code:
esphome:
  name: s3
  friendly_name: s3
  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

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

uart:
  - id: uart_485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 16
    rx_pin: 15

  - id: uart_sim7600
    baud_rate: 115200
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
      sequence:
        - lambda: UARTDebug::log_string(direction, bytes);
    tx_pin: 18
    rx_pin: 17

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

  - platform: uart
    uart_id: uart_sim7600
    name: "UART 4G"
    data: "AT+CGSN\r\n" # read 4G SIM7600 ID

binary_sensor:

  - platform: gpio
    name: "S3 TMP1"
    pin:
      number: 8
      inverted: true

  - platform: gpio
    name: "S3 TMP2"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "S3 DL"
    pin:
      number: 0
      inverted: true

  - platform: gpio
    name: "S3 SDA"
    pin:
      number: 39
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 SCL"
    pin:
      number: 38
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO10"
    pin:
      number: 10
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO11"
    pin:
      number: 11
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO12"
    pin:
      number: 12
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO13"
    pin:
      number: 13
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO14"
    pin:
      number: 14
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO21"
    pin:
      number: 21
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO47"
    pin:
      number: 47
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO48"
    pin:
      number: 48
      inverted: true
      mode:
        input: true
        pullup: true

sensor:

  - platform: adc
    pin: 4
    name: "S3 IO04 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 5
    name: "S3 IO05 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 6
    name: "S3 IO06 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 7
    name: "S3 IO07 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

web_server:
  port: 80
yaml file download: 
.txt   S3-HA.txt (Size: 3.5 KB / Downloads: 189)
Reply
#2
How can this be used with framework = arduino instead ?

ESP-IDF does NOT allow the use of the ESPHome OTA and having the ability to upload firmware via the webserver interface.
You can't just change to to usr arduino either, as that then causes causes a compile to fail, due to  'USB_SERIAL_JTAG' being used.

Is there anyway that logger can use hardware = USB_CDC instead? That would then allow framework = arduino to be used.

Also with 9-24V input being required to power the board (not even USB power), why doesn't this also include a 5V output, to allow powering the vast number of sensors that require 5V to run?
With this sorted, this would be a good 'mass use' board, allowing placing a bunch in a DIN cabinet and using to monitor sensors.
POE HAT would be nice, instead of 4G module.


Thanks,

Justin
Reply
#3
How can this be used with framework = arduino instead ? Sure, you can use arduino. I use ESP-IDF, just debug my code while can enable 'USB_SERIAL_JTAG' .
Is there anyway that logger can use hardware = USB_CDC instead? That would then allow framework = arduino to be used. Now no this way, ESPHome not support that way.
Because we suggest sensor's power use another power supply. if many sensor use 5v power from board, maybe let the board not stable. because we don't know what sensor or how many sensors will connected. if you want use POE, you can add a POE adapter. This time, we just want board smallerSmile maybe in furture we can update, thanks for suggestion.
Reply
#4
I recently purchased Kincony ESP32-s3 core board but I could not figure out how to flash the program. I would appreciate it if you help me.
Reply
#5
do you want use for home assistant?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)