How to map voltage to battery percent?
Show older comments
I am testing a battery in an autonomous vehicle for work and need help mapping values in matlab. The batteries we are using have some arbitruary battery percentage that means nothing, what ive been able to figure out through testing is a voltage of 57v means the battery is 100% charged. The battery will go until it completly dies but we dont want that, at 45v the vehicle starts slowing down so im calling that 0%. When we run our vehicles they almost never start at 57v, maybe its 56.9 what ever. I want to classify 57v as 100 percent and 45v as 0 and then map the values recorded by the boat to what ever percentage they correspond to. Any recommendations on getting started with this? Thanks!
1 Comment
Magnus
on 16 Dec 2024
I don't really see that this is a matlab issue? How do you get your data into Matlab, how does Matlab help you calculate anything?
Trying to answer the question: the percentage is a percentage of what, exactly? How much power is left in the battery in kWh:s? Generally speaking, there is no linear relationship between output voltage remaining power. If you can set up a test circuit where you can measure and record the output power in Watts (and contiously integrate to get used energy in J) and simoultaneously the output voltage you will have a graph of voltage vs energy(in reverse).
Accepted Answer
More Answers (0)
Categories
Find more on Simscape Battery in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!