Skip to the content
2 layers61 × 36.1 mmBST900-ESP32, the printed circuit board in 3D

ESP32 firmware to control BST900 Boost Converters remotely

Size
61 × 36.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
27
Pads
117
Tracks, vias
327, 41
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
28 Sep 2021
Updated
2 Nov 2021

Overview

BST900-ESP32 is an open-source printed circuit board by delboy711, from the delboy711/BST900-ESP32 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 61 × 36.1 mm with 27 parts on 27 nets, routed with 327 tracks and 41 vias.

It is built around the SIT3485ESA, RS485 and ADS1115. Its parts include 8 resistors, 7 connectors, 6 capacitors, 2 ICs and 1 diode. It belongs with the ESP32 boards of this library.

Main components

3

README

README.md

BST900-ESP32

ESP32 firmware to control BST900 Boost Converters remotely BST900-ESP32 BST900 boost converters are widely and cheaply available on AliExpress. They are sold under the brand name Ming-He among others, and there are also no-name clones available even cheaper. They are claimed to operate up to 15A and 900W, but personally I would not operate them at that power without improvements to the cooling which I have detailed in my BST900 repository.

Function

This firmware is offered as an evolution from BST900 which replaced the stock STM8 firmware and allowed control of a BST900 boost converter over a serial interface.

This new version replaces the BST900 daughter board with an ESP32 with or without an integrated TFT display and allows a BST900 to be controlled remotely over a WiFi interface using MQTT, and for statistics to be gathered. On power up the controller will revert to its saved state.

Local control is not currently supported.

It has been designed to be used with a TTGO T-Display board, but is easily adapted for other display options (or none). An ADS1115 ADC converter may optionally be used in preference to the onboard ESP32 ADC. The ADS1115 performs considerably better than the on board ADC in ESP32 and is highly recommended. (All links to stores are examples only.)

In its initial version local control is not possible. If you are looking for a wider set of features, or for management of other types of converters check out Drok-Juntek-on-steroids

Features

  • Control over Voltage and Current over a wireless interface using MQTT. Many variables may be controlled over MQTT including calibration.
  • Statistics and alarms over MQTT
  • Temperature measurement and alarms with an NTC thermistor attached to converter heatsink.
  • Automatic fan control. Fan speed is proportional to either temperature or load current.
  • Closed loop feedback to ensure output Voltage is accurate in Constant Voltage (CV) mode, and Output Current is accurate in Constant Current (CC) mode.
  • Choice of display modes showing combinations of Input Voltage, Output Voltage, Output Current, Constant Current (CC) indication, and Temperature.
  • Automatic shutdown on over temperature alarm, or on loss of communication with remote controller.
  • Saving of all parameters in Flash memory. On power on, the controller will revert to this state.
  • Over the Air software updates.

Application

My home battery system is charged from AC mains. A BST900 Boost Converter is used to boost an AC to DC power supply output up to the battery voltage, and software running on NodeRed dynamically controls the constant current limit of the BST900 to match solar panel production to minimise export to the grid and save power for use later in the day.

Compiling

This code compiles with PlatformIO IDE using the Arduino framework. Refer to the platformio.ini file for required libraries if using Arduino IDE. Put your WIFI and MQTT credentials in the file include/credentials.h, and your MQTT server address and topic details in include/defines.h

Usage

The BST900 will listen for commands on one MQTT topic, and send statistics every 30 seconds on another. By default it will time out and restart if no commands are received for two minutes. On power on it will send two messages giving its configuration and calibration settings. Commands and statistics are JSON formatted like for example :- {"volts":45000,"amps":8000,"enable":true,"fan":0} Keywords may appear in any order. A list of keywords and their data types and ranges is in the file Keywords.md If the keyword "save":true is given, all parameters are saved to flash memory and will be restored on power up.

Hardware Connections

Connect the TTGO T-Display board to the ESP32 in the following way. BST900 pins are numbered from the top down.

BST900 Left SocketSignal NameTTGO PinADS1115 PinFunction
Pin 1Iout SenseGPIO 38Chan 1Current sense. Use either ADS115 or ESP32 pins
Pin 2Vout SenseGPIO 39Chan 2Voltage out sense.
Pin 3Vin SenseGPIO 37Chan 0Voltage in sense.
Pin 4Iout PWMGPIO 13Constant Current threshold control
Pin 5Vout PWMGPIO 15Voltage out control
Pin 6EnableGPIO 13Converter Enable
Pin 7CV/CC IndicatorGPIO 27Constant Voltage/Constant Current Indicator Not 3.3V safe
Pin 8Fan PWMGPIO 2Fan speed control
SCLGPIO 22SCLI2C Clock
SCDGPIO 21SCDI2C Data
ADC RefGPIO 33+3.3VConnect to 3.3V power rail. Used to compare with NTC temp reading
TempGPIO 36Connect up as +3.3V--10k resistor--GPIO 36--NTC Thermistor--GND

