-
Link to purchase
05/19/2024 at 17:52 • 0 comments -
More testing, firmware, and increasing accuracy
06/29/2019 at 05:24 • 2 commentsI've spent some more time testing and have implemented a calibration step to the firmware that makes the ADC cell voltage measurements accurate to within about +-20mV. It is currently in the bug fixes branch on github. I'm going to spend some more time testing before I push to master.
Once you flash this firmware, you will need to run the calibration. It gets saved into one time programmable memory, so you will only have to do it once.
Hook up a DC power supply set to 3V-4V to the balance connection cells 1-4 and to the positive of the XT60 connector. Measure the input voltage with a multimeter, then in the LiPow command line, run "cal" followed by the voltage input in mV. It is a float and my meter is 5 digit so I've been entering something like "3849.3". It will take that input voltage and calculate the ADC scalars to compensate for the 1% resistor voltage dividers. You can check the output by running the "stats" command and checking that the voltages all are close to your input voltage. If you are happy with the calibration, you can save it to one time programmable flash with the "write_otp" command. You can run that command up to ~30 times and it will always use the latest saved calibration. You should only need to do it once though if you get a good calibration the first time. You can reflash the firmware without erasing the calibration once it is in the one time programmable memory.
Here is the branch.
https://github.com/AlexKlimaj/LiPow-Firmware/tree/bug_fixes -
First Complete Units Have Arrived!
06/10/2019 at 23:13 • 0 commentsThe first batch of units off the line have arrived and are available on Tindie!
-
Bare PCBs are Available!
05/30/2019 at 00:20 • 0 commentsI have posted some Bare PCBs for sale on Tindie.
https://www.tindie.com/products/arkelectronics/lipow-the-usb-c-lipo-battery-charger-bare-pcb/
Complete PCBAs should be available in a few weeks.
-
More Power!
05/10/2019 at 20:00 • 0 comments -
Firmware MVP!
05/10/2019 at 05:39 • 0 commentsI have completed a firmware MVP today. All features are functional. Battery cell number detection, cell voltage readings, balancing, USB PD discovery, auto selection of PD voltage for highest efficiency, auto calculation and setting of max charge voltage, and a basic command line interface for debugging.
I have tagged the release as v0.1-alpha.
https://github.com/AlexKlimaj/LiPow-Firmware/releases/tag/v0.1-alpha
In other news, I have placed the first order of production boards. They are Rev 3.0 and I'm calling this run a beta. They will go up for sale on Tindie. I plan on creating a machined aluminum case that will also serve as the heatsink. I will eventually put it up for sale as a finished product.
-
USB PD Working!
05/05/2019 at 20:12 • 0 commentshttps://github.com/AlexKlimaj/LiPow-Firmware/pull/13
I have finally got the ST USB PD middleware basics working on the STM32G0. It reads in the capabilities from the source supply and can request the supply to change it's power profile. I still need to implement algorithm to a select power profile from source based on connected battery type to provide highest efficiency for the bq25703a regulator. -
Rev 3.0 Ready for Beta
04/30/2019 at 23:07 • 1 commentI have Rev 3 of the design ready for beta and I am in the process of getting quotes!
Still working on getting the USB PD middleware working without bugs.
-
Almost ready for beta
04/24/2019 at 19:46 • 0 commentsI have been working the last couple of weeks trying to get the USB PD Middleware from ST up and running but have not been having much success. Once I get this working, I can do some more testing and order beta units. Does anyone have advice on getting this running?
-
Charging and Balancing Functional!
04/05/2019 at 05:59 • 0 commentsI finally got some time to work on this project again. Picked up where I left off and got 2s and 3s charging tested. It is now automatically charging and balancing 2s, 3s, and 4s batteries!
I set my bench supply to 20V and was able to get it to charge a 4s battery at 45W! It was also balancing and the temperature of the MCU did rise to 44C at room temperature. So heat may be an issue in the future.