-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Software
There are 2 ways to flash the software, the first is using Visual Studio Code, the second is using the ESP Flash Tool.
Install Visual Code, within Visual Code install the platformio and github extensions.
From the github extension clone this repository repo
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, it should then be available at http://diy-smartbms.local/ or you'll then need to find the IP address 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.
A useful guide for flashing ESP32's is ESP32 Guide
On the releases is a zip containing multiple bin files, download, unblock the zip and extract all files.
Go to the link ESP Flash Tool and follow the link to the download of the flash tool.
Extract the zip and run the ESP flash tool. Click OK. Click the 3 dots to navigate to the release zip with the bin files in, then choose each one, tick the box on left and enter the numbers on right as shown. Make sure the correct serial port is selected. Click Start. Once flashed, it may not reboot so pull the power and plug back in. Connect to the DIY-BATTERYBMS Access Point - look on your laptop for the Wifi connection From a browser enter http://192.168.4.1/update
Choose the box filesystem and then browse to the folder again and choose littlefs.bin Once flashed it will be rebooted and you'll be able to go to http://192.168.4.1 and connect it to your wifi network and continue the setup.