summaryrefslogtreecommitdiff
path: root/CanNodes.mdwn
blob: a914486f2a1b5ea711e48d109876cfa7bf1d0c58 (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
# <a name="LV2 CAN Nodes"></a> LV2 CAN Nodes

LV2 consists of a main processor - the "[[Flight Computer|FlightComputer]]" which is a 586 PC-104 board - and a dozen tiny little boards strung out on the [[CAN bus|CanBusLinks]]. These dozens of little boards are each run by a small microcontroller (currently the PIC18F458) and perform all of the sensing and actuation for the vehicle.

Since each of the boards has the same microcontroller, we've decided to break the nodes up into virtual "sections". Each section is a schematic and layout all to itself; using a common interconnect pattern, these layouts are then laid next to each other by a [[Gerber editor application|GerberTools]]. It's a clever way to eek some professional quality features from a shareware program (EAGLE).

## <a name="CAN Node &quot;Sections&quot;:"></a> CAN Node "Sections":

<table border=1 cellpadding=0 cellspacing=0>
  <tr>
    <td>[[CanNodeSectionProcessor]]</td>
    <td> The section with the PIC18F458, 12 to 5V switching power supply, oscillator, an optional Vref and ICD plug-in. </td>
  </tr>
  <tr>
    <td>[[CanNodeSectionInterface]]</td>
    <td> The section with the CAN and power connectors, all still TBD. </td>
  </tr>
  <tr>
    <td>[[CanNodeSectionMechanical]]</td>
    <td> The section with the space for fasteners and possibly a card cage - all TBD. </td>
  </tr>
</table>

[[LV2-frontend.png]] [[LV2-frontend.pdf]]

**Can Node "Application" Sections:**

<table border=1 cellpadding=0 cellspacing=0>
  <tr>
    <td>[[CanNodeSectionAppPyro]]</td>
    <td> The application section with the pyrotechnic igniter firing circuits, amateur 2m radio receiver with DTMF decoder, and Li backup power supply. </td>
  </tr>
  <tr>
    <td>[[CanNodeSectionAppPower]]</td>
    <td> The application section with a Smart Battery System (SBS) Level 2 charger, various power devices, and Umbilical cord connector. </td>
  </tr>
  <tr>
    <td>[[InertialMeasurementUnit]]</td>
    <td>
    </td>
  </tr>
  <tr>
    <td>[[GlobalPositioningSystem]]</td>
    <td>
    </td>
  </tr>
  <tr>
    <td>[[MagnetometerBoard]]</td>
    <td>
    </td>
  </tr>
  <tr>
    <td>[[MiscCanNode]]</td>
    <td>
    </td>
  </tr>
  <tr>
    <td>[[AmateurTelevision]]</td>
    <td>
    </td>
  </tr>
  <tr>
    <td>[[BatteryPack]]</td>
    <td>
    </td>
  </tr>
</table>

**Misc:**

[[ICD2 to CAN Node cabling|IcdToMolex]] information

## <a name="Used _PIC18F458 Pins"></a> Used PIC18F458 Pins

The "next generation" PIC nodes are converging to a single design, with a neat little CAN connector, switched power supply (SPS) and for critical nodes, a highly-available power supply (HAP). Also, all nodes must have an oscillator, ICD2 pins, MCLR, etc.

<table border=1 cellpadding=0 cellspacing=0>
  <tr>
    <th align="center" bgcolor="#99CCCC"><strong> Name </strong></th>
    <th align="center" bgcolor="#99CCCC"><strong> Pin </strong></th>
    <th align="center" bgcolor="#99CCCC"><strong> Type </strong></th>
    <th bgcolor="#99CCCC"><strong> Modules </strong></th>
    <th bgcolor="#99CCCC"><strong> Description </strong></th>
  </tr>
  <tr>
    <td align="center"> MCLR </td>
    <td align="center"> 18 </td>
    <td align="center"> in </td>
    <td align="center"> ALL </td>
    <td> Master reset </td>
  </tr>
  <tr>
    <td align="center"> OSC1 </td>
    <td align="center"> 30 </td>
    <td align="center"> in </td>
    <td align="center"> ALL </td>
    <td> 10MHz crystal input </td>
  </tr>
  <tr>
    <td align="center"> OSC2 </td>
    <td align="center"> 31 </td>
    <td align="center"> out </td>
    <td align="center"> ALL </td>
    <td> 10MHz crystal output </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
  </tr>
  <tr>
    <td align="center"> RA0 </td>
    <td align="center"> 19 </td>
    <td align="center"> in (A) </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_BCurr&quot; - HAP battery current measurement </td>
  </tr>
  <tr>
    <td align="center"> RA1 </td>
    <td align="center"> 20 </td>
    <td align="center"> in (A) </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_BVolt&quot; - HAP battery voltage measurement </td>
  </tr>
  <tr>
    <td align="center"> RA2 </td>
    <td align="center"> 21 </td>
    <td align="center"> in (A) </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_BTemp&quot; - HAP battery temperature </td>
  </tr>
  <tr>
    <td align="center"> RA4 </td>
    <td align="center"> 23 </td>
    <td align="center"> OC out </td>
    <td align="center"> SPS </td>
    <td> &quot;SPS_OFF\&quot; - Shuts down SPS. </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
  </tr>
  <tr>
    <td align="center"> RB2 </td>
    <td align="center"> 10 </td>
    <td align="center"> out </td>
    <td align="center"> ALL </td>
    <td> CAN TX </td>
  </tr>
  <tr>
    <td align="center"> RB3 </td>
    <td align="center"> 11 </td>
    <td align="center"> in </td>
    <td align="center"> ALL </td>
    <td> CAN RX </td>
  </tr>
  <tr>
    <td align="center"> RB4 </td>
    <td align="center"> 14 </td>
    <td align="center"> out </td>
    <td align="center"> ALL </td>
    <td> CAN transciever (MCP2551) slope/reset </td>
  </tr>
  <tr>
    <td align="center"> RB5 </td>
    <td align="center"> 15 </td>
    <td align="center"> i/o </td>
    <td align="center"> ALL </td>
    <td> LED/switch combo (&quot;omnibutton&quot;, Error LED, etc) </td>
  </tr>
  <tr>
    <td align="center"> RB6 </td>
    <td align="center"> 16 </td>
    <td align="center"> out </td>
    <td align="center"> ALL </td>
    <td> ICD2 (PGC) - SET TO OUTPUT so it doesn&#39;t fload wo/ICD2 </td>
  </tr>
  <tr>
    <td align="center"> RB7 </td>
    <td align="center"> 17 </td>
    <td align="center"> out </td>
    <td align="center"> ALL </td>
    <td> ICD2 (PGD) - SET TO OUTPUT so it doesn&#39;t fload wo/ICD2 </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
    <td>
    </td>
  </tr>
  <tr>
    <td align="center"> RE0 </td>
    <td align="center"> 25 </td>
    <td align="center"> out </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_Trickle&quot; - Enables trickle charging of HAP battery </td>
  </tr>
  <tr>
    <td align="center"> RE1 </td>
    <td align="center"> 26 </td>
    <td align="center"> our </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_Fast&quot; - Enables fast charging of HAP battery (Overrides trickle charging) </td>
  </tr>
  <tr>
    <td align="center"> RE2 </td>
    <td align="center"> 27 </td>
    <td align="center"> out </td>
    <td align="center"> HAP </td>
    <td> &quot;HAP_Off&quot; - Power down HAP </td>
  </tr>
</table>

<font> _in = digital input, out = digital output, oc = open collector, in (A) = analog input, HAP = Highly Available Power supply, SPS = Switching Power Supply._ </font>

There are some pins which usually get used for the same thing: RB0/1 are good for edge-triggered interrupts, RC6/7 are the onboard UART pins, etc.