Composing Optimized Embedded Software Architectures for Physics-Based EKF-MPC Smart Sensor for Li-Ion Battery Cell Management
Abstract
:1. Introduction
2. Background: PBM, EKF, and MPC
2.1. Physics-Based Model (PBM)
2.2. Extended Kalman Filter (EKF) Observer
2.3. Model Predictive Control (MPC)
3. Proposed Embedded Software Architecture for Physics-Based EKF-MPC
3.1. EKF
Algorithm 1: Compute state and error covariance time update |
Algorithm 2: Compute SOC and lithium concentration based on the state time update |
Algorithm 3: Compute the standard output function, yvar,k |
Algorithm 4: Compute the linearized matrices, and |
Algorithm 5: Compute the Kalman Gain matrix, L |
Algorithm 6: Compute the state measurement update |
Algorithm 7: Compute the error covariance measurement update |
Algorithm 8: Functional Flow of Extended Kalman Filter |
|
3.2. MPC
Algorithm 9: Functional Flow of Physics-Based Model Predictive Control |
1. Calculate next state for the state vector based on current state from EKF 2. Calculate change increment for the state vector and control signals 3. Compute E and F from the cost optimization forms 4. Compute the unconstrained solution 5. Build M and γ based onandfrom Equation (18) 6. If M (DU) ≤ γ is true, END MPC, do nothing. 7. Else execute Hildreth QP to provide constrained solution increment 8. Update control signal, 9. Final constraint check onto insure it stays within operating bounds 10. Update SOCmpc with SOC from EKF |
Algorithm 10: MPC initialization of state, control signal, and SOC |
Algorithm 11: Compute the unconstrained solution for MPC |
Algorithm 12: Functional Flow of Hildreth’s Quadratic Programming solution for MPC, constrained solution |
For iterations 1 to 40
|
4. Experimental Results and Analysis
4.1. Functional Verification
4.2. Performance Analysis: Execution Time, Speedup, and Code Size
4.3. Analysis of Existing Works on Embedded Software Designs for PB-EKF-MPC
5. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Muhammad, S.; Long, X.; Muhammad, S. COVID-19 pandemic and environmental pollution: A blessing in disguise? Sci. Total Environ. 2020, 728, 138820. [Google Scholar] [CrossRef] [PubMed]
- Florentino, G. Model Predictive Control Implementations for Management of Lithium-ion Battery Celss and Packs using Reduced-Order Electrochemical Models. Ph.D. Thesis, Department of Electrical and Computer Engineering, University of Colorado Colorado Springs (UCCS), Colorado Springs, CO, USA, 2018. Available online: https://www.proquest.com/docview/2038970011/fulltextPDF/F3F0AEABBDA74571PQ/1?accountid=25388 (accessed on 13 August 2022).
- Florentino, G.; Trimboli, M.S. Lithium-ion Battery Management Using Physics-based model Predictive Control and DC-DC converter. In Proceedings of the 2018 IEEE Transportation Electrification Conference and Expo (ITEC), Long Beach, CA, USA, 13–15 June 2018. [Google Scholar]
- Madsen, A.K.; Perera, D.G. Efficient Embedded Architectures for Fast-Charge Model Predictive Control for Battery Cell Management in Electric Vehicles. EURASIP J. Embed. Syst. 2018, 2018, 2. [Google Scholar] [CrossRef]
- Moura, S.J.; Argomedo, F.B.; Klein, R.; Mirtabatabaei, A.; Krstic, M. Battery State Estimation for a Single Particle Model with Electrolyte Dynamics. IEEE Trans. Control Syst. Technol. 2017, 25, 453–468. [Google Scholar] [CrossRef]
- Stetzel, K.D.; Aldrich, L.L.; Trimboli, M.S.; Plett, G.L. Electrochemical state and internal variables estimation using a reduced-order physcis-based model of a lithium-ion cell and an extended Kalman filter. J. Power Sources 2015, 278, 490–505. [Google Scholar] [CrossRef]
- Dai, Y.; Yu, S.; Yan, Y. An Adaptive EKF-FMPC for the Trajectory Tracking of UVMS. IEEE J. Ocean. Eng. 2019, 45, 699–713. [Google Scholar] [CrossRef]
- Liu, J. Computationally Efficient Online Model-Based Control and Estimation for Lithium-Ion Batteries; The Pennsylvania State University: State College, PA, USA, 2017. [Google Scholar]
- Pozzi, A.; Torchio, M.; Braatz, R.D.; Raimondo, D.M. Optimal charging of an electric vehicle battery pack: A real-time sensitivity-based model predictive control approach. J. Power Sources 2020, 461, 228133. [Google Scholar] [CrossRef]
- Plett, G.L. Extended Kalman filtering for battery management systems of LiPb-based HEV battery packs, Part 3. State and parameter estimation. J. Power Sources 2004, 134, 277–292. [Google Scholar] [CrossRef]
- Smiley, A.; Plett, G.L. An adaptive physics-based reduced-order model of an aged lithium-ion cell, selected using an interacting multiple-model kalman filter. J. Enery Storage 2018, 2018, 120–134. [Google Scholar] [CrossRef]
- Lee, J.L.; Chemistruck, A.; Plett, G.L. Discrete-time realization of transcendental impedance models, with application to modeling spherical solid diffusion. J. Power Sources 2012, 206, 367–377. [Google Scholar] [CrossRef]
- Environmental Protection Agency. Vehicle and Fuels Emissions Testing Dynanometer Drive Schedules. EPA Web Archive. 2017. Available online: https://www.epa.gov/vehicle-and-fuel-emissions-testing/dynamometer-drive-schedules (accessed on 2 July 2022).
- Xavier, M.A. Efficient Strategies for Predictive Cell-Level Control of Lithium-Ion Batteries. Ph.D. Thesis, University of Colorado, Colorado Springs, CO, USA, 2016. Available online: https://www.proquest.com/docview/1864628797?pq-origsite=gscholar&fromopenview=true (accessed on 15 July 2022).
- Xilinx Inc. VC707 Evaluation Board for the Virtex-7 FPGA User Guide; UG885 (v1.8); Xilinx Inc.: San Jose, CA, USA, 2019. [Google Scholar]
- Xilinx Inc. Getting Started with the Virtex-7 FPGA VC707 Evaluation Kit; UG848 (v1.4.1); Xilinx Inc.: San Jose, CA, USA, 2015. [Google Scholar]
- Xilinx Inc. MicroBlaze Processor Reference Guide; UG984 (v2018.2); Xilinx Inc.: San Jose, CA, USA, 2018. [Google Scholar]
- Xilinx Inc. Vivado Design Suite User Guide—Using the Vivado IDE; UG893 (v2020.2); Xilinx Inc.: San Jose, CA, USA, 2021. [Google Scholar]
- Xilinx Inc. Vivado Design Suite User Guide—Getting Started; UG910 (v2021.2); Xilinx Inc.: San Jose, CA, USA, 2021. [Google Scholar]
- Perkins, R.D.; Randall, A.V.; Zhang, X.; Plett, G.L. Controls oriented reduced order modeling of lithium deposition on overcharge. J. Power Sources 2012, 209, 318–325. [Google Scholar] [CrossRef]
- Xilinx Inc. AXI Timer v.2.0—LogiCORE IP Product Guide; Vivado Design Suite, PG079; Xilinx Inc.: San Jose, CA, USA, 2016. [Google Scholar]
- Shafiq, M.; Ali, Z.A.; Ahmed, M.A.; Farooq, F. Altitude Controlling and Trajectory Tracking of Quadrotor. SF J. Aviat. Aeronaut. Sci. 2018, 1, 1009. [Google Scholar]
- Mehndiratta, M.; Kayacan, E.; Patel, S.; Kayacan, E.; Chowdhary, G. Learning-Based Fast Nonlinear Model Predictive Control for Custom-Made 3D Printed Ground and Aerial Robots. In Handbook of Model Predictive Control; Birkhäuser: Cham, Switzerland, 2018; pp. 581–605. [Google Scholar]
- Perera, D.G.; Li, K.F. Analysis of Single-Chip Hardware Support for Mobile and Embedded Applications. In Proceedings of the IEEE Pacific Rim International Conference on Communication, Computers, and Signal Processing, (PacRim’13), Victoria, BC, Canada, 27–29 August 2013; pp. 369–376. [Google Scholar]
- Shahrouzi, S.N.; Perera, D.G. Optimized Hardware Accelerators for Data Mining Applications on Embedded Platform: Case Study Principal Component Analysis. Elsevier J. Microprocess. Microsyst. 2019, 65, 79–96. [Google Scholar] [CrossRef]
- Perera, D.G.; Li, K.F. Hardware Acceleration for Similarity Computations of Feature Vectors. IEEE Can. J. Electr. Comput. Eng. 2008, 33, 21–30. [Google Scholar] [CrossRef]
- Madsen, A.K.; Trimboli, M.S.; Perera, D.G. An optimized fpga-based hardware accelerator for physics-based ekf for battery cell management. In Proceedings of the IEEE International Symposium on Circuits and Systems, Sevilla, Spain, 10–21 October 2020; pp. 1–5. [Google Scholar]
- Madsen, A.K. Optimized Embedded Architectures for Model Predictive Control Algorithms for Battery Cell Management Systems in Electric Vehicles. Ph.D. Dissertation, Department of Electrical & Computer Engineering, University of Colorado, Colorado Springs, CO, USA, August 2020. Available online: https://www.proquest.com/docview/2456888387?pq-origsite=gscholar&fromopenview=true (accessed on 15 July 2022).
- Ramadurgam, S.; Perera, D.G. An Efficient FPGA-Based Hardware Accelerator for Convex Optimization-Based SVM Classifier for Machine Learning on Embedded Platforms. Electronics 2021, 10, 36. [Google Scholar] [CrossRef]
- Mohsin, M.A.; Perera, D.G. An FPGA-Based Hardware Accelerator for K-Nearest Neighbor Classification for Machine Learning on Mobile Devices. In Proceedings of the IEEE/ACM International Symposium on Highly Efficient Accelerators and Reconfigurable Technologies, (HEART’18), Toronto, ON, Canada, 7–9 June 2018. [Google Scholar]
- Alkamil, A.; Perera, D.G. Efficient FPGA-Based Reconfigurable Accelerators for SIMON Cryptographic Algorithm on Embedded Platforms. In Proceedings of the IEEE International Conferences on Reconfigurable Computing and FPGAs, (ReConFig’19), Cancun, Mexico, 9–11 December 2019. [Google Scholar]
- Alkamil, A.; Perera, D.G. Towards Dynamic and Partial Reconfigurable Hardware Architectures for Cryptographic Algorithms on Embedded Devices. Open Access J. IEEE 2020, 8, 221720–221742. [Google Scholar] [CrossRef]
- Perera, D.G.; Li, K.F. A Design Methodology for Mobile and Embedded Applications on FPGA-Based Dynamic Reconfigurable Hardware. Int. J. Embed. Syst. 2019, 11, 23. [Google Scholar] [CrossRef]
- Perera, D.G. Analysis of FPGA-Based Reconfiguration Methods for Mobile and Embedded Applications. In Proceedings of the 12th ACM FPGAWorld International Conference, (FPGAWorld’15), Stockholm, Sweden, 8–10 September 2015; pp. 15–20. [Google Scholar]
- Perera, D.G.; Li, K.F. FPGA-Based Reconfigurable Hardware for Compute Intensive Data Mining Applications. In Proceedings of the 6th IEEE International Conference on P2P, Parallel, Grid, Cloud, and Internet Computing, (3PGCIC’11), Barcelona, Spain, 26–28 October 2011; pp. 100–108. [Google Scholar]
- Shahrouzi, S.N.; Perera, D.G. Dynamic Partial Reconfigurable Hardware Architecture for Principal Component Analysis on Mobile and Embedded Devices. EURASIP J. Embed. Syst. 2017, 2017, 25. [Google Scholar] [CrossRef]
- Raghavan, R.; Perera, D.G. A Fast and Scalable FPGA-Based Parallel Processing Architecture for K-Means Clustering for Big Data Analysis. In Proceedings of the IEEE Pacific Rim International Conference on Communications, Computers, and Signal Processing, (PacRim’17), Victoria, BC, Canada, 21–23 August 2017; pp. 1–8. [Google Scholar]
- Perera, D.G.; Li, K.F. Parallel Computation of Similarity Measures Using an FPGA-Based Processor Array. In Proceedings of the 22nd IEEE International Conference on Advanced Information Networking and Applications, (AINA’08), Okinawa, Japan, 25–28 March 2008; pp. 955–962. [Google Scholar]
- Shahrouzi, S.N.; Alkamil, A.; Perera, D.G. Towards Composing Optimized Bi-Directional Multi-Ported Memories for Next-Generation FPGAs. Open Access J. IEEE 2020, 8, 91531–91545. [Google Scholar] [CrossRef]
- Shahrouzi, S.N.; Perera, D.G. An Efficient Embedded Multi-Ported Memory Architecture for Next-Generation FPGAs. In Proceedings of the 28th Annual IEEE International Conferences on Application-Specific Systems, Architectures, and Processors, (ASAP’17), Seattle, WA, USA, 12–14 July 2017; pp. 83–90. [Google Scholar]
Executable Code (Bytes) | Data (Bytes) | Total Size (Bytes) | Total Size (Kilobytes) |
---|---|---|---|
60,352 | 41,023 | 101,616 | 99.23 KB |
HQP Iteration Count | Worst Case Execution Time (Seconds) | Number of Battery Cells Supported per Available Control Interval Time | |||
---|---|---|---|---|---|
1.0 s Control Interval | 0.5 s Control Interval | 0.4 s Control Interval | 0.3 s Control Interval | ||
500 | 0.068213 | 14 | 7 | 5 | 4 |
400 | 0.055254 | 18 | 9 | 7 | 5 |
300 | 0.042236 | 23 | 11 | 9 | 7 |
250 | 0.035809 | 27 | 13 | 11 | 8 |
200 | 0.029254 | 34 | 17 | 13 | 10 |
Configuration | Average Execution Time (in ms) | Speedup over Embedded Software | Speedup over Baseline Matlab |
---|---|---|---|
Embedded software architecture (100 MHz) | 4.811 ms | 0.728 | |
Baseline Matlab model (3.1 GHz) | 3.503 ms | 1.373 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Madsen, A.K.; Perera, D.G. Composing Optimized Embedded Software Architectures for Physics-Based EKF-MPC Smart Sensor for Li-Ion Battery Cell Management. Sensors 2022, 22, 6438. https://doi.org/10.3390/s22176438
Madsen AK, Perera DG. Composing Optimized Embedded Software Architectures for Physics-Based EKF-MPC Smart Sensor for Li-Ion Battery Cell Management. Sensors. 2022; 22(17):6438. https://doi.org/10.3390/s22176438
Chicago/Turabian StyleMadsen, Anne K., and Darshika G. Perera. 2022. "Composing Optimized Embedded Software Architectures for Physics-Based EKF-MPC Smart Sensor for Li-Ion Battery Cell Management" Sensors 22, no. 17: 6438. https://doi.org/10.3390/s22176438
APA StyleMadsen, A. K., & Perera, D. G. (2022). Composing Optimized Embedded Software Architectures for Physics-Based EKF-MPC Smart Sensor for Li-Ion Battery Cell Management. Sensors, 22(17), 6438. https://doi.org/10.3390/s22176438