-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Software
Install Visual Code, within Visual Code install the platformio and github extensions.
From the github extension clone this repository repo
Please only use the esp32dev build for production, the M5Stack builds are unstable and are testing only.
Select the device you are going to program esp32dev/esp32plus from the environment option (click here):
Then choose one:
Then click on the Terminal menu item then choose Run Task and you need to complete 2 tasks, the first is to flash the firmware, second is to flash the webpage data in to the LittleFS partition. The 2 tasks are called: PlatformIO: Upload([device chosen]) PlatformIO: Upload Filesystem Image([device chosen])
If you've chosen esp32dev and you can't see an option, scroll to the bottom of the task list, click on PlatformIO then all tasks are shown.
Once you've done the above, your device should boot and offer an Access Point called DIY-SMARTBMS, join it, then open a web browser and go to: 192.168.4.1, click scan to scan all available networks, choose the SSID (if it's already on the first make sure to click on it and leave the text box to save the setting, enter your Wi-Fi password, fill out the rest of the configuration as you wish.
Reboot and apply, the device should reboot and join your Wi-Fi network, you'll then need to find the IP address if you're using a ESP32 from your router or have the serial monitor connected and the IP address will be shown in the serial data.
Important Web Info: a value is only saved when you leave the box, so making a change and then clicking Reboot and Apply can make it not see the change, make sure you click outside of a textbox to save the data.
BMS data tab doesn't save to EEPROM, any changes are for real time only, if you want it used after a reboot, click the Save to EEPROM.