{"id":19507999,"url":"https://github.com/mathworks-teaching-resources/battery-systems","last_synced_at":"2026-02-09T11:36:54.802Z","repository":{"id":256811182,"uuid":"856496568","full_name":"MathWorks-Teaching-Resources/Battery-Systems","owner":"MathWorks-Teaching-Resources","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T17:32:57.000Z","size":9240,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"release","last_synced_at":"2025-03-31T07:22:18.991Z","etag":null,"topics":["battery","courseware","cwm","engineering","matlab","simscape","simulink"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathWorks-Teaching-Resources.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T17:11:33.000Z","updated_at":"2024-11-14T17:33:00.000Z","dependencies_parsed_at":"2025-01-08T11:41:33.024Z","dependency_job_id":null,"html_url":"https://github.com/MathWorks-Teaching-Resources/Battery-Systems","commit_stats":null,"previous_names":["mathworks-teaching-resources/battery-systems"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBattery-Systems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBattery-Systems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBattery-Systems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBattery-Systems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathWorks-Teaching-Resources","download_url":"https://codeload.github.com/MathWorks-Teaching-Resources/Battery-Systems/tar.gz/refs/heads/release","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831098,"owners_count":21810777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["battery","courseware","cwm","engineering","matlab","simscape","simulink"],"created_at":"2024-11-10T23:02:50.381Z","updated_at":"2026-02-09T11:36:54.797Z","avatar_url":"https://github.com/MathWorks-Teaching-Resources.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# \u003cspan style=\"color:rgb(213,80,0)\"\u003eBattery Systems: introduction \u003c/span\u003e\n\n\n[![View on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/172770-battery-systems-introduction) or [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=README.mlx)\n\n[![MATLAB Versions Tested](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FMathWorks-Teaching-Resources%2FBattery-Systems%2Frelease%2FImages%2FTestedWith.json)](https://MathWorks-Teaching-Resources.github.io/Battery-Systems)\n\n**Curriculum Module**\n\n_Created with R2024a. Compatible with R2024a and later releases._\n\n# Information \n\nThis curriculum module contains interactive [ MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that contain learning material covering the fundamental concepts and terminology of battery systems. The focus is on designing and modeling battery systems using different tools (MATLAB, Simulink, and Simscape).\n\n\n## Background\n\nYou can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers basic battery pack design, battery cell modeling (electrical and thermal), and the basics of battery management systems. It also includes examples of modeling using different approaches (MATLAB, Simulink, and Simscape) and State of Charge (SoC) estimation.\n\n\nThe instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the \u003cimg src=\"Images/EndIcon.png\" width=\"19\" alt=\"EndIcon.png\"\u003e Stop button in the **RUN** section of the **Live Editor** tab in the MATLAB Toolstrip.\n\n## Contact Us\n\nContact the [MathWorks Educator Content Development Team](mailto:onlineteaching@mathworks.com) if you would like to provide feedback, or if you have a question.\n\n\n## Prerequisites\n\nThis module assumes knowledge of electrical circuits as discussed in [DC Circuit Analysis](https://github.com/MathWorks-Teaching-Resources/DC-Circuit-Analysis). There is minimal MATLAB knowledge required for these scripts, but you could use [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) as a resource to acquire familiarity with live scripts and MATLAB syntax. Depending on your learning path through the module, you might want to add [Simulink Onramp](https://matlabacademy.mathworks.com/details/simulink-onramp/simulink) or [Simscape Onramp](https://matlabacademy.mathworks.com/details/simscape-onramp/simscape) to gain familiarity with these tools.\n\n## Getting Started\n### Accessing the Module\n### **On MATLAB Online:**\n\nUse the [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj) link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.\n\n### **On Desktop:**\n\nDownload or clone this repository. Open MATLAB, navigate to the folder containing these scripts, and double\\-click [BatterySystem.prj](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=README.mlx). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start. \n\n\nEnsure you have all the required products (listed below) installed. If you need to include a product, add it using the Add\\-On Explorer. To install an add\\-on, go to the **Home** tab and select  \u003cimg src=\"Images/AddOnsIcon.png\" width=\"16\" alt=\"AddOnsIcon.png\"\u003e **Add-Ons** \u003e **Get Add-Ons**. \n\n\n## Products\n\nThis module uses all of the following products:\n\n-  MATLAB® \n-  Simulink® \n-  Simscape™ \n-  Simscape Battery™ \n-  Simscape Electrical™ \n-  Symbolic Math Toolbox™ \n-  Curve Fitting Toolbox™ \n-  Statistics and Machine Learning Toolbox™ \n\n# Scripts\n## [**EVBatteryDesign.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=Scripts/EVBatteryDesign.mlx) \n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/image_3.svg\" width=\"157\" alt=\"image_3.svg\"\u003e \u003cbr\u003e  | **In this script, students will...** \u003cbr\u003e $\\bullet$ Be able to understand battery configuration (parallel, series). \u003cbr\u003e $\\bullet$ Determine power and energy requirements for a battery pack. \u003cbr\u003e $\\bullet$ Validate their design through simulation. \u003cbr\u003e   |\n|      |       |\n\n## [**HowDoBatteryWork.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=Scripts/HowDoBatteryWork.mlx)\n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/image_4.svg\" width=\"171\" alt=\"image_4.svg\"\u003e \u003cbr\u003e  | **In this script, students will...** \u003cbr\u003e $\\bullet$ Learn about the different components of a battery. \u003cbr\u003e $\\bullet$ Learn how batteries work. \u003cbr\u003e $\\bullet$ Build a functional model of a battery. \u003cbr\u003e   |\n|      |       |\n\n## [**BatteryModeling.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=\u0026file=FunctionLibrary/BatteryModeling.mlx)\n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/energy-storage.svg\" width=\"171\" alt=\"energy-storage.svg\"\u003e \u003cbr\u003e  | **In this script, students will...** \u003cbr\u003e $\\bullet$ Learn about battery modeling principles. \u003cbr\u003e $\\bullet$ Conduct experimental observations and data analysis. \u003cbr\u003e $\\bullet$ Develop and calibrate an equivalent circuit model for a battery cell. \u003cbr\u003e   |\n|      |       |\n\n## [**ThermalModeling.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=Scripts/ThermalModeling.mlx)\n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/Thermal.svg\" width=\"171\" alt=\"Thermal.svg\"\u003e \u003cbr\u003e  | **In this script, students will...** \u003cbr\u003e $\\bullet$ Learn about battery thermal modeling principles. \u003cbr\u003e $\\bullet$ Develop a computation model of battery heating and cooling. \u003cbr\u003e $\\bullet$ Compare different heating and cooling scenarios. \u003cbr\u003e   |\n|      |       |\n\n## [**BatteryManagementSystem.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Battery-Systems\u0026project=BatterySystem.prj\u0026file=\u0026file=FunctionLibrary/BatteryManagementSystem.mlx)\n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/SoC.png\" width=\"171\" alt=\"SoC.png\"\u003e \u003cbr\u003e  | **In this script, students will...** \u003cbr\u003e $\\bullet$ Learn about constant voltage and constant current charging. \u003cbr\u003e $\\bullet$ Develop algorithms to estimate a battery state of charge (SoC). \u003cbr\u003e   |\n|      |       |\n\n# Related Courseware Modules\n## [ DC Circuit Analysis](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/DC-Circuit-Analysis\u0026project=DCCircuitAnalysis.prj)\n|      |      |\n| :-- | :-- |\n| \u003cimg src=\"Images/image_8.png\" width=\"171\" alt=\"image_8.png\"\u003e \u003cbr\u003e  | **Available on:** \u003cbr\u003e [\u003cimg src=\"Images/OpenInFX.png\" width=\"91\" alt=\"OpenInFX.png\"\u003e](https://www.mathworks.com/matlabcentral/fileexchange/103375-dc-circuit-analysis) \u003cbr\u003e [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/DC-Circuit-Analysis\u0026project=DCCircuitAnalysis.prj)  \u003cbr\u003e [GitHub](https://github.com/MathWorks-Teaching-Resources/DC-Circuit-Analysis)  \u003cbr\u003e   |\n|      |       |\n\n\nOr feel free to explore our other [modular courseware content](https://www.mathworks.com/matlabcentral/fileexchange/?q=tag%3A%22courseware+module%22\u0026sort=downloads_desc_30d).\n\n# Educator Resources\n-  [Educator Page](https://www.mathworks.com/academia/educators.html) \n\n# Contribute \n\nLooking for more? Find an issue? Have a suggestion? Please contact the [MathWorks Educator Content Development Team](mailto:%20onlineteaching@mathworks.com). If you want to contribute directly to this project, you can find information about how to do so in the [CONTRIBUTING.md](https://github.com/MathWorks-Teaching-Resources/Battery-Systems/blob/release/CONTRIBUTING.md) page on GitHub.\n\n\n *©* Copyright 2025 The MathWorks™, Inc\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fbattery-systems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-teaching-resources%2Fbattery-systems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fbattery-systems/lists"}