In " RCp = Caux *( Rs_p + Rs_b2) = 1316us
i believe you should include some typical value for the battery internal resistance+the ESR of the capacitor. Have you also consider the idea of using MLCC capacitor of lower value but switched at a higher frequency? Electrolytic capacitors have quite a big ESR. It has to be evaluated whether the loses of switching smaller capacitor with lower ESR will be more than the loses of switching a big capacitor with higher ESR at a lower frequency. Another idea that comes to my mind is if you can monitor the voltage on the capacitor fast enough you can directly regulate Ton but i am not sure of the capabilities of the Atmega. And one last thing - where do you plan to get 24 V? You can consider using gate drivers for the mosfets if the budget allows it.
Thank you for your interesting remarks.
Do you have an idea of the typical value for the battery internal resistance + the wirings? I assumed it 20 mR which could be considered a typical minimum value.
Big electrolytic capacitors (here 2*4700uF/35V) have typically a relatively low ESR. For the ones I have ESR~=5mR.
To monitor the floating capacitor, 2 ADC readings are needed (unless we add a differential amplifier to use 1 ADC only). This is not really necessary for my economical balancer. The proper calculations can predict the average and the RMS values of the transferred current during the charging and discharging of the capacitor for different values of the parameters of interest.
About the gate drivers, I can't get suitable gate driver ICs. This is why I tend to use rather low switching frequencies.
"...where do you plan to get 24 V?" sorry, I couldn't get what you mean. I have two 12V batteries in series and a capacitor.
While designing a controller, there are usually priorities to fulfill first. The priority for my balancer is to make it reliable; in other words, not to be damaged in any possible natural condition. For example, before starting every cycle of charging/discharging the capacitor, the MCU sees if all voltages are within limits (not too high, not too low). If they are not, it keeps monitoring them while all MOSFETs are off. The reason for which I started designing it is that, as I was told, the imported ones don’t last long and need to be repaired once a while!
After my last post, I revised my calculations step by step thinking I will post them here. Although my previous ones gave me that the total MOSFETs dissipation is around 10W, and the average transferred current is around 6A, the new ones showed lower values; 4W and 2.8A respectively.
I mean I will update my excel sheet to double the last values. For instance, the values that are needed by my code are the times (in us) of the charging and discharging which will be listed on two tables. I started with V(batt_2) > V(Batt_1). So, I will also check if the same two tables are valid when V(Batt_1) > V(Batt_2). The index of these tables follows dV; it is 0 for dV=0.01V and 249 for dV=2.50V. These times will be calculated for certain fixed MOSFET dissipation (thanks to the Excel Solver), say 8W (each pair 4W) for example.
I can’t cover all points in the design in a small space like here.
I started designing various products, hardware and firmware, for the local consumers since 1980 (as needed in every period of time). Naturally, I became aware of many solutions while designing a new product. But I have to choose what I can built (with what I have) and let it compete, as possible, similar imported ones (this is how I used to gain my daily bread and of my few assistants for the last 45 years).
You likely know how to build such a balancer when you will need it. And you will obviously do it with what you can get (or order from abroad). Since we live in two different worlds (due to the world’s regulations, since many decades ago), our balancers have to be different too, we like it or not. I mean what I may present here will likely be seen by most readers a sort of an academic study only.
Kerim