Files
esphome-yambms/documents/README/Galvanic_isolation.md
T

2.4 KiB

YamBMS - Galvanic isolation

Badge License: GPLv3 Badge Version GitHub stars GitHub forks GitHub watchers

Galvanic isolation of the UART-TTL connection

Caution

V1 and V2 (3V3 or 5V) must be isolated and cannot come from the same source. V1 can be powered by the device or the 3V3 of the ESP32 via a DC-DC isolator (B0303S = 3V3-to-3V3), V2 (ESP32 side) is powered directly by the 3V3 of the ESP32.

┌─────────────┐             ┌──────────┐             ┌───────────┐
│             |  3V3/5V--V1>│          |<V2---3V3---<|           |
│   DEVICE    │<RX-------AO<│ UART-TTL │<AI-------TX<|   ESP32   |
│ BMS / Shunt │>TX-------BI>│ ISOLATOR │>BO-------RX>|           |
│             │<----GND---->│          │<----GND---->|           |
└─────────────┘             └──────────┘             └───────────┘

Here are some components available on the market allowing you to set up galvanic isolation. The UART-TTL isolator 2 seems a little better isolated with more space below the chip.

Image

UART-TTL isolator DC-DC isolator

Another solution would be the use of M5Stack's isolated RS485 unit.

M5Stack RS485 unit (isolated)