This project provides Platform.io code for building firmware for a STM32F103, allowing a JBD BMS to communicate with both its Bluetooth adaptor and an external ESP for data logging and configuration.
All serial communication from the Bluetooth adaptor or ESP is forwarded to the BMS. All data from the BMS is forwarded to both the Bluetooth adaptor and ESP. Simple!
- The pin labeled RX on the bluetooth adaptor connects to PA3
- The pin labeled TX on the bluetooth adaptor connects to PA2
- The data pin next to the positive wire on the BMS connects to PA10
- The data pin next to the negative wire on the BMS connects to PA9
- The RX pin on the ESP connects to PB10
- The TX pin on the ESP connects to PB11