File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ # Daly BMS UART API
2+
3+ This project turns an ESP32 into a small local network API and web interface for Daly BMS devices.
4+ The ESP32 communicates with the BMS via UART and exposes battery data over HTTP in JSON format.
5+
6+ It is ideal for dashboards, home automation, monitoring tools, or custom battery projects.
7+
8+ ## Features
9+ - UART communication with Daly BMS
10+ - REST-style JSON API (/data)
11+ - Built-in web interface served by the ESP32
12+ - Automatic data refresh every 20 seconds
13+ - Runs entirely in the local network
14+ - CORS enabled for easy external access
15+
16+ ## Connection
17+ | Daly BMS| ESP32|
18+ | ----| ----|
19+ | TX| GPIO 16 (RX)|
20+ | RX| GPIO 17 (TX)|
21+ | GND| GND|
22+
23+ ## Software Setup
24+ 1 . Clone the repository
25+ 2 . Rename ` secrets.example.h ` to ` secrets.h `
26+ 3 . Fill in your WiFi credentials inside secrets.h
27+ 4 . Upload to the esp32
28+
29+ ## Usage
30+ After uploading your code, watch the serial console (at 9600 baud rate) for the ip address of your esp32.
31+ Open the ip address inside your browser and you will see a simple website with information of your bms.
32+ For the API, you can simple request the ` /data ` route on your esp32 ip address.
33+
34+ ## Used Library
35+
36+ This project uses the daly-bms-uart library:
37+ https://github.com/maland16/daly-bms-uart
38+ All BMS communication is handled through this library.
You can’t perform that action at this time.
0 commit comments