-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve battery (BAT) data streaming and management #476
Comments
cc: @valegagge |
After F2F discussion w/ @valegagge and @maggia80 regarding multiple aspect about BAT we have decided the following:
|
So, as detailed above the following changes have been made:
In the image, I've tried to approximate the discharge curve with the red line. The green and yellow lines are 2 possible limits of voltage for the ~0% of charge. I've decided to use the minimum value of 30000 mV and the max value of 42000 mV since this gave me values that seems to be more in line with what sent by the bms (which is theoretically correct). I've used as comparison the data shown in the screenshot here: https://github.com/icub-tech-iit/tickets/issues/3343#issuecomment-1946269568 it seems that the battery charge percentage correlated to the instant voltage is close to the more accurate value given by the BMS. So I suppose that we can currently accept this approximation. Then, when tested on the robot we can see if the values between BAT and BMS are compatible or they differ a lot and eventually use an offset or change the order of the approximation for the curve to follow better the lower part of the discharge curve.
Therefore, as things now, all the points requested on the ticket should be satisfied. Need to make some tests on the robot for checking the values obtained since I've done tests only on the bench setup. |
ok! |
I need to do another test using only the battery and disconnecting the power supply thus to cover all cases |
@MSECode good! so we should then update the documentation: BAT board provides the voltage of the robot (coming either from power-supply or battery) what about the current read from the BAT and the state of charge? |
yes, sure, the documentation needs to be updated. Then:
|
and for BAT is calculated on the Voltage Which voltage? Should be the voltage of the battery if available. |
Exactly. It is the Battery voltage as here:
|
updated status w/ battery switched OFFBMS | BAT -- | -- |@MSECode when the battery is switched off you should read NaN because the voltage of the pin Battery_voltage should be 0. |
Hi @maggia80 , We checked the code of Battery, where it calculates that value, but it isn't clear to us. (Here the code. ) So the questions are:
|
Hi @MSECode, |
After a f2f chat with @MSECode, Even if the best solution is to create an ad-hoc device and expose ad-hoc API in a new interface, we decided to give more significance to the status. we'll address this new feature in a new issue: robotology/icub-main#952 |
I've checked the origin of that And it is specifically the internal temperature of the microcontroller. cc: @maggia80 |
and for BAT is calculated on the Voltage Which voltage? Should be the voltage of the battery if available. Yes, I agree |
Results after tests on
|
Task description 📝
As requested and discussed in https://github.com/icub-tech-iit/tickets/issues/3343 some improvements should be developed for BAT board, specifically:
Definition of Done ✅
New fw tested and working as AMI group desires
The text was updated successfully, but these errors were encountered: