# ESP32 Battery Management System Controller Board ## Description A smart ESP32-based battery management system controller board for Lithium ion battery packs/cells. Capable of communicating to wide varieties of hybrid-smart inverters with CANbus, RS485 and UART communication. #smartHomeDevices ## Project Details - **Owner:** moi2406 - **Created:** 12/9/2024 - **Last Updated:** 12/9/2024 - **Visibility:** Public - **License:** https://creativecommons.org/licenses/by/4.0/ ## Key Components ### — [M3 Mounting Hole](https://www.flux.ai/vasyl/m3-mounting-hole.md) - Product Info Url: https://www.mcmaster.com/screws/drive-style~torx/rounded-head-style~pan/material~steel/specifications-met~iso-7045/thread-size~m3/finish~zinc-plated/ **Pins:** - terminal ### — [M3 Mounting Hole](https://www.flux.ai/vasyl/m3-mounting-hole.md) - Product Info Url: https://www.mcmaster.com/screws/drive-style~torx/rounded-head-style~pan/material~steel/specifications-met~iso-7045/thread-size~m3/finish~zinc-plated/ **Pins:** - terminal ### — [M3 Mounting Hole](https://www.flux.ai/vasyl/m3-mounting-hole.md) - Product Info Url: https://www.mcmaster.com/screws/drive-style~torx/rounded-head-style~pan/material~steel/specifications-met~iso-7045/thread-size~m3/finish~zinc-plated/ **Pins:** - terminal ### — [M3 Mounting Hole](https://www.flux.ai/vasyl/m3-mounting-hole.md) - Product Info Url: https://www.mcmaster.com/screws/drive-style~torx/rounded-head-style~pan/material~steel/specifications-met~iso-7045/thread-size~m3/finish~zinc-plated/ **Pins:** - terminal ### D2 — [LL4148](https://www.flux.ai/jecstronic/ll4148.md) - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/NextGen%20Components%20PDFs/LL4148.pdf - Part Type: Diode - Manufacturer Part Number: LL4148 - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: MDD **Pins:** - A [pin 2] - K [pin 1] ### D5 — [LL4148](https://www.flux.ai/jecstronic/ll4148.md) - Manufacturer Part Number: LL4148 - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: MDD - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/NextGen%20Components%20PDFs/LL4148.pdf - Part Type: Diode **Pins:** - A [pin 2] - K [pin 1] ### D7 — [1N5338BRLG](https://www.flux.ai/jharwinbarrozo/1n5338brlg.md) - Datasheet URL: https://www.onsemi.com/pdf/datasheet/1n5333b-d.pdf - Part Type: Diode - Manufacturer Name: ON Semiconductor - Manufacturer Part Number: 1N5338BRLG **Pins:** - A [pin 2] - K [pin 1] ### D8 — [NUP2105LT1G](https://www.flux.ai/jharwinbarrozo/nup2105lt1g.md) - Part Type: Diode - Datasheet URL: https://www.onsemi.com/pdf/datasheet/nup2105l-d.pdf - Manufacturer Part Number: NUP2105LT1G - Manufacturer Name: ON Semiconductor - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] ### F1 — [TLC-LSMD185](https://www.flux.ai/jharwinbarrozo/tlc-lsmd185.md) - Manufacturer Part Number: TLC-LSMD185 - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: TLC Electronic - Current: 1.85A - Datasheet URL: https://datasheet.lcsc.com/lcsc/1810111823_TLC-Electronic-TLC-LSMD185_C262041.pdf - Part Type: Protection **Pins:** - P1 [pin 1] - P2 [pin 2] ### J1 — [DB125-3.81-4P-GN-S](https://www.flux.ai/jharwinbarrozo/db125-3p81-4p-gn-s.md) - Manufacturer Name: DIBO - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Datasheet URL: https://datasheet.lcsc.com/lcsc/2301061430_DIBO-DB125-3-81-4P-GN-S_C395880.pdf - Manufacturer Part Number: DB125-3.81-4P-GN-S **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### J10 — [Connector 01x02 Horizontal](https://www.flux.ai/jharwinbarrozo/connector-01x02-horizontal.md) - Part Type: Connector - Manufacturer Part Number: PZ254R-11-02P **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] ### J12 — [DB125-3.81-4P-GN-S](https://www.flux.ai/jharwinbarrozo/db125-3p81-4p-gn-s.md) - Manufacturer Name: DIBO - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: DB125-3.81-4P-GN-S - Datasheet URL: https://datasheet.lcsc.com/lcsc/2301061430_DIBO-DB125-3-81-4P-GN-S_C395880.pdf **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### J14 — [Pin Header 01x07 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x07-254mm-vertical.md) - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] - Pin_7 [pin 7] ### J15 — [0472192001](https://www.flux.ai/jharwinbarrozo/0472192001.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Datasheet URL: https://www.molex.com/pdm_docs/sd/472192001_sd.pdf - Manufacturer Name: Molex - Manufacturer Part Number: 0472192001 **Pins:** - CD/DAT3 [pin 2] - CLK [pin 5] - CMD [pin 3] - DAT0 [pin 7] - DAT1 [pin 8] - DAT2 [pin 1] - GND_1 [pin G1] - GND_2 [pin G2] - GND_3 [pin G3] - GND_4 [pin G4] - VDD [pin 4] - VSS [pin 6] ### J2 — [DB126V-5.0-3P-GN](https://www.flux.ai/jharwinbarrozo/db126v-5p0-3p-gn.md) - Manufacturer Part Number: DB126V-5.0-3P-GN - Manufacturer Name: DIBO - Datasheet URL: https://datasheet.lcsc.com/lcsc/1912111437_DIBO-DB126V-5-0-3P-GN_C395850.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector **Pins:** - PIN1 [pin 1] - PIN2 [pin 2] - PIN3 [pin 3] ### J3 — [DB126V-5.0-3P-GN](https://www.flux.ai/jharwinbarrozo/db126v-5p0-3p-gn.md) - Manufacturer Part Number: DB126V-5.0-3P-GN - Manufacturer Name: DIBO - Datasheet URL: https://datasheet.lcsc.com/lcsc/1912111437_DIBO-DB126V-5-0-3P-GN_C395850.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector **Pins:** - PIN1 [pin 1] - PIN2 [pin 2] - PIN3 [pin 3] ### J4 — [DB125-3.81-4P-GN-S](https://www.flux.ai/jharwinbarrozo/db125-3p81-4p-gn-s.md) - Manufacturer Name: DIBO - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://datasheet.lcsc.com/lcsc/2301061430_DIBO-DB125-3-81-4P-GN-S_C395880.pdf - Manufacturer Part Number: DB125-3.81-4P-GN-S **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### J5 — [DB125-3.81-4P-GN-S](https://www.flux.ai/jharwinbarrozo/db125-3p81-4p-gn-s.md) - Manufacturer Part Number: DB125-3.81-4P-GN-S - Datasheet URL: https://datasheet.lcsc.com/lcsc/2301061430_DIBO-DB125-3-81-4P-GN-S_C395880.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Manufacturer Name: DIBO **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### J7 — [DB125-3.81-4P-GN-S](https://www.flux.ai/jharwinbarrozo/db125-3p81-4p-gn-s.md) - Manufacturer Part Number: DB125-3.81-4P-GN-S - Datasheet URL: https://datasheet.lcsc.com/lcsc/2301061430_DIBO-DB125-3-81-4P-GN-S_C395880.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Manufacturer Name: DIBO **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### J8 — [Pin Header 02x03 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-02x03-254mm-vertical.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] ### K1 — [SRD-05VDC-SL-C](https://www.flux.ai/vasy_skral/srd-05vdc-sl-c.md) - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811021933_Ningbo-Songle-Relay-SRD-05VDC-SL-C_C35449.pdf - Manufacturer Part Number: SRD-05VDC-SL-C - Part Type: Relay - Manufacturer Name: Ningbo Songle Relay **Pins:** - A1 - A2 - COM - NC - NO ### K2 — [SRD-05VDC-SL-C](https://www.flux.ai/vasy_skral/srd-05vdc-sl-c.md) - Part Type: Relay - Manufacturer Part Number: SRD-05VDC-SL-C - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811021933_Ningbo-Songle-Relay-SRD-05VDC-SL-C_C35449.pdf - Manufacturer Name: Ningbo Songle Relay **Pins:** - A1 - A2 - COM - NC - NO ### LED1 — [HL-AF-5060H271BU46FU79GC-S1-THL](https://www.flux.ai/jharwinbarrozo/hl-af-5060h271bu46fu79gc-s1-thl.md) - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811131122_HONGLITRONIC-Hongli-Zhihui--HONGLITRONIC-HL-AF-5060H271BU46FU79GC-S1-THL_C219409.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: LED - Manufacturer Part Number: HL-AF-5060H271BU46FU79GC-S1-THL - Manufacturer Name: HONGLITRONIC(Hongli Zhihui (HONGLITRONIC)) **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] - P5 [pin 5] - P6 [pin 6] ### LED2 — [MHPC3528CRGBCT](https://www.flux.ai/jharwinbarrozo/mhpc3528crgbct.md) - Manufacturer Name: MEIHUA - Part Type: LED - Manufacturer Part Number: MHPC3528CRGBCT - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://datasheet.lcsc.com/lcsc/2202141600_MEIHUA-MHPC3528CRGBCT_C2962096.pdf **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### LED3 — [LED 0603 (1608 Metric)](https://www.flux.ai/jharwinbarrozo/led-0603-1608-metric.md) - Part Type: LED **Pins:** - A [pin 2] - K [pin 1] ### LED4 — [LED 0603 (1608 Metric)](https://www.flux.ai/jharwinbarrozo/led-0603-1608-metric.md) - Part Type: LED **Pins:** - A [pin 2] - K [pin 1] ### Q1 — [AO3400A](https://www.flux.ai/adrian95/ao3400a.md) - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Alpha%20&%20Omega/AO3400A_ds.pdf - Manufacturer Part Number: AO3400A - Manufacturer Name: Alpha & Omega Semiconductor Inc. - Part Type: Transistor - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### Q2 — [AO3400A](https://www.flux.ai/adrian95/ao3400a.md) - Manufacturer Part Number: AO3400A - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Alpha%20&%20Omega/AO3400A_ds.pdf - Manufacturer Name: Alpha & Omega Semiconductor Inc. - Part Type: Transistor - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### Q3 — [AO3401A](https://www.flux.ai/jecstronic/ao3401a.md) - Part Type: Transistor - Manufacturer Name: HUASHUO - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://datasheet.lcsc.com/lcsc/2007171935_HUASHUO-AO3401A_C700954.pdf - Manufacturer Part Number: AO3401A **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### Q4 — [AO3400A](https://www.flux.ai/adrian95/ao3400a.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Alpha & Omega Semiconductor Inc. - Part Type: Transistor - Manufacturer Part Number: AO3400A - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Alpha%20&%20Omega/AO3400A_ds.pdf **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### RX1 — [S2B-PH-K-S(LF)(SN)](https://www.flux.ai/adrian95/s2b-ph-k-slfsn.md) - Manufacturer Name: JST Sales America Inc. - Manufacturer Part Number: S2B-PH-K-S(LF)(SN) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/ePH.pdf **Pins:** - P1 [pin 1] - P2 [pin 2] ### SW1 — [TS-1002-10026](https://www.flux.ai/jharwinbarrozo/ts-1002-10026.md) - Manufacturer Part Number: TS-1002-10026 - Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_XUNPU-TS-1002-10026_C455101.pdf - Manufacturer Name: XUNPU - Part Type: Switch **Pins:** - 4 [pin 4] - 3 [pin 3] - 1 [pin 1] - 2 [pin 2] ### SW2 — [TS-1002-10026](https://www.flux.ai/jharwinbarrozo/ts-1002-10026.md) - Part Type: Switch - Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_XUNPU-TS-1002-10026_C455101.pdf - Manufacturer Part Number: TS-1002-10026 - Manufacturer Name: XUNPU **Pins:** - 4 [pin 4] - 3 [pin 3] - 1 [pin 1] - 2 [pin 2] ### TX1 — [S2B-PH-K-S(LF)(SN)](https://www.flux.ai/adrian95/s2b-ph-k-slfsn.md) - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/ePH.pdf - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: S2B-PH-K-S(LF)(SN) - Manufacturer Name: JST Sales America Inc. **Pins:** - P1 [pin 1] - P2 [pin 2] ### U1 — [TXS0102DCUTG4](https://www.flux.ai/jecstronic/txs0102dcutg4.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: TXS0102DCUTG4 - Manufacturer Name: Texas Instruments - Part Type: Integrated Circuit - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Ftxs0102 **Pins:** - A1 [pin 5] - A2 [pin 4] - B1 [pin 8] - B2 [pin 1] - GND [pin 2] - OE [pin 6] - VCCA [pin 3] - VCCB [pin 7] ### U12 — [AQY282SX](https://www.flux.ai/jharwinbarrozo/aqy282sx.md) - Manufacturer Name: Panasonic - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Panasonic%20Electric%20Works%20PDFs/AQY,W28xS_DS.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Relay - Manufacturer Part Number: AQY282SX **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] ### U2 — [EL3H7(B)(TA)-G](https://www.flux.ai/adrian95/el3h7bta-g.md) - Manufacturer Name: Everlight Electronics Co Ltd - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: EL3H7(B)(TA)-G - Part Type: Transistor - Datasheet URL: https://everlightamericas.com/index.php?controller=attachment&id_attachment=2584 **Pins:** - P1 [pin 1] - P2 [pin 2] - P3 [pin 3] - P4 [pin 4] ### U20 — [Adafruit SPI TFT LCD Display Touch ILI9341](https://www.flux.ai/jharwinbarrozo/adafruit-spi-tft-lcd-display-touch-ili9341.md) - Manufacturer Name: Adafruit Industries - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf - Manufacturer Part Number: Adafruit ILI9341 - Part Type: Display Device **Pins:** - CS [pin 12] - D/C [pin 10] - GND [pin 13] - LED [pin 7] - MISO [pin 6] - MOSI [pin 9] - RESET [pin 11] - SCK [pin 8] - SD_CS [pin SD4] - SD_MISO [pin SD2] - SD_MOSI [pin SD3] - SD_SCK [pin SD1] - T_CLK [pin 5] - T_CS [pin 4] - T_DIN [pin 3] - T_DO [pin 2] - T_IRQ [pin 1] - VCC [pin 14] ### U3 — [TCA6416APWR](https://www.flux.ai/jharwinbarrozo/tca6416apwr.md) - Manufacturer Name: Texas Instruments - Part Type: Integrated Circuit - Manufacturer Part Number: TCA6416APWR - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.ti.com/lit/ds/symlink/tca6416a.pdf **Pins:** - ~INT [pin 1] - ~RESET [pin 3] - ADDR [pin 21] - GND [pin 12] - P00 [pin 4] - P01 [pin 5] - P02 [pin 6] - P03 [pin 7] - P04 [pin 8] - P05 [pin 9] - P06 [pin 10] - P07 [pin 11] - P10 [pin 13] - P11 [pin 14] - P12 [pin 15] - P13 [pin 16] - P14 [pin 17] - P15 [pin 18] - P16 [pin 19] - P17 [pin 20] - SCL [pin 22] - SDA [pin 23] - VCC1 [pin 2] - VCCP [pin 24] ### U4 — [ESP32-DEVKITC-32D](https://www.flux.ai/vasyl/esp32-devkitc-32d.md) - Part Type: RF Moule - Manufacturer Name: Espressif Systems - Datasheet URL: https://www.snapeda.com/parts/ESP32-DEVKITC-32D/Espressif%20Systems/datasheet/ - Manufacturer Part Number: ESP32-DEVKITC-32D **Pins:** - 3V3 [pin 1] - CLK [pin 38] - CMD [pin 18] - EN [pin 2] - EXT_5V [pin 19] - GND1 [pin 14] - GND2 [pin 26] - GND3 [pin 20] - IO0 [pin 33] - IO12 [pin 13] - IO13 [pin 15] - IO14 [pin 12] - IO15 [pin 35] - IO16 [pin 31] - IO17 [pin 30] - IO18 [pin 28] - IO19 [pin 27] - IO2 [pin 34] - IO21 [pin 25] - IO22 [pin 22] - IO23 [pin 21] - IO25 [pin 9] - IO26 [pin 10] - IO27 [pin 11] - IO32 [pin 7] - IO33 [pin 8] - IO34 [pin 5] - IO35 [pin 6] - IO4 [pin 32] - IO5 [pin 29] - RXD0 [pin 24] - SD0 [pin 37] - SD1 [pin 36] - SD2 [pin 16] - SD3 [pin 17] - SENSOR_VN [pin 4] - SENSOR_VP [pin 3] - TXD0 [pin 23] ### U5 — [SN65HVD75DR](https://www.flux.ai/jharwinbarrozo/sn65hvd75dr.md) - Part Type: Integrated Circuit - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Fsn65hvd75 - Manufacturer Part Number: SN65HVD75DR - Manufacturer Name: Texas Instruments - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - ~RE [pin 2] - A [pin 6] - B [pin 7] - D [pin 4] - DE [pin 3] - GND [pin 5] - R [pin 1] - VCC [pin 8] ### U6 — [AMS1117-3.3](https://www.flux.ai/vasy_skral/ams1117-33.md) - Part Type: Integrated Circuit - Manufacturer Name: AMS - Manufacturer Part Number: AMS1117-3.3 - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811021917_Advanced-Monolithic-Systems-AMS1117_C6188.pdf **Pins:** - GND [pin 1] - TAB(VOUT) [pin 4] - VIN [pin 3] - VOUT [pin 2] ### U7 — [SN65HVD1050D](https://www.flux.ai/jecstronic/sn65hvd1050d.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Integrated Circuit - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Fsn65hvd1050 - Manufacturer Name: Texas Instruments - Manufacturer Part Number: SN65HVD1050D **Pins:** - CANH [pin 7] - CANL [pin 6] - GND [pin 2] - RXD [pin 4] - S [pin 8] - TXD [pin 1] - VCC [pin 3] - VREF [pin 5] ### U9 — [AQY282SX](https://www.flux.ai/jharwinbarrozo/aqy282sx.md) - Part Type: Relay - Manufacturer Part Number: AQY282SX - Manufacturer Name: Panasonic - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Panasonic%20Electric%20Works%20PDFs/AQY,W28xS_DS.pdf **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/moi2406/esp32-battery-management-system-controller-board](https://www.flux.ai/moi2406/esp32-battery-management-system-controller-board).* --- *Generated from [https://www.flux.ai/moi2406/esp32-battery-management-system-controller-board](https://www.flux.ai/moi2406/esp32-battery-management-system-controller-board)*