37d286e7 |
1 | ;; tldr; AGPLv3+ |
2 | ;; copyright info at bottom |
3 | |
4 | (document |
5 | :title [challenge-bot] |
6 | (chapter |
3c0c7ca4 |
7 | :title [mechanical] |
8 | (section |
58c778a1 |
9 | :title [arduino to deck] |
cf59d996 |
10 | (subsection |
11 | :title [required materials] |
12 | (p [you will need the things in this picture. |
13 | ,(figure :legend "arduino to deck / required materials" |
9fbc1a3f |
14 | (image :file "arduino-to-deck/0-required-materials.png")) |
cf59d996 |
15 | ,(itemize |
16 | (item [medical kit with bandages]) |
17 | (item [safety goggles]) |
18 | (item [drill bit \(we will determine size in a moment\)]) |
19 | (item [drill]) |
20 | (item [alan wrench]) |
21 | (item [wood block]) |
22 | (item [arduino]) |
23 | (item [#6-32x3/8\", four of them]))])) |
24b6d750 |
24 | (subsection |
59fef212 |
25 | :title [first hole] |
ff0f6a78 |
26 | (subsubsection |
52596bd0 |
27 | :title [choosing drill bit] |
28 | (p [choosing the right drill bit depends on what job you are doing. |
29 | right now, we are making holes for screws to hold the |
30 | arduino to the deck. |
31 | this means the hole needs to be big enough for the |
32 | screw body to fit through. |
33 | we want the screw to stay put once it's in place. |
8923a50f |
34 | we also want the drill bit to be smaller than the |
35 | diameter of the thread. |
36 | the screw was chosen so that the hole on the arduino |
37 | was bigger than the body and smaller than the thread. |
38 | we will choose the biggest drill bit that fits through |
39 | the hole on the arduino.]) |
85fae63f |
40 | (p [here's a cross section of a screw in the deck] |
41 | (figure :legend "screw cross section" |
42 | (image :file |
43 | "arduino-to-deck/screw-cross-section.png")))) |
ff0f6a78 |
44 | (subsubsection |
ca8e4428 |
45 | :title [inserting drill bit] |
46 | (p (figure :legend "arduino to deck / insert bit" |
47 | (image :file "arduino-to-deck/1-insert-bit.png")) |
48 | [insert the drill bit into the teeth of the drill. |
49 | insert it far enough that the teeth will clamp on the |
3875c1ef |
50 | smooth part of the bit when they are tightened.]) |
51 | (p (figure |
52 | :legend "arduino to deck / twist tighten drill teeth" |
53 | (image :file "arduino-to-deck/2-twist-tighten-drill-teeth.png")) |
54 | [while holding the drill bit, twist end of the drill to tighten |
55 | the teeth. |
56 | make sure that the teeth end up gripping the flat part of |
57 | the drill bit.])) |
ff0f6a78 |
58 | (subsubsection |
7bf575b8 |
59 | :title [holding drill] |
60 | (p [hold the drill with one hand on the handle and trigger. |
61 | put the other hand on the orange nozzle, before the |
62 | black spinning part.])) |
c04a9631 |
63 | (subsubsection |
64 | :title [arduino placement] |
65 | (p [the arduino should be placed as shown in this picture.] |
cf59d996 |
66 | (figure :legend "arduino to deck / place arduino" |
6fc3d47b |
67 | (image :file "arduino-to-deck/3-place-arduino.png"))) |
68 | (p [here's a closeup] |
c1732375 |
69 | (figure :legend "arduino to deck / place arduino closeup" |
0b5cd84e |
70 | (image :file |
71 | "arduino-to-deck/4-place-arduino-closeup.png")) |
72 | [the picture above shows where to place the arduino on the deck. |
73 | the arduino should line up with the holes on the deck. |
74 | this alignment line is highlighted in pink. |
75 | on the arduino, there's a hole on the top left, between the |
76 | orange reset button and black headers. |
77 | the green circle shows where the hole is. |
78 | the blue box encloses the arduino hole and two deck holes. |
79 | place the arduino hole mid-way between the two |
80 | deck holes.])) |
ff0f6a78 |
81 | (subsubsection |
59fef212 |
82 | :title [drilling])) |
83 | (subsection |
84 | :title [first screw] |
ff0f6a78 |
85 | (subsubsection |
9f651996 |
86 | :title [fastening arduino to deck using #6-32x3/8\" screw] |
87 | (p [the "#6" part of "#6-32x3/8\"" is how big around the bolt is. |
88 | it is related to wire gauge. |
89 | bigger numbers mean larger screw. |
6e7c78dd |
90 | smaller numbers means smaller screws.] |
91 | (figure :legend "arduino to deck / #6-32 screw" |
92 | (image :file |
93 | "arduino-to-deck/6-32-screw.png"))) |
9f651996 |
94 | (p [check |
59fef212 |
95 | ,(itemize |
96 | (item |
9f651996 |
97 | [in the motor assembly, there are #4-40x1.25\" screws. |
98 | are those fatter, thinner, or the same thickness as the |
99 | #6-32x3/8\" screws?]))]) |
100 | (p [the "32" part is a measurement of how close the threads are to |
101 | each other. |
102 | this is related to the angle of the thread, which is also |
103 | called pitch. |
104 | it is a count of how many times the thread wraps around one |
105 | inch of the screw body.]) |
106 | (p [the head is the flat part where some tool, like the alan |
107 | wrench, can exert force to spin the screw.]) |
108 | (p [check |
59fef212 |
109 | ,(itemize |
9f651996 |
110 | (item [how many times will the thread wrap around one inch of |
111 | the screw body?]) |
112 | (item [what about 2 inches? |
113 | how many times will the thread wrap around two |
114 | inches of the screw body?]))])) |
ff0f6a78 |
115 | (subsubsection |
116 | :title [fasten the arduino board to the deck] |
117 | (p [push the 6-32 screw into the deck from the underside and at the |
118 | same time, spin the 6-32 screw clockwise while looking |
9f651996 |
119 | down on its head. |
120 | twist until the bottom of the screw is |
ff0f6a78 |
121 | about to stick out on the top side of the deck.]) |
122 | (p [hold the arduino board flat to the deck and line up the arduino |
9f651996 |
123 | hole so the screw can come up through it. |
124 | continue tightening the screw into the deck, spinning the same |
125 | direction as before. |
126 | tighten until the screw head touches the deck. |
127 | do not continue tightening after that.]) |
ff0f6a78 |
128 | (p [the arduino should still be flat against the deck still, just |
129 | as it was before tightening the screw.])) |
130 | (subsubsection |
131 | :title [assessment] |
132 | (p [does the arduino stay with the deck when the deck moves? |
133 | can the arduino board still rotate a few degrees? |
134 | warning, if you rotate the arduino board too much, you |
135 | will unscrew it from the deck and you'll have to screw it |
9f651996 |
136 | back in. |
137 | rotating a few degrees should be ok.])) |
ff0f6a78 |
138 | (subsubsection |
139 | :title [arduino board move relative to deck] |
140 | (p [without any screws, the arduino board can move independently of |
141 | the deck.]) |
142 | (p [with the first screw, the arduino can rotate around one point |
143 | on the deck.]))) |
24b6d750 |
144 | (subsection |
145 | :title [second hole and screw]) |
146 | (subsection |
147 | :title [third and fourth hole and screw])) |
57e11138 |
148 | (section |
149 | :title [breadboard]) |
3c0c7ca4 |
150 | (section |
390d8f01 |
151 | :title [battery packs] |
152 | (subsection |
153 | :title [leads]) |
154 | (subsection |
155 | :title [deck attachment])) |
3c0c7ca4 |
156 | (section |
5aa69c47 |
157 | :title [motors] |
158 | (subsection |
159 | :title [leads]) |
160 | (subsection |
161 | :title [mount]) |
162 | (subsection |
163 | :title [deck attachment])) |
3c0c7ca4 |
164 | (section |
1b593ec7 |
165 | :title [wheels] |
166 | (subsection |
167 | :title [tread]) |
168 | (subsection |
169 | :title [motor])) |
3c0c7ca4 |
170 | (section |
2ccf4ca9 |
171 | :title [caster] |
172 | (subsection |
173 | :title [deck placement])) |
3c0c7ca4 |
174 | (section |
6550a556 |
175 | :title [sonars] |
176 | (subsection |
177 | :title [deck placement]))) |
3c0c7ca4 |
178 | (chapter |
9fb37473 |
179 | :title [wiring and software] |
180 | (section |
f0876d62 |
181 | :title [serial] |
182 | (subsection |
1be43d04 |
183 | :title [software on computer] |
c3e8314c |
184 | (subsubsection |
1be43d04 |
185 | :title [arduino]) |
c3e8314c |
186 | (subsubsection |
1be43d04 |
187 | :title [fritzing])) |
f0876d62 |
188 | (subsection |
189 | :title [attach arduino and computer via cable]) |
190 | (subsection |
191 | :title [debugging common connection problems]) |
192 | (subsection |
193 | :title [arduino reset button])) |
9fb37473 |
194 | (section |
bb801164 |
195 | :title [left sonar] |
196 | (subsection |
197 | :title [breadboard connectivity]) |
198 | (subsection |
199 | :title [cable]) |
200 | (subsection |
cb7d1c68 |
201 | :title [arduino headers]) |
202 | (subsection |
203 | :title [sound cm per microsecond at sea level])) |
9fb37473 |
204 | (section |
9183d52b |
205 | :title [both sonars] |
206 | (subsection |
207 | :title [breadboard power rail] |
208 | (p [power rail can provide power to more than one device.]))) |
9fb37473 |
209 | (section |
805d6362 |
210 | :title [left motor] |
211 | (subsection |
212 | :title [arduino digital output]) |
213 | (subsection |
214 | :title [quad half h bridge, aka motor controller]) |
215 | (subsection |
216 | :title [motor battery])) |
9fb37473 |
217 | (section |
79d761bc |
218 | :title [both motors] |
219 | (subsection |
220 | :title [analogWrite])) |
9fb37473 |
221 | (section |
aedd9003 |
222 | :title [untethered] |
223 | (subsection |
224 | :title [arduino battery]) |
225 | (subsection |
226 | :title [off and on functions])) |
9fb37473 |
227 | (section |
28a2365e |
228 | :title [follow] |
229 | (subsection |
230 | :title [same wiring as untethered]) |
231 | (subsection |
232 | :title [set motor]) |
233 | (subsection |
234 | :title [go]) |
235 | (subsection |
236 | :title [determining speed])) |
9fb37473 |
237 | (section |
d460f45c |
238 | :title [stay on table] |
239 | (subsection |
240 | :title [stop]) |
241 | (subsection |
242 | :title [backup]) |
243 | (subsection |
244 | :title [turn around])))) |
37d286e7 |
245 | |
246 | ;; Copyright 2016 daniel watson |
247 | |
248 | ;; This file is part of challenge-bot. |
249 | |
250 | ;; challenge-bot is free software: you can redistribute it and/or modify |
251 | ;; it under the terms of the GNU Affero General Public License as |
252 | ;; published by the Free Software Foundation, either version 3 of the |
253 | ;; License, or (at your option) any later version. |
254 | |
255 | ;; challenge-bot is distributed in the hope that it will be useful, |
256 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
257 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
258 | ;; GNU Affero General Public License for more details. |
259 | |
260 | ;; You should have received a copy of the GNU Affero General Public |
261 | ;; License along with challenge-bot. If not, see |
262 | ;; <http://www.gnu.org/licenses/>. |