Create board_xiao-s3.yaml

This commit is contained in:
Shivam Maurya authored and GitHub committed 2025-01-14 20:00:43 +05:30
1 parent 0455cba2da
commit 0b980a7f42
1 file changed
+103
+103
View File
@@ -0,0 +1,103 @@
# Updated : 2025.01.14
# Version : 1.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
board_chip: "ESP32-S3"
board_name: "DevKitC-1"
esp32:
board: esp32-s3-devkitc-1
flash_size: 8MB # adjust according to your ESP32-S3 version
framework:
type: esp-idf
esphome:
platformio_options:
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
board_upload.maximum_ram_size: 524288 # total size of the internal RAM in bits, it's the same for all ESP32-S3 ( 512KB )
# PSRAM activation and settings
psram:
mode: octal
speed: 80MHz
# <<: !include board_psram_settings.yaml
wifi:
id: my_network
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret domain
ap:
ssid: "YamBMS Fallback Hotspot"
password: "Y4mBM$85"
captive_portal:
logger:
baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus"
hardware_uart: USB_SERIAL_JTAG
uart:
# UART 0 : USB UART port used for ESP32 flashing and logs, can be released if necessary (tx_pin: 43, rx_pin: 44)
# UART 1
- id: uart_esp_1
tx_pin: 2
rx_pin: 1
baud_rate: 115200
rx_buffer_size: 512
# UART 2
- id: uart_esp_2
tx_pin: 4
rx_pin: 3
baud_rate: 115200
rx_buffer_size: 512
# UART 3
- id: uart_esp_3
tx_pin: 9
rx_pin: 10
baud_rate: 115200
rx_buffer_size: 512
canbus:
# CANBUS NODE 1
- platform: esp32_can
id: canbus_node1
tx_pin: 5 # to CAN board CTX
rx_pin: 6 # to CAN board CRX (with 4.7K resistor except for SN65HVD230)
can_id: 1
bit_rate: 500kbps
# +--------------------------------------+
# | Inverter Heartbeat Light |
# +--------------------------------------+
light:
# ESP Light used to see the inverter heartbeat
# Internal : only specifying an id without a name will implicitly set this to true.
- platform: binary
output: esp_led
id: esp_light
output:
# ESP LED
- platform: gpio
pin: GPIO21
id: esp_led
inverted: true