-
Switching to the ESP32
12/17/2017 at 09:47 • 0 commentsI tried to work around the limitations of the ESP8266 but I soon realized that one Core isn't going to cut it.
My plans on how to use the ESP8266:
• Battery Charging/Monitoring for 5 minutes
• Switching OFF the charging circuit and the balance resistors
• Establish an connection to the Broker over WiFi or Cellular Service
• Publish the six cell voltages
• Disconnect from the Broker
• Switching ON the charging circuit and the balance resistors (if needed)
This process would leave the cells "unatened" during the publishing which I don't really feel comfortable with so I decided to change the MCU to an ESP32.
The charging circuit will still be switchable in case of an emergency (Overcharged cell)
Using the ESP32 the structure will look something like this:
• Constantly charging/monitoring the Cells (Core 1)
• Waking Core 0 up every 5 minutes
• Establishing a connection with the broker using Core 0 (Core 1 still running and monitoring the cells)
• Core 0 publishes the cell values
• Core 0 disconnects from the Broker (You know what Core 1 is doing here)
• Core 0 shuts down to save energy
During the whole connecting/publishing/disconnecting of Core 0, Core 1 independently monitors the cells so there isn't a single time where they are unattended.
I'll use the ESP32-Wroom Module, at this point I'm not sure if I'm going to use the BLE capabilities...
-
Battery Modules​
10/25/2017 at 16:58 • 0 commentsI started designing battery modules which can hold 4x 18650s.
It's just a quick prototype and will be refined in the future, probably making it modular so you can add as many 18650 cells as you like...
They are keyed so there is no possibility to plug them in the wrong way.
-
In the beginning...
10/15/2017 at 13:26 • 0 commentsI thought about a few different combinations of MCU/Modules in the beginning (Arduino Pro Mini + ESP8266 + SIM800 or ATtiny85 + ESP8266 + SIM800) but I settled on only using the ESP8266 and SIM800.
I wanted to use the Pro Mini/ATtiny because they have 5V ADCs whereas the ESP only allows a maximum of 1V at its ADC-Pin. The Pro Mini would also have been the brains of the whole BMS not like the ATtiny that would only have been used for measuring the different cell voltages and sending them to the ESP.
While I'm waiting on the parts to arrive I started the schematic in EAGLE (nowhere near finished, spent most of the time searching for librarys).
I found a great library for the SIM800 module I ordered
Couldn't find anything for the LoLin v3 so I created my own...
I hope the circuit will fit on a single-sided PCB as I want to etch it myself.