July 28th, 2024

How to Debug Your Battery

The GitHub repository "How to debug your battery" by Tom Tranter discusses battery design challenges for electric vehicles, emphasizing trade-offs, the curse of dimensionality, and the benefits of computational simulations for optimization.

Read original articleLink Icon
CuriosityInterestAppreciation
How to Debug Your Battery

The GitHub repository "How to debug your battery" by Tom Tranter addresses the complexities and challenges in battery design, particularly for electric vehicles. It highlights the trade-offs between energy density and power output, emphasizing that current battery designs often focus on one at the expense of the other, complicating performance optimization. The concept of the "curse of dimensionality" is discussed, illustrating how the multitude of variables in battery design leads to an overwhelming number of combinations that are impractical to test using traditional methods. To mitigate this, the repository advocates for the use of computational simulations, specifically with tools like PyBaMM (Python Battery Mathematical Modelling), which allow engineers to analyze various design parameters without extensive physical testing. Additionally, it addresses issues such as voltage hysteresis in silicon anodes and mechanical stresses from swelling during lithiation, which can contribute to battery aging. The repository also provides practical examples, including code snippets for simulating battery behavior and analyzing voltage components, as well as insights into how particle size affects performance. It encourages further exploration of battery modeling and offers links to additional resources. This repository is a valuable asset for professionals in battery technology and electric vehicle engineering, providing insights into the intricacies of battery design and the advantages of simulation tools in the development process.

Related

How to prolong lithium based batteries

How to prolong lithium based batteries

Battery University offers insights on extending lithium-based battery life, focusing on lithium-ion tech. Factors like charging speed, depth of discharge, temperature, and cycling impact battery health. Guidelines on charge voltages and cycling are provided for longevity.

Resource burden of electric vehicles set to triple by 2050

Resource burden of electric vehicles set to triple by 2050

Demand for EV raw materials to triple by 2050, mainly lithium-ion batteries. Concerns arise over underestimating resources for EV transition. Circular economy strategies could help manage resource demand amid increasing EV adoption.

First anode-free sodium solid-state battery

First anode-free sodium solid-state battery

The University of Chicago's Laboratory for Energy Storage and Conversion led by Prof. Shirley Meng developed the first anode-free sodium solid-state battery. This innovation aims for affordable, eco-friendly electric vehicle and grid storage batteries.

Charge limiting to extend lithium ion battery life

Charge limiting to extend lithium ion battery life

Charge limiting is crucial for lithium-ion battery longevity in electronic devices. Factors like temperature and cycles affect battery life. Maintaining 30-80% charge, cooling batteries, and using manufacturer solutions can extend lifespan and reduce e-waste.

New Batteries: It's Not All Hype – Sabine Hossenfelder [video]

New Batteries: It's Not All Hype – Sabine Hossenfelder [video]

The YouTube video discusses battery technology progress, focusing on energy density, power density, reliability, and cost. It mentions silicon anodes, solid-state, and sodium-ion batteries, and promotes brilliant.org for interactive courses.

AI: What people are saying
The comments on the article about battery design and debugging reveal several key themes and insights from the community.
  • Many commenters emphasize the importance of proper experimental design, criticizing one-factor-at-a-time testing as inefficient.
  • Several users share personal experiences with building battery systems, highlighting the learning curve and challenges in design and aesthetics.
  • There is interest in tools and software for energy profiling and battery modeling, with recommendations for specific products like Nordic Semiconductor’s PPK II.
  • Some commenters question the terminology used in the article, suggesting that "debug" may not accurately reflect the content's focus on modeling and design trade-offs.
  • Discussions also touch on the applicability of battery modeling tools to various battery types beyond lithium-ion, such as sodium and flow batteries.
Link Icon 16 comments
By @tylermw - 7 months
> If you collect 3 different data points changing each thing one at a time (original design, some number higher, some number lower) whilst keeping everything else constant (usually a good scientific approach) that's 320 possible combinations of changes!

There is an entire field of statistics (Design of Experiments) where one of the first lessons you learn on day one is how one-factor-at-a-time testing is one of the most inefficient ways you can test something. It’s usually only done out of ignorance to better methods by those with little to no formal statistical training.

An experiment designed by someone who is well versed in modern experimental design methods would not take billions of runs to optimize—a sequential design that first screens out factors to those that matter (basic Pareto principle) followed by a response surface design or a GP model surrogate to optimize the response would likely be on the order of hundreds (possibly thousands) of runs. This is basic industrial experimentation—see “Design and Analysis of Experiments” by Douglas C. Montgomery for a nice introductory textbook.

