Wiki source code of 2. Connection
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.2 | 1 | = Headers = |
2 | |||
3 | The BMS Main 2.1 headers are shown in figure below. | ||
4 | |||
![]() |
17.2 | 5 | [[The BMS Main 2.1 headers>>image:1731517946345-632.png||height="417" width="451"]] |
![]() |
1.2 | 6 | |
![]() |
13.1 | 7 | === P1 – header for power supply === |
![]() |
2.2 | 8 | |
![]() |
12.2 | 9 | [[image:1731516593096-166.png||data-xwiki-image-style-alignment="center"]] |
![]() |
2.2 | 10 | |
![]() |
14.1 | 11 | |(% style="width:100px" %)**Pin**|(% style="width:502px" %)**Name**|**Description** |
12 | |(% style="width:100px" %)**1**|(% style="width:502px" %)**GND**|Ground | ||
13 | |(% style="width:100px" %)**2**|(% style="width:502px" %)**V+**|Supply voltage 9-30V | ||
![]() |
4.2 | 14 | |
![]() |
13.1 | 15 | === P15 – header for BMS Logic === |
![]() |
4.2 | 16 | |
![]() |
12.2 | 17 | [[image:1731516577472-301.png||data-xwiki-image-style-alignment="center"]] |
![]() |
4.2 | 18 | |
![]() |
14.1 | 19 | |(% style="width:100px" %)**Pin**|(% style="width:290px" %)**Name**|**Description** |
20 | |(% style="width:100px" %)**1**|(% style="width:290px" %)**RS485_A**|RS-485 line A for communication with BMS Logic | ||
21 | |(% style="width:100px" %)**2**|(% style="width:290px" %)**RS485_B**|RS-485 line B for communication with BMS Logic | ||
22 | |(% style="width:100px" %)**3**|(% style="width:290px" %)**+5V**|Supply voltage for BMS Logic | ||
23 | |(% style="width:100px" %)**4**|(% style="width:290px" %)**GND**|Ground | ||
![]() |
5.2 | 24 | |
![]() |
13.1 | 25 | === P12 – header for current sensor === |
![]() |
5.2 | 26 | |
![]() |
12.2 | 27 | [[image:1731516685999-633.png||data-xwiki-image-style-alignment="center"]] |
![]() |
5.3 | 28 | |
![]() |
16.1 | 29 | |(% style="width:100px" %)**Pin**|(% style="width:293px" %)**Name**|(% style="width:1129px" %)**Description** |
30 | |(% style="width:100px" %)**1**|(% style="width:293px" %)**+5V**|(% style="width:1129px" %)Supply voltage for the current sensor 5V, max 50 mA | ||
31 | |(% style="width:100px" %)**2**|(% style="width:293px" %)**GND**|(% style="width:1129px" %)Ground | ||
32 | |(% style="width:100px" %)**3**|(% style="width:293px" %)**Vcs**|(% style="width:1129px" %)ADC input (current sensor output) | ||
33 | |(% style="width:100px" %)**4**|(% style="width:293px" %)**Vref**|(% style="width:1129px" %)ADC input (current sensor reference signal) | ||
![]() |
5.3 | 34 | |
![]() |
13.1 | 35 | === P13 – header for humidity sensor === |
![]() |
5.3 | 36 | |
![]() |
6.2 | 37 | [[image:1731516942455-641.png||data-xwiki-image-style-alignment="center"]] |
38 | |||
![]() |
16.1 | 39 | |(% style="width:100px" %)**Pin**|(% style="width:292px" %)**Name**|(% style="width:1130px" %)**Description** |
40 | |(% style="width:100px" %)**1**|(% style="width:292px" %)**+5V**|(% style="width:1130px" %)Supply voltage 5 V, max 50 mA | ||
41 | |(% style="width:100px" %)**2**|(% style="width:292px" %)**GND**|(% style="width:1130px" %)Ground | ||
42 | |(% style="width:100px" %)**3**|(% style="width:292px" %)**Vhs**|(% style="width:1130px" %)ADC input (humidity sensor output) | ||
43 | |(% style="width:100px" %)**4**|(% style="width:292px" %)**Vts**|(% style="width:1130px" %)ADC input (temperature sensor output) | ||
![]() |
6.2 | 44 | |
![]() |
13.1 | 45 | === P8 – header of relay 1 === |
![]() |
6.2 | 46 | |
![]() |
12.2 | 47 | [[image:1731517023208-641.png||data-xwiki-image-style-alignment="center"]] |
![]() |
6.2 | 48 | |
49 | By default, relay 1 is used to control the discharging contactor. | ||
50 | |||
![]() |
16.1 | 51 | |(% style="width:100px" %)**Pin**|(% style="width:291px" %)**Name**|(% style="width:1131px" %)**Description** |
52 | |(% style="width:100px" %)**1**|(% style="width:291px" %)**V+**|(% style="width:1131px" %)Switching voltage (up to 55V, max 2A) | ||
53 | |(% style="width:100px" %)**2**|(% style="width:291px" %)**NO**|(% style="width:1131px" %)Normally open contact | ||
![]() |
6.2 | 54 | |
![]() |
13.1 | 55 | === P9 – header of relay 2 === |
![]() |
11.2 | 56 | |
![]() |
12.2 | 57 | [[image:1731517025702-799.png||data-xwiki-image-style-alignment="center"]] |
![]() |
11.2 | 58 | |
59 | By default, relay 2 is used to output the “Allow charging” signal. | ||
60 | |||
![]() |
16.1 | 61 | |(% style="width:100px" %)**Pin**|(% style="width:297px" %)**Name**|(% style="width:1125px" %)**Description** |
62 | |(% style="width:100px" %)**1**|(% style="width:297px" %)**V+**|(% style="width:1125px" %)Switching voltage (up to 55V, max 2A) | ||
63 | |(% style="width:100px" %)**2**|(% style="width:297px" %)**NO**|(% style="width:1125px" %)Normally open contact | ||
![]() |
6.2 | 64 | |
![]() |
13.1 | 65 | === P6 – header of relay 3 === |
![]() |
6.2 | 66 | |
![]() |
12.2 | 67 | [[image:1731517025702-799.png||data-xwiki-image-style-alignment="center"]] |
![]() |
6.2 | 68 | |
![]() |
11.2 | 69 | By default, relay 3 is used to control the charging contactor. |
![]() |
6.2 | 70 | |
![]() |
16.1 | 71 | |(% style="width:100px" %)**Pin**|(% style="width:297px" %)**Name**|(% style="width:1125px" %)**Description** |
72 | |(% style="width:100px" %)**1**|(% style="width:297px" %)**V+**|(% style="width:1125px" %)Switching voltage (up to 55V, max 8A) | ||
73 | |(% style="width:100px" %)**2**|(% style="width:297px" %)**NO**|(% style="width:1125px" %)Normally open contact | ||
![]() |
6.2 | 74 | |
![]() |
13.1 | 75 | === P7 – header of relay 4 === |
![]() |
6.2 | 76 | |
![]() |
12.2 | 77 | [[image:1731517025702-799.png||data-xwiki-image-style-alignment="center"]] |
![]() |
11.2 | 78 | |
79 | By default, relay 4 is used to control the heater. | ||
80 | |||
![]() |
16.1 | 81 | |(% style="width:100px" %)**Pin**|(% style="width:298px" %)**Name**|(% style="width:1124px" %)**Description** |
82 | |(% style="width:100px" %)**1**|(% style="width:298px" %)**V+**|(% style="width:1124px" %)Switching voltage (up to 55V, max 8A) | ||
83 | |(% style="width:100px" %)**2**|(% style="width:298px" %)**NO**|(% style="width:1124px" %)Normally open contact | ||
![]() |
6.2 | 84 | |
![]() |
13.1 | 85 | === P14 – header for CAN and RS-485 interfaces === |
![]() |
6.2 | 86 | |
![]() |
12.2 | 87 | [[image:1731517180930-597.png||data-xwiki-image-style-alignment="center"]] |
![]() |
6.2 | 88 | |
![]() |
15.1 | 89 | |(% style="width:100px" %)**Pin**|**Name**|**Description** |
90 | |(% style="width:100px" %)**1**|**EXT_RS485_A**|RS-485 line A for communication with external equipment | ||
91 | |(% style="width:100px" %)**2**|**CAN_H**|CAN H line for communication with external equipment | ||
92 | |(% style="width:100px" %)**3**|**+5V_CAN**|Supply voltage 5V for external devices, max 200 mA | ||
93 | |(% style="width:100px" %)**4**|**EXT_RS485_B**|RS-485 line B for communication with external equipment | ||
94 | |(% style="width:100px" %)**5**|**CAN_L**|CAN L line for communication with external equipment | ||
95 | |(% style="width:100px" %)**6**|**GND_CAN**|Ground | ||
![]() |
11.2 | 96 | |
![]() |
13.1 | 97 | === P21 – CAN termination resistor jumper === |
![]() |
11.2 | 98 | |
![]() |
12.2 | 99 | [[image:1731517188900-976.png||data-xwiki-image-style-alignment="center"]] |
![]() |
11.2 | 100 | |
101 | To connect the termination resistor between the lines **CAN_H** and **CAN_L**, install a jumper, according to the P21 pinout: | ||
102 | |||
![]() |
16.1 | 103 | |(% style="width:100px" %)**Pin**|(% style="width:299px" %)**Name**|(% style="width:1123px" %)**Description** |
104 | |(% style="width:100px" %)**1-2**|(% style="width:299px" %)**120 Ohm**|(% style="width:1123px" %)Termination resistor 120 Ohm is connected | ||
105 | |(% style="width:100px" %)**2-3**|(% style="width:299px" %)**-**|(% style="width:1123px" %)Termination resistor 120 Ohm is not connected | ||
![]() |
11.2 | 106 | |
![]() |
13.1 | 107 | === P22 - RS-485 termination resistor jumper === |
![]() |
11.2 | 108 | |
![]() |
12.2 | 109 | [[image:1731517195672-298.png||data-xwiki-image-style-alignment="center"]] |
![]() |
11.2 | 110 | |
111 | To connect the termination resistor between the **EXT_RS485_A** and **EXT_RS485_B** lines, install a jumper according to the P22 pinout: | ||
112 | |||
![]() |
16.1 | 113 | |(% style="width:100px" %)**Pin**|(% style="width:301px" %)**Name**|(% style="width:1121px" %)**Description** |
114 | |(% style="width:100px" %)**1-2**|(% style="width:301px" %)**120 Ohm**|(% style="width:1121px" %)Terminating resistor 120 Ohm is connected | ||
115 | |(% style="width:100px" %)**2-3**|(% style="width:301px" %)**-**|(% style="width:1121px" %)Terminating resistor 120 Ohm is not connected | ||
![]() |
11.2 | 116 | |
![]() |
13.1 | 117 | === P11 – header for discrete inputs/outputs === |
![]() |
11.2 | 118 | |
![]() |
12.2 | 119 | [[image:1731517206246-979.png||data-xwiki-image-style-alignment="center"]] |
![]() |
11.2 | 120 | |
![]() |
16.1 | 121 | |(% style="width:100px" %)**Pin**|(% style="width:310px" %)**Name**|(% style="width:1112px" %)**Description** |
122 | |(% style="width:100px" %)**16**|(% style="width:310px" %)**IN_1**|(% style="width:1112px" %)Discrete input #1 “dry contact” (+5V) | ||
123 | |(% style="width:100px" %)**8**|(% style="width:310px" %)**GND_1**|(% style="width:1112px" %)Discrete input #1 “dry contact” (ground) | ||
124 | |(% style="width:100px" %)**15**|(% style="width:310px" %)**IN_2**|(% style="width:1112px" %)Discrete input #2 “dry contact” (+5V) | ||
125 | |(% style="width:100px" %)**7**|(% style="width:310px" %)**GND_2**|(% style="width:1112px" %)Discrete input #2 “dry contact” (ground) | ||
126 | |(% style="width:100px" %)**14**|(% style="width:310px" %)**IN_3**|(% style="width:1112px" %)Discrete input #3 “dry contact” (+5V) | ||
127 | |(% style="width:100px" %)**6**|(% style="width:310px" %)**GND_3**|(% style="width:1112px" %)Discrete input #3 “dry contact” (ground) | ||
128 | |(% style="width:100px" %)**13**|(% style="width:310px" %)**IN_4**|(% style="width:1112px" %)Discrete input #4 “dry contact” (+5V) | ||
129 | |(% style="width:100px" %)**5**|(% style="width:310px" %)**GND_4**|(% style="width:1112px" %)Discrete input #4 “dry contact” (ground) | ||
130 | |(% style="width:100px" %)**12**|(% style="width:310px" %)**OUT_4**|(% style="width:1112px" %)Discrete output #4 (+5V, 20mA) | ||
131 | |(% style="width:100px" %)**4**|(% style="width:310px" %)**GND_OUT_4**|(% style="width:1112px" %)Discrete output #4 (ground) | ||
132 | |(% style="width:100px" %)**11**|(% style="width:310px" %)**OUT_3**|(% style="width:1112px" %)Discrete output #3 (+5V, 20mA) | ||
133 | |(% style="width:100px" %)**3**|(% style="width:310px" %)**GND_OUT_3**|(% style="width:1112px" %)Discrete output #3 (ground) | ||
134 | |(% style="width:100px" %)**10**|(% style="width:310px" %)**OUT_2**|(% style="width:1112px" %)Discrete output #2 (+5V, 20mA) | ||
135 | |(% style="width:100px" %)**2**|(% style="width:310px" %)**GND_OUT_2**|(% style="width:1112px" %)Discrete output #2 (ground) | ||
136 | |(% style="width:100px" %)**9**|(% style="width:310px" %)**OUT_1**|(% style="width:1112px" %)Discrete output #1 (+5V, 20mA) | ||
137 | |(% style="width:100px" %)**1**|(% style="width:310px" %)**GND_OUT_1**|(% style="width:1112px" %)Discrete output #1 (ground) | ||
![]() |
11.2 | 138 | |
![]() |
13.1 | 139 | = Indicators = |
![]() |
11.2 | 140 | |
![]() |
13.1 | 141 | === DS1 – power indicator === |
142 | |||
![]() |
15.1 | 143 | |(% style="width:100px" %)**State**|**Description** |
144 | |(% style="width:100px" %)**Lights red**|The device is powered | ||
145 | |(% style="width:100px" %)**Off**|The device is not powered | ||
![]() |
11.2 | 146 | |
![]() |
13.1 | 147 | === DS2 – operation indicator === |
![]() |
11.2 | 148 | |
![]() |
15.1 | 149 | |(% style="width:100px" %)**State**|**Description** |
150 | |(% style="width:100px" %)**Blinking green**|The BMS firmware is running | ||
151 | |(% style="width:100px" %)**Off**|The BMS firmware is not running | ||
![]() |
11.2 | 152 | |
![]() |
13.1 | 153 | === DS3 – communication indicator === |
![]() |
11.2 | 154 | |
![]() |
15.1 | 155 | |(% style="width:100px" %)**State**|**Description** |
156 | |(% style="width:100px" %)**Blinking yellow (2Hz)**|Initializing communication with BMS Logic boards | ||
157 | |(% style="width:100px" %)**Blinking yellow (25Hz)**|Communication with BMS Logic is established | ||
![]() |
11.2 | 158 | |
![]() |
13.1 | 159 | === DS4 – error indicator === |
![]() |
11.2 | 160 | |
![]() |
15.1 | 161 | |(% style="width:100px" %)**State**|**Description** |
162 | |(% style="width:100px" %)**Blinking red**|Errors in communication with BMS Logic | ||
![]() |
11.2 | 163 | |
![]() |
13.1 | 164 | === DS7 – relay 1 indicator === |
![]() |
11.2 | 165 | |
![]() |
15.1 | 166 | |(% style="width:100px" %)**State**|**Description** |
167 | |(% style="width:100px" %)**Lights green**|Relay #1 is closed | ||
168 | |(% style="width:100px" %)**Off**|Relay #1 is opened | ||
![]() |
11.2 | 169 | |
![]() |
13.1 | 170 | === DS8 – relay 2 indicator === |
![]() |
11.2 | 171 | |
![]() |
17.2 | 172 | (% style="width:287px" %) |
173 | |(% style="width:100px" %)**State**|(% style="width:183px" %)**Description** | ||
174 | |(% style="width:100px" %)**Lights green**|(% style="width:183px" %)Relay #2 is closed | ||
175 | |(% style="width:100px" %)**Off**|(% style="width:183px" %)Relay #2 is opened | ||
![]() |
11.2 | 176 | |
![]() |
13.1 | 177 | === DS5 – relay 3 indicator === |
![]() |
11.2 | 178 | |
![]() |
15.1 | 179 | |(% style="width:100px" %)**State**|**Description** |
180 | |(% style="width:100px" %)**Lights green**|Relay #3 is closed | ||
181 | |(% style="width:100px" %)**Off**|Relay #3 is opened | ||
![]() |
11.2 | 182 | |
![]() |
13.1 | 183 | === DS6 – relay 4 indicator === |
![]() |
11.2 | 184 | |
![]() |
15.1 | 185 | |(% style="width:100px" %)**State**|**Description** |
186 | |(% style="width:100px" %)**Lights green**|Relay #4 is closed | ||
187 | |(% style="width:100px" %)**Off**|Relay #4 is opened | ||
![]() |
11.2 | 188 | |
![]() |
5.3 | 189 |