Other Parts Discussed in Thread: TIDA-010232,
Hi TI,
I would like to know how to solve two equations and two unknowns by MCU or EXCEL.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi TI,
I would like to know how to solve two equations and two unknowns by MCU or EXCEL.
Hello Sky,
Thanks for checking with our team! Please take a look at this insulation monitoring reference design, TIDA-010232, and let me know if you have any further questions. Additional code for solving the systems of equations can be found under the "Software" section in TIDCG73.ZIP.
Best regards,
Tilden Chen
Solid State Relays | Applications Engineer
Hi Tilden,
For TIDA-010232, it is ok to use known values into fomulas to come out RisoP and RisoN.
But for fomulas in TPSI2140-Q1 datasheet p17, I do not know how to solve "dual linear simultaneous equations" by MCU or EXCEL.
Hello Sky,
I spent time today looking into this, I see what makes this complicated for MCU/Excel is because RISON and RISOP are difficult to separate. I need another day to get back to you on this.
Best regards,
Tilden Chen
Solid State Relays | Applications Engineer
Hello Sky,
Sorry for the delayed response, I was looking at another solution which became a dead-end. Attached is what I have so far for the Excel file, you can input the variables and change RISOP and RISON to find VADC1 and VADC2. I'm still working on trying to re-arrange the equations to solve for RISOP and RISON directly. Let me provide an update here on Monday.
tpsi2140-q1_batteryv-_equations.xlsx
Best regards,
Tilden Chen
Solid State Relays | Applications Engineer
Hi Tilden,
Thanks for your effort.
If you have any update information please let me know or I don't know how to use this method to do IRM.
Hello Sky,
Thanks for your patience , I've figured out how to re-arrange the equations for RISON and RISOP. Please see the attached Excel.
tpsi2140-q1_batteryv-_IRM.xlsx
Here are the equations in code:
Rison=-(r2^2*r3*vadc1*vpack - r2^2*r3*vadc2*vpack + r1*r2*r3*vadc1*vpack - r1*r2*r3*vadc2*vpack)/(r2^2*vpack^2 + r1^2*vadc1*vadc2 + r2^2*vadc1*vadc2 - r2^2*vadc1*vpack - r2^2*vadc2*vpack + 2*r1*r2*vadc1*vadc2 - r1*r2*vadc1*vpack - r1*r2*vadc2*vpack + r2*r3*vadc1*vpack - r2*r3*vadc2*vpack);
Risop=(r2*r3*vadc1*vpack - r2*r3*vadc2*vpack)/(r1*vadc1*vadc2 + r2*vadc1*vadc2 - r2*vadc1*vpack);
Here's the MATLAB code I used to find the above equations. Please let me know if you have further questions.
6131.batteryv_rearrange_risop_rison.m
Best regards,
Tilden Chen
Solid State Relays | Applications Engineer