A public repository for BMS algorithms for a NUCLEO BOARD.

Dependencies:   mbed

Hi Everyone!

Welcome to this repository from Howey's Research Group at the University of Oxford.

The code published here incorporates BMS algorithms for diagnosis functions such as SOC, SOH and Power estimation on a Kokam 53Ah Li-ion battery. This code was designed to work with a NUCLEO F401-RE board and to be tested with a dSPACE HIL Simulator. A short guide on how the set up works is available at https://bitbucket.org/ff95/bms .

The code is made up of three key parts. "Headers" and "Source" folders and the "main.cpp" file. As the code was generated by converting a Simulink model ( available on the BitBucket page), the headers and source code files generated by the conversion are in the corresponding "Headers" and "Source" folders. The "main.cpp" file sets up the ADC, the USB data transmission and starts the estimation (once a character "y" has been received by the computer it is connected to). It also transmits the data from the estimation via USB. Explanation on how to set up the communication with the board is available at BitBucket webpage, from where a MATLAB file can be downloaded which allows real time communication.

For any questions you can contact the author at federicomariaferrari@gmail.com .

The Simulink and Matlab files, together with a short guide, are all available at: https://bitbucket.org/ff95/bms.

Thanks for trying this out!

Federico

Changes

RevisionDateWhoCommit message
23:447ef1071e49 2017-07-13 fmferrari A working version of the code needed to run an mbed micro controller. default tip
22:caf41c9bb9d0 2017-03-08 fmferrari everything working ;
21:534cd02b6bc4 2017-03-03 fmferrari Version with capacity error but workling; ;
20:efb192150248 2017-02-20 fmferrari Calibrated version - no degradation index output
19:09279ceaa882 2017-02-16 fmferrari working power;
18:4a769322eb39 2017-02-15 fmferrari thermal power seems to working / not checked against dspace
17:9b1f3bf6da0f 2017-02-10 fmferrari Functional Box code;
16:a92fd07112f7 2017-02-08 fmferrari WORKING WITH NORMALIZED Restistance (works with Thermal Modeling IV mbed functions);
15:b39f568faa27 2017-02-08 fmferrari WORGING VERSION WITH AVERAGED SAMPLES;
14:4b5df635f248 2017-02-07 fmferrari Unfiltered "working" version;
13:831eab218c33 2017-01-30 fmferrari a verison;
12:bf3e3b87224e 2016-12-13 fmferrari Working MyBMS fully written by me;
11:e39c490420d2 2016-12-12 fmferrari Non Working version for Duracell battery;
10:c4f0c3a5223f 2016-12-09 fmferrari Simplified working function (apprantely)
9:17c258c67c33 2016-12-09 fmferrari A (what seems) working version. It prints SOC, V and Current
8:339dd9885af3 2016-12-08 fmferrari First Successfully compiled of the EKF
7:e0be546a9112 2016-12-08 fmferrari First working multiplier;
6:cb71171a7108 2016-12-07 fmferrari EKF Not working try 2;
5:dad47e5b9586 2016-12-07 fmferrari Not working try 1;
4:dc0c58eedabb 2016-11-29 fmferrari - Added code to detect the wifi shield
3:2360864c12e2 2016-11-29 fmferrari - Working version
2:089480a12fa2 2016-11-29 fmferrari - Added simple multiplication model from Simulink
1:8cbfe09c6c22 2016-11-29 fmferrari - Everything is working
0:1e567a5a99c3 2016-11-29 fmferrari - initial