-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject Breakdown Details
65 lines (42 loc) · 3.24 KB
/
Project Breakdown Details
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Steps to Use Battery Charge/Discharge Data in Excel in the Project:
Step 1: Understand the Data Structure
Understand the structure of the data, such as:
Time-stamped data (e.g., timestamp, current, voltage, temperature).
Voltage and current readings over time for charge and discharge.
Discharge cycles or charging phases (constant current or constant voltage).
Thresholds like over-voltage, under-voltage, or temperature data.
Step 2: Import Data into Your Code
Import the Excel data into programming environment C/C++, Python (I used Python).
Step 3: Data Preprocessing
Before using the data in algorithms, we need to preprocess it:
Remove or fill missing data: If your data has gaps, handle them by either filling in values or removing those rows.
Time synchronization: Ensure the time intervals between data points are consistent, or interpolate if necessary.
Units conversion: Make sure that the units of current, voltage, and temperature are consistent with algorithm's requirements.
Step 4: Simulate Charging/Discharging Algorithm
Using the imported data, you can simulate the charge/discharge process and validate your BMS control algorithms.
4.1 Charge Algorithm Simulation: Use voltage and current data to simulate the charging process.
Calculate the SOC (State of Charge) by integrating the current over time:
4.2 Discharge Algorithm Simulation: Use the voltage data and check against the predefined minimum voltage to simulate the discharge process.
If the battery voltage falls below a threshold (e.g., 3.0V), stop discharging.
4.3 Safety Mechanisms: Add safety checks based on the voltage and temperature data:
If voltage exceeds a maximum safe limit (e.g., 4.2V), stop charging.
If temperature exceeds a threshold (e.g., 45°C), reduce charging current.
Step 5: Charge/Discharge Control Logic
Use the imported data to trigger different phases of charging and discharging:
Constant Current (CC) phase: When the voltage is below the maximum cutoff, maintain a constant charging current.
Constant Voltage (CV) phase: When the voltage reaches the maximum threshold (e.g., 4.2V), switch to constant voltage mode and reduce the charging current.
Step 6: Visualization
For a better understanding of the results, visualize the data and algorithm's output:
Plot the voltage, current, and SOC (State of Charge) vs time.
Plot charging/discharging phases and safety mechanism activations.
Step 7: Testing and Validation
After integrating the data into the project:
Test if the SOC estimation, safety algorithms, and charging/discharging controls work as expected with the real-world data.
Check if charging algorithm correctly switches between CC and CV phases.
Validate the system’s response to safety thresholds for over-voltage, under-voltage, and temperature.
Conclusion:
By using the exported battery charge/discharge data, we can effectively simulate real-world scenarios for your Battery Charge/Discharge Control Algorithm. The data will help you tune and test your algorithms and verify how your system performs with actual usage patterns.
This approach enables to:
Validate and enhance the robustness of your charging/discharging algorithms.
Test safety features using real battery data.
Visualize and report results to better understand your system’s behavior.