• 大小: 5.22MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-20
  • 语言: 其他
  • 标签: matlab  

资源简介

BMS 仿真 策略 基本的控制分析情况 用于学习电池管理系统的基本控制流成

资源截图

代码片段和文件信息

classdef Battery < handle % handle class
   properties (Constant)
      S = 6
      P = 1
      RATED_CAPACITY                        = 3200  % mAh
      NOMINAL_VOLTAGE                       = 3600  % mV
      STD_CH_CURRENT                        = 1.625  % A
      MAX_CH_CURRENT                        = 1700  % A
      MAX_DS_CURRENT                        = 3200  % mA       
      CUTOFF_CURRENT                        = 65    % mA
      MAX_SECURITY_CELL_VOLTAGE             = 4150  % mV  used for security check
      MAX_CELL_VOLTAGE                      = 4110 % mV  used for SetPoint Estimation alghoritm
      MIN_CELL_VOLTAGE                      = 2500  % mV  
      CELL_VOLTAGE_START_SP_CH_REDUCTION    = 4000  % mV
      CELL_VOLTAGE_START_BALANCING          = 4000  % mV
      DELTA_VOLTAGE_EOB                     = 30    % mV
      MAX_CELL_TEMPERATURE                  = 40    % 癈
      MIN_CELL_TEMPERATURE                  = 0     % 癈
      MAX_BMS_TEMPERATURE                   = 75    % 癈
      MANUFACTURER                          = ‘Panasonic‘
      PART_NUMBER                           = ‘NCR18650B‘
      DELTA_VOLTAGE_EOC                     = 5      % mV
      R_BAL                                 = 10     %ohm
      NOTE = ‘6s1p battery made with 18650 lithium cells. This battery is used to test BMSino‘
   end
   
   properties 
      BatteryName                   = ‘Unnamed Battery‘
      CellsVoltages                 = NaN*zeros(61)
      CellsTemperatures             = NaN*zeros(61)
      CellsBalancingStatus          = NaN*zeros(61) %left justified
      % e.g. cell 1 and 2 on balancing: 110000
      BMSTemperature                = NaN
      TotalCurrent                  = NaN
      TotalVoltage                  = NaN
      BatteryFullyCharged           = NaN
      StateOfCharge                 = NaN   % not yet implemented
      StateOfHealth                 = NaN   % not yet implemented
      R_INT = NaN*ones(61) .* 38           %mOhm
      
      SerialObj
   end
   
%    properties (Access = private)
%        SerialObj
%    end
   
   methods
       % Constructor
       function obj = Battery(name)
           if (nargin > 0 && ischar(name))
                obj.BatteryName = name;
           else
               error(‘Battery wants a name. Name must be a string.‘);
           end
       end
       % Destructor
%        function delete(obj)
%            fclose(obj.SerialObj);
%        end
       
       % Initialize serial communication
       function COMinit(obj baudrate COMport)
           if (nargin == 3 && ischar(COMport) && isnumeric(baudrate))
                obj.SerialObj = serial(COMport);
                set(obj.SerialObj ‘BaudRate‘baudrate);
                fopen(obj.SerialObj);
                disp(‘waiting for serial communication...‘);
                pause(2);
%                 ask for instrument name and check if it responds
%                 correctly
%                 obj.BatteryName = namefprintf(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-19 08:18  BMSino-Matlab-test-master\
     文件          11  2018-03-19 08:18  BMSino-Matlab-test-master\.gitignore
     目录           0  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\
     文件        5084  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.cproject
     文件         400  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.ino.cpp
     文件        1358  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.project
     目录           0  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.settings\
     文件        1022  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.settings\language.settings.xml
     文件       68106  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\.settings\org.eclipse.cdt.core.prefs
     文件        6136  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Arduino_Simulink_com.ino
     目录           0  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\
     文件        2130  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\.ino.cpp.d
     文件       18102  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\.ino.cpp.o
     文件          12  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\Arduino_Simulink_com.eep
     文件       35899  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\Arduino_Simulink_com.elf
     文件       19464  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\Arduino_Simulink_com.hex
     文件      317180  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\arduino.ar
     目录           0  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\
     文件        1968  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\CDC.cpp.d
     文件        1641  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\CDC.cpp.o
     文件        2400  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial.cpp.d
     文件       18992  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial.cpp.o
     文件        2402  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial0.cpp.d
     文件       12589  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial0.cpp.o
     文件        2402  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial1.cpp.d
     文件        1653  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial1.cpp.o
     文件        2402  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial2.cpp.d
     文件        1653  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial2.cpp.o
     文件        2402  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial3.cpp.d
     文件        1653  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\HardwareSerial3.cpp.o
     文件        2350  2018-03-19 08:18  BMSino-Matlab-test-master\Arduino_com\Release\core\IPAddress.cpp.d
............此处省略135个文件信息

评论

共有 条评论