Thermistor is 10K nominal at 25deg C Beta Coefficient=3950 or similar. Note: Pin7 CV/VV is not 3.3V safe. At times 5V may appear on this pin. It must therefore be dropped down before the GPIO27 pin. A convenient method of dropdown is Pin7--3.3K resistor--GPIO27--Blue LED--GND A blue LED will have ~2.5V forward voltage drop and will ensure a safe voltage appears on GPIO27. The LED will also serve as a visible indicator when the BST900 is in Constant Voltage mode.

If using ESP32 ADC connect 100nF capacitors from GPIO Pins 37, 38, and 39 to GND.

BST900 Right SocketSignal NameTTGO PinADS1115 PinFunction
Pin 1GND (Input)GNDGNDGround
Pin 2GND (Input)GNDGNDGround
Pin 3GND (Output)Do NOT CONNECT Connecting GNDs together disrupts Iout sense
Pin 4GND (Output)Do NOT CONNECT Connecting GNDs together disrupts Iout sense
Pin 5+5V+5V5V Power rail
Pin 6+5V+5V5V Power rail
Pin 7Tx pin (not used)
Pin 8Rx pin (not used)
+3.3VVccADS1115 power

A 470 uF capacitor should be connected between +5V and GND as well as a 100nF capacitor.

A circuit diagram of how to connect a TTGO T-Display to BST900 is in the hardware folder.

Parts

27
QtyValueFootprintReferences
5100nFCapacitor_SMD:C_0805_2012MetricC1, C3, C4, C5, C6
310KResistor_SMD:R_0805_2012MetricR2, R3, R9
22K2Resistor_SMD:R_0805_2012MetricR6, R7
2ADS1115Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ4, J5
1120RResistor_SMD:R_0805_2012MetricR4
133KResistor_SMD:R_0805_2012MetricR5
13K3Resistor_SMD:R_0805_2012MetricR1
1470uF 10VCapacitor_SMD:CP_Elec_6.3x7.7C2
1BLUE LEDDiode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1BST900 Left Hand SocketConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1
1BST900 Right Hand SocketConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ6
1Bus TerminationJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1I2CConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1Power SelectJumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mmJP2
1RS485Connector_JST:JST_PH_S4B-PH-K_1x04_P2.00mm_HorizontalJ3
1SIT3485ESAPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1SW_PushButton_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mmSW1
1TTGO T-DISPLAYderek:MODULE_TTGO_T-DISPLAYU2
1ThermistorConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ2

Similar boards

  • 2 layers168.9 × 123.3 mmOEM ECU, the printed circuit board in 3D

    OEM ECU

    aeonSolutions/AeonLabs-AI-Volvo-MKII-Open-Hardware

    Volvo MKII Open Hardware

    296 parts161CC0-1.0
  • 2 layers94 × 79 mm5 - Lizard Car, the printed circuit board in 3D

    5 - Lizard Car

    TRD-B/Lizard

    3D printed RC race car with custom electronics

    54 parts129CC-BY-4.0
  • 2 layers54.6 × 33 mmJuntekOnSteroidsTTGO, the printed circuit board in 3D

    JuntekOnSteroidsTTGO

    rin67630/Drok-Juntek-on-steroids

    Extend the possibilities of cheap digital power supplies with a WiFi module

    35 parts62
  • 2 layers155 × 70 mmPayphone v1, the printed circuit board in 3D

    Payphone v1

    sdylewski/Analog-Redial

    A circuit board for old telephones to come back to life. Plug one or two phones in, and you can call the other phone, use bluetooth, connect to others via voip, and do a variety of other things with a plain old rotary…

    137 parts46
  • 2 layers32.4 × 33 mmOpenXsensor, the printed circuit board in 3D

    OpenXsensor

    Ingwie/OpenAVRc_Hw

    OpenAVRc Hardware and addons

    40 parts26
  • 2 layers33.9 × 90 mmBiasPro InputProtection v3, the printed circuit board in 3D

    BiasPro InputProtection v3

    ToneAlchemy/BiasPro

    A professional-grade, dual-probe Arduino Bias Meter for guitar tube amplifiers. Open source hardware & firmware

    18 parts16MIT
  • 4 layers52.5 × 59.7 mmESPHome Indoor Multi Sensor, the printed circuit board in 3D

    ESPHome Indoor Multi Sensor

    mikelawrence/esphome-indoor-multi-sensor-hardware

    ESPHome Indoor Multi-Sensor hardware. This design supports Radar/PIR Presence, Temperature, Humidity, Pressure, Light, CO2, CO, VOC, NOX and PM sensors.

    113 parts14CERN-OHL-P-2.0

Questions

How big is the BST900-ESP32 PCB?

It measures 61 × 36.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BST900-ESP32 use?

27 parts, built around the SIT3485ESA, RS485 and ADS1115. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the BST900-ESP32 KiCad files?

From the delboy711/BST900-ESP32 repository on GitHub, at the commit this page was made from: the board is hardware/BST900-ESP32/BST900-ESP32.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the BST900-ESP32 design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).