

BST900-ESP32
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
3SIT3485ESA
SOP-8-40℃~+85℃ 1 1 12Mbps 256 3V~3.6V 800uA Enable shutdown、Overcurrent Protection、Thermal shutdown protection、Low-power mode、Tx/Rx enable Half-Duplex Transceiver SOP-8 RS-485 / RS-422 ICs ROHSSITRS-485 / RS-422 ICsRS485
SOP-81 1 1.2mA 2.5Mbps 256 5V Half-Duplex Transceiver ±4kV SOP-8 RS-485 / RS-422 ICs ROHSGRRS-485 / RS-422 ICsADS1115
UncategorisedTexas Instruments
README
README.mdBST900-ESP32
ESP32 firmware to control BST900 Boost Converters remotely
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 Socket | Signal Name | TTGO Pin | ADS1115 Pin | Function |
|---|---|---|---|---|
| Pin 1 | Iout Sense | GPIO 38 | Chan 1 | Current sense. Use either ADS115 or ESP32 pins |
| Pin 2 | Vout Sense | GPIO 39 | Chan 2 | Voltage out sense. |
| Pin 3 | Vin Sense | GPIO 37 | Chan 0 | Voltage in sense. |
| Pin 4 | Iout PWM | GPIO 13 | Constant Current threshold control | |
| Pin 5 | Vout PWM | GPIO 15 | Voltage out control | |
| Pin 6 | Enable | GPIO 13 | Converter Enable | |
| Pin 7 | CV/CC Indicator | GPIO 27 | Constant Voltage/Constant Current Indicator Not 3.3V safe | |
| Pin 8 | Fan PWM | GPIO 2 | Fan speed control | |
| SCL | GPIO 22 | SCL | I2C Clock | |
| SCD | GPIO 21 | SCD | I2C Data | |
| ADC Ref | GPIO 33 | +3.3V | Connect to 3.3V power rail. Used to compare with NTC temp reading | |
| Temp | GPIO 36 | Connect 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 Socket | Signal Name | TTGO Pin | ADS1115 Pin | Function |
|---|---|---|---|---|
| Pin 1 | GND (Input) | GND | GND | Ground |
| Pin 2 | GND (Input) | GND | GND | Ground |
| Pin 3 | GND (Output) | Do NOT CONNECT Connecting GNDs together disrupts Iout sense | ||
| Pin 4 | GND (Output) | Do NOT CONNECT Connecting GNDs together disrupts Iout sense | ||
| Pin 5 | +5V | +5V | 5V Power rail | |
| Pin 6 | +5V | +5V | 5V Power rail | |
| Pin 7 | Tx pin (not used) | |||
| Pin 8 | Rx pin (not used) | |||
| +3.3V | Vcc | ADS1115 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100nF | Capacitor_SMD:C_0805_2012Metric | C1, C3, C4, C5, C6 |
| 3 | 10K | Resistor_SMD:R_0805_2012Metric | R2, R3, R9 |
| 2 | 2K2 | Resistor_SMD:R_0805_2012Metric | R6, R7 |
| 2 | ADS1115 | Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_Vertical | J4, J5 |
| 1 | 120R | Resistor_SMD:R_0805_2012Metric | R4 |
| 1 | 33K | Resistor_SMD:R_0805_2012Metric | R5 |
| 1 | 3K3 | Resistor_SMD:R_0805_2012Metric | R1 |
| 1 | 470uF 10V | Capacitor_SMD:CP_Elec_6.3x7.7 | C2 |
| 1 | BLUE LED | Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D1 |
| 1 | BST900 Left Hand Socket | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J1 |
| 1 | BST900 Right Hand Socket | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J6 |
| 1 | Bus Termination | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1 |
| 1 | I2C | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J7 |
| 1 | Power Select | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP2 |
| 1 | RS485 | Connector_JST:JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal | J3 |
| 1 | SIT3485ESA | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | SW_Push | Button_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mm | SW1 |
| 1 | TTGO T-DISPLAY | derek:MODULE_TTGO_T-DISPLAY | U2 |
| 1 | Thermistor | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Horizontal | J2 |
Similar boards
- 6 layers100 × 60 mm

- 2 layers168.9 × 123.3 mm

OEM ECU
aeonSolutions/AeonLabs-AI-Volvo-MKII-Open-Hardware
Volvo MKII Open Hardware
296 parts161CC0-1.0 - 2 layers94 × 79 mm

- 2 layers54.6 × 33 mm

JuntekOnSteroidsTTGO
rin67630/Drok-Juntek-on-steroids
Extend the possibilities of cheap digital power supplies with a WiFi module
35 parts62 - 2 layers155 × 70 mm

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 mm

- 2 layers33.9 × 90 mm

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 mm

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).