Skip to content

ronaegis/tesla-bms-esp32s3

Repository files navigation

BMS for Tesla module using an ESP32-S3

BMS in action

This software allows you to use the included BMS on Tesla battery modules from Model S and X (2012-2020) using a cheap ESP32 arduino (T-Display-S3).

It currently shows a few metrics on the attached display, like voltage, state of charge and balance status.

Eventually, it will be able to connect to wifi and upload the BMS values to a server.

NOTE: The original work was done by collin80 and I just ported his work over to the ESP32S3 and added the display items.

Hardware

You can obtain the ESP32 board at Amazon and Aliexpress. There are various links on this page.

For connecting to the BMS on the Tesla modules, you will need a bunch of 15-97-5101 MOLEX connectors like these ones and the 39-00-0038 connector pins.

Software installation

  • Install the latest version of the Arduino IDE
  • Follow the Quick Start Arduino installation instructions on this page
  • Open the tesla-bms-esp32s3.ino file project in the Arduino IDE
  • Open bms-config.h and update the BMS_NUM_SERIES and BMS_NUM_PARALLEL values to suit your module configuration.
  • Upload to the board.

Cabling

Here is a diagram of the layout. Note that the MOLEX pin numbers are from the top of the connector.

Pinout

Molex ESP32S3
RX (2) GPIO01
TX (4) GPIO02
GND (3) G
5v (5) +5V

You can find the pinout of the ESP32S3 board here.

TODO

  • Finish wifi and metrics upload support

About

BMS for Tesla modules using a ESP32S3 board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published