-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBalancer Flowchart.drawio
131 lines (131 loc) · 12.7 KB
/
Balancer Flowchart.drawio
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<mxfile host="app.diagrams.net" modified="2021-09-24T20:23:24.823Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" etag="w7Wsd9NtGFHrY6wJ7Lk9" version="15.3.0" type="github">
<diagram id="6a731a19-8d31-9384-78a2-239565b7b9f0" name="Page-1">
<mxGraphModel dx="1550" dy="835" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" background="none" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2" value="start" style="shape=mxgraph.flowchart.terminator;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="260" y="60" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="3" value="<div>Hole alle <br></div><div>Zellspannungen</div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="130" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="7" style="fontStyle=1;strokeColor=#003366;strokeWidth=1;html=1;" parent="1" source="2" target="3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="8" style="fontStyle=1;strokeColor=#003366;strokeWidth=1;html=1;" parent="1" source="3" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="320" y="250" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="As8NUsJZpkAplVv55lTX-58" value="nein" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="As8NUsJZpkAplVv55lTX-55" target="As8NUsJZpkAplVv55lTX-57" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-36" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="As8NUsJZpkAplVv55lTX-55" target="2" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="100" y="300" />
<mxPoint x="100" y="75" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="As8NUsJZpkAplVv55lTX-55" value="Alles okay sonst?<br><div>Keine <br></div><div>Notabschaltung aktiv?</div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.decision;whiteSpace=wrap;" parent="1" vertex="1">
<mxGeometry x="220" y="250" width="200" height="100" as="geometry" />
</mxCell>
<mxCell id="As8NUsJZpkAplVv55lTX-60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="As8NUsJZpkAplVv55lTX-57" target="As8NUsJZpkAplVv55lTX-59" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="As8NUsJZpkAplVv55lTX-57" value="<div>Berechne höchste</div><div> n Zellspannungen</div><div>und merke die Zellen<br></div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="380" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="As8NUsJZpkAplVv55lTX-59" target="Qxgk9tP6GJtS6y6YZx59-8" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="520" y="570" as="targetPoint" />
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="As8NUsJZpkAplVv55lTX-59" value="<div>Berechne höchste <br></div><div>und niedrigste</div><div> Zellspannung</div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="500" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="77T18frlUKOqGSXx3T2g-8" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="90" y="520" as="targetPoint" />
<Array as="points">
<mxPoint x="90" y="785" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-16" value="<div><br></div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="77T18frlUKOqGSXx3T2g-12" vertex="1" connectable="0">
<mxGeometry x="-0.4479" y="4" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-19" value="nein" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="77T18frlUKOqGSXx3T2g-12" vertex="1" connectable="0">
<mxGeometry x="-0.4479" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-21" value="ja" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="77T18frlUKOqGSXx3T2g-8" target="77T18frlUKOqGSXx3T2g-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-8" value="<div>CellDiff</div><div> &gt; min_cellDiff </div>" style="rhombus;whiteSpace=wrap;html=1;fontStyle=0;strokeWidth=2;gradientDirection=north;" parent="1" vertex="1">
<mxGeometry x="220" y="730" width="200" height="110" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="77T18frlUKOqGSXx3T2g-13" target="2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-13" value="Warte <b>relax_time</b>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="440" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-15" value="<div><b>Inputs:</b></div><div>-<b>min_cellDiff</b> - minimale Zellspannungsdifferenz, ab der der Balancer anfängt zu arbeiten (etwa 10mV)<br></div><div>-<b>max_cellDiff</b> - maximale Zellspannungsdifferenz, wo klar ist, irgendwas ist kapuutt (etwa 0,5V)</div><div>-<b>alle Zellspannungen</b></div><div><b>-Generelle Alarmmeldungen</b></div><div><b>-discharge_time -</b> Zeit, die die Balancer Pins aktiv sind bevor sie wieder ausgeschaltet werden (etwa 5s)<b><br></b></div><div><b>-relax_time -</b> Zeit in der der Balancer wartet bis die Zellen relaxiert haben (etwa 1 Minute)<b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b>Outputs:</b></div><div><b>-CellDiff<br></b></div><div><b>-Discharge Pins</b><br></div>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="560" y="50" width="580" height="190" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="77T18frlUKOqGSXx3T2g-20" target="77T18frlUKOqGSXx3T2g-25" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="fpkRYquKmFT1Zn_f_Tdk-8" value="????" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="77T18frlUKOqGSXx3T2g-20">
<mxGeometry relative="1" as="geometry">
<mxPoint x="160" y="935" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-20" value="<div>CellDiff</div><div>&nbsp;&lt; max_cellDiff </div>" style="rhombus;whiteSpace=wrap;html=1;fontStyle=0;strokeWidth=2;gradientDirection=north;" parent="1" vertex="1">
<mxGeometry x="230" y="895" width="180" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="77T18frlUKOqGSXx3T2g-25" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="320" y="1210" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-25" value="<div>Setzt Discharge Bits</div><div>für die n höchsten <br></div><div>Zellen<br></div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="1040" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="77T18frlUKOqGSXx3T2g-29" target="77T18frlUKOqGSXx3T2g-30" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-29" value="<div>Setzt Discharge Bits</div><div>für die n höchsten <br></div><div>Zellen<br></div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="1210" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="77T18frlUKOqGSXx3T2g-30" target="77T18frlUKOqGSXx3T2g-32" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-30" value="<div>Warte</div><div> discharge_time</div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="1370" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-35" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="77T18frlUKOqGSXx3T2g-32" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="90" y="520" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="77T18frlUKOqGSXx3T2g-32" value="<div>Reset Discharge Bits</div><div>aller Zellen<br></div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="1530" width="159" height="80" as="geometry" />
</mxCell>
<mxCell id="Qxgk9tP6GJtS6y6YZx59-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="Qxgk9tP6GJtS6y6YZx59-8" target="77T18frlUKOqGSXx3T2g-8" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Qxgk9tP6GJtS6y6YZx59-8" value="<div><div>Höchste - niedrigste</div><div>= CellDiff</div></div>" style="shape=mxgraph.flowchart.data;strokeWidth=2;gradientColor=none;gradientDirection=north;fontStyle=0;html=1;" parent="1" vertex="1">
<mxGeometry x="240.5" y="610" width="159" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>