summaryrefslogtreecommitdiff
path: root/CanNodeSectionAppPower.mdwn
blob: c8860d7e0fde973ad884880d4a85b1aeb47c2b00 (plain)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
# <a name="OLD OLD OLD Avionics Power Syste"></a> OLD OLD OLD Avionics Power System Page

**_AvionicsPowerSystemLv2 - New system page for LV2's APS... in design mode right now._**

[[BatteryResearchLv2]] - research into Li-Ion/Li-Polymer batteries for LV2<br />[[ChargerIcResearchLv2]] - research into charging ICs for Li-Ion/Li-Polymer batteries<br />[[AandTBatteriesLv2]] - Information (and pictures) on the A&amp;TB Li Ion batteries from Electronic Goldmine

----

Introduction:

The APS is the power system of the LV2A's avionics. It's a pretty simple system of a prototyped power distribution board and a misc. CAN node board. It also has:

- 2 12V battery packs of made up of 2 2CR5 6V primary Li batteries (think camera batteries).
- a two conductor umbilical cord, which provides shore (external) power to the system as well as serving as a launching system interlock.
- measurement of voltage on the umbilical cord, and voltage and current on the power bus.
- an IRF smart switch (high side MOSFET switch) to turn the power bus on and off.

Firmware Page: [[CanNodeFirmwarePwr]]

Battery datasheets (we have a dozen of the kodak's):

- <http://www.kodak.com/global/plugins/acrobat/en/consumer/products/batteries/KL2CR5.pdf>
- <http://data.energizer.com/datasheets/library/primary/lithium/2cr5.pdf>

----

### <a name="APS Behaviours"></a> APS Behaviours

**Power Switch:**

- Switch power to the avionics system On/Off on CAN message (usually from uplink or FC - WARNING! ADD DELAY SO FC DOESN'T GET SHUT OFF, OR MODIFY SHUTDOWN SCRIPT).
- Switch power on to the avionics system if there is an acceptable umbilical cord voltage.

**Umbilical Cord:**

- Send CAN message when umb connector status changes (plugged/unplugged).
- Send CAN message when umb power status changes (valid/invalid voltage).
- Assert/de-assert "RocketReady" (umbical line) based on CAN message (Send warning message when asserting RocketReady with umb power on).

**APS modes:**

Since the misc CAN node is always powered on so minimize power usage, especially when on battery and avionics system is switched off. Power modes of the APS:

- - On when: Avionics System on, actively monitor CAN bus and umbilical cord.
  - Sleep when: Avionics system off: wake on CAN message (wake-up and wait 30s for another CAN message since the first message will be lost; if no wakeup confirmation go back to sleep) or on umbilical voltage change of state.

**CAN Messages (see [[CanBusIDs]] for details):**

Transmit:

- Send isochronous voltage message: max, avg, min
- Send isochronous current message: max, avg, min
- Send isochronous charge message: accumulated charge (stored periodically in EEPROM)
- Send battery low warning message on low battery voltage (voltage TBD)
- Umbilical cord connect/disconnect
- Umbilical cord voltage

Receive:

- - Turn power switch on/off (with delay?)
  - Assert/de-assert RocketReady
  - Reset charge count
  - Change rates of isochronous messages
  - Reset
  - Sleep

----

### <a name="Hardware To do:"></a> Hardware To do:

1. Change UMB resistor to 47K and add 100nF cap
2. Test test test

----

### <a name="Power consumption"></a> Power consumption

What the HELL is our power consumption? See also the [[BatteryPack]] discussion.

This table is current from the \*battery pack (12V? nom.), not into the device (which may use a DC-DC converter).

<table border=1 cellpadding=0 cellspacing=0>
  <tr>
    <th bgcolor="#99CCCC"><strong> System </strong></th>
    <th bgcolor="#99CCCC"><strong> Imin </strong></th>
    <th bgcolor="#99CCCC"><strong> Iavg </strong></th>
    <th bgcolor="#99CCCC"><strong> Imax </strong></th>
    <th align="right" bgcolor="#99CCCC"><strong> Validity </strong></th>
  </tr>
  <tr>
    <td> ATV: CAN Node (idle) </td>
    <td>
    </td>
    <td> 0.035 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> ATV: Camera </td>
    <td>
    </td>
    <td> 0.125 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> ATV: Overlay board </td>
    <td>
    </td>
    <td> 0.053 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> ATV: 1.27 GHz FM TX </td>
    <td>
    </td>
    <td> 0.122 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> ATV: 1.3 GHz Power Amp </td>
    <td>
    </td>
    <td> 1.211 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> FC: PC104 Stack </td>
    <td>
    </td>
    <td> 0.415 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> FC: 802.11b PCMCIA </td>
    <td>
    </td>
    <td align="center"> ? </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> FC: 2.4GHz Power Amp </td>
    <td>
    </td>
    <td> 0.629 </td>
    <td> .900 </td>
    <td> Measured, data sheet </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> APS: CAN Node </td>
    <td> 0.012 </td>
    <td> 0.047 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> GPS: CAN node </td>
    <td>
    </td>
    <td> 0.025 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> GPS: GPS (low pwr mode) </td>
    <td>
    </td>
    <td> 0.092 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> GPS: 1.5 GHz preamp </td>
    <td>
    </td>
    <td> 0.125 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> IMU: CAN node </td>
    <td>
    </td>
    <td> 0.025 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td> IMU: IMU </td>
    <td>
    </td>
    <td> 0.070 </td>
    <td>
    </td>
    <td> Measured </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> REC: CAN node </td>
    <td>
    </td>
    <td align="center"> ? </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> REC: 2m board </td>
    <td>
    </td>
    <td align="center"> ? </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td> REC: HAP battery Chrgr </td>
    <td>
    </td>
    <td align="center"> ? </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td> - </td>
  </tr>
  <tr>
    <th bgcolor="#99CCCC"><strong> TOTAL </strong></th>
    <td>
    </td>
    <td> 2.85 </td>
    <td>
    </td>
    <td> - </td>
  </tr>
</table>

----

### <a name="Shunt resistor selection"></a> Shunt resistor selection

Hnmmmm. So at - call it 4A - that means if we use a 0.050 ohm shunt that's a 0.2V drop and 0.8W of dissipated power. Eech! Sucks. So let's parallel two up and get 0.025 which gives us 0.1V of drop and 0.4W of dissipated power. Seems better, so let's stick with it.

To get 5V full scale out of the INA168 we need a gain of 5V/0.1V = 50 which also seems ok since that implies R(L) = 50\*5kohm = 250kohm. But we're using LM358's which have a minimum v\_out of 3.5V so we'll use something smaller - 150kohm which will give us a gain of 30, which gives us 0.75V/A. That's 3.75V @ 5A so we can go a bit over our allotted current and not hit the rail. We happen to have 100k 0.1% in an 0805 package so 2x 100k in parallel + 1x 100k to give us 150k.

----

### <a name="Low Pass Filters"></a> Low Pass Filters

We decided to try and use real LPF's on the bus voltage and current in order to get useable values of system performance. We chose a f3db = 1KHz, 4 pole Bessel filter in a sallen-key configuration. We choose that LPF, along with a sampling rate of 15KHz, in order to get 10bit performance out of our ADC. Yeah, right we'll get 10bits with the way this thing is hacked up ;)

We used Microchip's Filter Lab to come up with RC networks around the LM356's.

----

[[SmartBatteriesLv2]]: Past thoughts on using smart batteries

----
Attachments:

- [[ina168.pdf]]