By @tra3 - 7 months
I’ve been on a journey to learn a bit about battery tech by building my own “solar generator”. Terrible name, but something like a jackery or blue yeti.

I acquired 4 lithium iron phosphate cells along with a bms, solar charge controller and various doodads.

I had to learn about balancing the cells, wiring, etc. it’s been a bit of a rabbit hole for sure.

I ended up building 1.2kwh battery for powering my fridge and lights while camping. For less than half the price of an equivalent off the shelf unit. Of course it has taken an enormous amount of learning, but that’s free.

One the more interesting revelations to me, is how much I under appreciated industrial design before. On the first glance a device like a battery pack is a square box with a couple of outlets but I’ve certainly had a difficult time making it look nice. Internal component wiring is also an interesting challenge.

By @SOLAR_FIELDS - 7 months
For those interested in energy profiling tools that have applications for developing battery powered hardware products I can highly recommend Nordic Semiconductor’s PPK II. For a reasonable price you get a hardware tool and software kit that can profile your actual energy usage quite well. It has punched well above its weight on providing power profiles against tools an order of magnitude higher in price. If you are designing a hardware product that runs on battery a tool like this is a necessity.

I know above sounds like an advertisement but it isn’t. I’m not affiliated with NS at all. It’s just a great tool and I’m happy to recommend it as there are very few cost effective options in this space.

By @buescher - 7 months
Thanks for posting this. PyBAMM is really slick. I first learned about it from a webinar on the competing Julia package.

I have to ask though, how many organizations are really designing their own cells for new products? And how much validation have these packages had? I know it's expensive and time-consuming to get a lot of battery discharge data. My experience may be overly coloring my thinking here - my idea of battery modeling involves a circuit simulator and only those effects that are not going to be drowned by the large tolerances in common batteries.

The one area where more detailed physical modeling would be interesting would be in long-term degradation and wear modeling for secondary cells. Is there a tutorial or example along those lines?

By @VygmraMGVl - 7 months
It would be interesting to see a blogpost on parameterizing a model in PyBaMM given a commercial cell. I imagine many battery engineers using simulation-based design tread over the same ground for determining parameters from literature, X-rays, etc.
By @ecuaflo - 7 months
Everyone is always reinventing blogging platforms and personal blog sites when GitHub was the perfect solution all along.
By @ForOldHack - 7 months
Extremely terse. Not much about Debugging my battery, or my specific battery in particular, but batteries in general, and profiling them in a few stochastic qualitative measurements.

I.e. Requirements: "pybamm=24.1"

https://github.com/pybamm-team/PyBaMM

By @mysterypie - 7 months
I found the article interesting but I don't think "debug" is the right word here. I was thinking the article would be about debugging a software or electronics bug that causes my laptop or car battery to drain too fast.

Maybe it should have been titled, "How to model the right battery choice for your application" or "Understanding trade-offs in battery design".

By @ggm - 7 months
Is the library parametric such that it works for other electrolyte systems like sodium batteries? How about flow batteries? I would think cracking isn't such an issue for 2 fluids across a membrane.

Or even just lead-acid?

ie is this 'debug lithium'

By @tomtranter - 7 months
For anyone interested in the performance requirements for electric flight, alluded to but not explored in the article. This is a great open-access paper about it https://pubs.acs.org/doi/full/10.1021/acsenergylett.8b02195
By @oulipo - 7 months
Very cool!

At Gouach (https://get.gouach.com) we're building a battery framework which requires no welding, nor glue, which makes it easy to repair, refill, and tweak batteries safely!

We develop our own BMS that we made to be really powerful and extensible (focusing mainly on light electric vehicles, e-bikes, e-scooters, e-mopeds etc)

We'd love to see how your platform (or PyBaMM) could help us improve our SoC / SoH estimations, and remaining capacity estimation. Would you have any pointers / tutorials on this?

By @nyanpasu64 - 7 months
Can you use energy batteries to recharge power batteries which handle transients, or install them in parallel?
By @SeanLuke - 7 months
> This is known as the curse of dimensionality (the more things you have to vary, the exponentially more combinations you have to test)

Is this really a valid usage of this term? The only definition I am personally familiar with is from machine learning, and it is something totally different.

By @Adams65 - 7 months
thanks for sharing...
By @Sharonecast - 7 months
硬さ楽しみ