37d286e7 |
1 | ;; tldr; AGPLv3+ |
2 | ;; copyright info at bottom |
3 | |
4 | (document |
5 | :title [challenge-bot] |
e15b7cb4 |
6 | (toc) |
37d286e7 |
7 | (chapter |
3c0c7ca4 |
8 | :title [mechanical] |
56fffacb |
9 | :number "0" |
1625f486 |
10 | (p [let's build your robot!]) |
3c0c7ca4 |
11 | (section |
58c778a1 |
12 | :title [arduino to deck] |
56fffacb |
13 | :number "0" |
4a423b08 |
14 | (p [let's attach the arduino to the deck.]) |
cf59d996 |
15 | (subsection |
16 | :title [required materials] |
b52bbb4b |
17 | (p [you will need the things in this picture.]) |
18 | (figure |
19 | :legend "arduino to deck / required materials" |
20 | (image :file |
21 | "0-arduino-to-deck/0-required-materials.png")) |
22 | (itemize |
23 | (item [medical kit with bandages]) |
24 | (item [safety goggles]) |
25 | (item [drill bit \(we will determine size in a moment\)]) |
26 | (item [drill]) |
27 | (item [alan wrench]) |
28 | (item [wood block]) |
29 | (item [arduino]) |
30 | (item [#6-32x3/8\", four of them]) |
31 | (item [robot deck, the white thing with a grid of holes]))) |
24b6d750 |
32 | (subsection |
59fef212 |
33 | :title [first hole] |
ff0f6a78 |
34 | (subsubsection |
52596bd0 |
35 | :title [choosing drill bit] |
23045a14 |
36 | (p [the arduino comes with holes in it already, so we will make |
37 | some choices around those holes. |
38 | choosing the right drill bit depends on what job you are |
39 | doing. |
40 | right now, we are making holes for screws to hold the |
41 | arduino to the deck. |
42 | there are two constraints between the hole and screw. |
43 | each hole needs to be big enough for the screw body to fit |
44 | through it. |
45 | the holes also need to be smaller than the screw's thread. |
46 | since there are holes on the arduino already, the screw was |
47 | chosen to match it. |
48 | the screw was chosen so that the hole on the arduino was |
49 | bigger than the screw body and smaller than its thread. |
50 | we will choose the biggest drill bit that fits through the |
51 | hole on the arduino, then use that to drill holes in the |
52 | deck.]) |
b52bbb4b |
53 | (p [here's a cross section of a screw in the deck]) |
54 | (figure :legend "screw cross section" |
55 | (image :file |
56 | "0-arduino-to-deck/screw-cross-section.png")) |
57 | (p [check]) |
2acfcb3e |
58 | (enumerate |
b52bbb4b |
59 | (item |
60 | [what would happen if the drill bit were larger than the |
61 | screw thread?]) |
62 | (item |
63 | [what would happen if the drill bit were smaller than the |
64 | screw body?]))) |
ff0f6a78 |
65 | (subsubsection |
ca8e4428 |
66 | :title [inserting drill bit] |
b52bbb4b |
67 | (figure :legend "arduino to deck / insert bit" |
68 | (image :file "0-arduino-to-deck/1-insert-bit.png")) |
69 | (p [insert the drill bit into the teeth of the drill. |
ca8e4428 |
70 | insert it far enough that the teeth will clamp on the |
3875c1ef |
71 | smooth part of the bit when they are tightened.]) |
b52bbb4b |
72 | (figure |
73 | :legend "arduino to deck / twist tighten drill teeth" |
74 | (image |
75 | :file "0-arduino-to-deck/2-twist-tighten-drill-teeth.png")) |
76 | (p [while holding the drill bit, twist end of the drill to tighten |
3875c1ef |
77 | the teeth. |
78 | make sure that the teeth end up gripping the flat part of |
1887fb16 |
79 | the drill bit.]) |
b52bbb4b |
80 | (p [check]) |
2acfcb3e |
81 | (enumerate |
b52bbb4b |
82 | (item |
83 | [where should the teeth clamp down on the drill bit?]) |
84 | (item |
85 | [what would happen if the teeth tightened on the recessed |
86 | part of the drill bit?]))) |
ff0f6a78 |
87 | (subsubsection |
7bf575b8 |
88 | :title [holding drill] |
89 | (p [hold the drill with one hand on the handle and trigger. |
90 | put the other hand on the orange nozzle, before the |
91 | black spinning part.])) |
c04a9631 |
92 | (subsubsection |
93 | :title [arduino placement] |
b52bbb4b |
94 | (p [the arduino should be placed as shown in this picture.]) |
95 | (figure :legend "arduino to deck / place arduino" |
96 | (image :file "0-arduino-to-deck/3-place-arduino.png")) |
97 | (p [here's a closeup]) |
98 | (figure :legend "arduino to deck / place arduino closeup" |
99 | (image :file |
100 | "0-arduino-to-deck/4-place-arduino-closeup.png")) |
101 | (p [the picture above shows where to place the arduino on the deck. |
0b5cd84e |
102 | the arduino should line up with the holes on the deck. |
103 | this alignment line is highlighted in pink. |
104 | on the arduino, there's a hole on the top left, between the |
105 | orange reset button and black headers. |
106 | the green circle shows where the hole is. |
107 | the blue box encloses the arduino hole and two deck holes. |
108 | place the arduino hole mid-way between the two |
543ad3c2 |
109 | deck holes.]) |
b52bbb4b |
110 | (p [check]) |
2acfcb3e |
111 | (enumerate |
b52bbb4b |
112 | (item |
113 | [should the arduino be upside-down?]) |
114 | (item |
115 | [what should the upper side of the arduino align with?]) |
116 | (item |
117 | [why not place the arduino up along the left side of the |
118 | robot?]))) |
ff0f6a78 |
119 | (subsubsection |
41ba7302 |
120 | :title [drilling practice] |
b52bbb4b |
121 | (p [strength check]) |
122 | (itemize |
123 | (item [put on safety goggles]) |
124 | (item [unplug drill]) |
125 | (item [hold drill in one hand]) |
126 | (item [point drill at the ground]) |
127 | (item [point drill at the wall])) |
128 | (p [steps for drilling into wood block]) |
129 | (itemize |
130 | (item [plug in the drill]) |
131 | (item [place the drill bit in position]) |
132 | (item [bring the drill up to full speed, and keep it at full |
133 | speed while lowering and raising the drill]) |
134 | (item [push down until the drill bit has passed through an inch |
135 | of the wood block]) |
136 | (item [keep the drill at full speed]) |
137 | (item [stop before the drill smashes into the wood block]) |
138 | (item [keep the drill at full speed by holding the trigger]) |
139 | (item [bring the drill straight back up]) |
140 | (item [hold the trigger down to keep the drill at full speed]) |
141 | (item [once the drill is back out of the hole, let go of the |
142 | trigger])) |
143 | (p [check]) |
2acfcb3e |
144 | (enumerate |
b52bbb4b |
145 | (item |
146 | [should the drill be at full speed while the drill bit is |
147 | going down into the wood and coming back up?]) |
148 | (item |
149 | [how do you keep the drill at full speed?]) |
150 | (item |
151 | [what would happen if the drill bit were not at full |
152 | speed?]) |
153 | (item |
154 | [what would happen if the drill were twisted sideways while |
155 | the drill bit were in the wood?]))) |
41ba7302 |
156 | (subsubsection |
7a744a6b |
157 | :title [drilling the first screw hole] |
41ba7302 |
158 | (itemize |
159 | (item [place the drill bit in position]) |
160 | (item [bring the drill up to full speed, and keep it full speed]) |
161 | (item [push down until the drill bit has passed through the |
162 | deck]) |
163 | (item [keep the drill at full speed]) |
164 | (item [stop before the drill smashes into the arduino]) |
165 | (item [keep the drill at full speed by holding the trigger]) |
166 | (item [bring the drill straight back up]) |
167 | (item [hold the trigger down to keep the drill at full speed]) |
168 | (item [once the drill is back out of the hole, let go of the |
169 | trigger])) |
b52bbb4b |
170 | (p [check]) |
2acfcb3e |
171 | (enumerate |
b52bbb4b |
172 | (item |
173 | [should the drill be at full speed while the drill bit is |
174 | going down into the wood and coming back up?]) |
175 | (item |
176 | [what would happen if the drill bit were not at full speed?]) |
177 | (item [how do you keep the drill at full speed?])))) |
59fef212 |
178 | (subsection |
179 | :title [first screw] |
ff0f6a78 |
180 | (subsubsection |
9f651996 |
181 | :title [fastening arduino to deck using #6-32x3/8\" screw] |
182 | (p [the "#6" part of "#6-32x3/8\"" is how big around the bolt is. |
183 | it is related to wire gauge. |
4e2c2b29 |
184 | bigger numbers mean larger screws. |
b52bbb4b |
185 | smaller numbers means smaller screws.]) |
186 | (figure :legend "arduino to deck / #6-32 screw" |
187 | (image :file "0-arduino-to-deck/6-32-screw.png")) |
188 | (p [check]) |
2acfcb3e |
189 | (enumerate |
b52bbb4b |
190 | (item |
191 | [in the motor assembly, there are #4-40x1.25\" screws. |
192 | are those fatter, thinner, or the same thickness as the |
193 | #6-32x3/8\" screws?])) |
5747a610 |
194 | (p [the "32" part of "#6-32x3/8\"" is a measurement of how close |
195 | the threads are to each other. |
9f651996 |
196 | this is related to the angle of the thread, which is also |
197 | called pitch. |
198 | it is a count of how many times the thread wraps around one |
199 | inch of the screw body.]) |
200 | (p [the head is the flat part where some tool, like the alan |
201 | wrench, can exert force to spin the screw.]) |
b52bbb4b |
202 | (p [check]) |
2acfcb3e |
203 | (enumerate |
b52bbb4b |
204 | (item [how many times will the thread wrap around one inch of |
205 | the screw body?]) |
206 | (item [what about 2 inches? |
207 | how many times will the thread wrap around two |
208 | inches of the screw body?]) |
209 | (item [where can a tool exert turning force on the screw?]))) |
ff0f6a78 |
210 | (subsubsection |
211 | :title [fasten the arduino board to the deck] |
8eba0b8b |
212 | (p [first we'll put the screw into the deck just enough so the deck |
213 | holds it in place. |
214 | then we will hold the arduino up to the screw and finish |
215 | tightening the screw down. |
216 | with the screw partially in, we do not have hold it as |
217 | rigidly while we are also holding the arduino and |
218 | the deck.]) |
c4ea89ee |
219 | (p [push the #6-32 screw into the deck from the underside. |
220 | the underside is the brown side. |
221 | at the same time, spin the 6-32 screw so it rotates |
222 | clockwise while looking down on its head. |
223 | twist until the tip of the screw is about to stick out on |
224 | the top side of the deck.]) |
ff0f6a78 |
225 | (p [hold the arduino board flat to the deck and line up the arduino |
9f651996 |
226 | hole so the screw can come up through it. |
fdf53d2d |
227 | continue tightening the screw into the deck, spinning the |
228 | same direction as before. |
9f651996 |
229 | tighten until the screw head touches the deck. |
230 | do not continue tightening after that.]) |
ff0f6a78 |
231 | (p [the arduino should still be flat against the deck still, just |
f9e58978 |
232 | as it was before tightening the screw.]) |
b52bbb4b |
233 | (p [check]) |
2acfcb3e |
234 | (enumerate |
b52bbb4b |
235 | (item [why do we insert the first screw partially before |
236 | holding up the arduino?]) |
237 | (item [which side of the deck is the top side?]))) |
ff0f6a78 |
238 | (subsubsection |
f17976bf |
239 | :title [assessment of the first screw] |
240 | (itemize |
7bca727f |
241 | (item [,(bold [warning]), if you rotate the arduino board too |
242 | much,you will unscrew it from the deck and you'll have to |
243 | screw it back in. |
244 | rotating a few degrees should be ok.]) |
f17976bf |
245 | (item [does the arduino stay with the deck when the deck moves?]) |
7bca727f |
246 | (item [can the arduino board still rotate a few degrees?])))) |
f17976bf |
247 | (subsection |
248 | :title [second hole and screw] |
ff0f6a78 |
249 | (subsubsection |
250 | :title [arduino board move relative to deck] |
251 | (p [without any screws, the arduino board can move independently of |
f17976bf |
252 | the deck. |
c305da78 |
253 | it can translate and rotate freely. |
f17976bf |
254 | with the first screw, the arduino can rotate around one |
763861dd |
255 | point on the deck and can no longer translate much.]) |
256 | (p [the second screw limits rotation a lot. |
257 | it also makes translation even more difficult. |
258 | it might even be too small to be detectable by directly |
259 | looking at it.]) |
260 | (p [to choose where the second hole and screw should go, we should |
261 | keep in mind that the goal is to attach the deck to the |
262 | arduino. |
263 | this means minimizing rotation and translation. |
264 | the picture below shows that the second hole should be as |
265 | far as possible from the first hole, since that minimizes |
b52bbb4b |
266 | rotation.]) |
267 | (figure |
268 | :legend "arduino to deck / keep holes far apart" |
269 | (image |
270 | :file "0-arduino-to-deck/keep-holes-far-apart.png"))) |
e3a31106 |
271 | (subsubsection |
96401b17 |
272 | :title [drilling and attaching second screw] |
e3a31106 |
273 | (p [to drill the second hole, follow the same steps as drilling the |
274 | first hole. |
275 | hold the arduino down as before, and drill through the hole |
6ef8240f |
276 | furthest away from the first hole. |
277 | then insert and tighten the screw as before.]))) |
24b6d750 |
278 | (subsection |
a5939c50 |
279 | :title [third and fourth hole and screw] |
280 | (p [even though the arduino is pretty well attached with just 2 |
281 | screws, we will add a third and fourth. |
282 | this gives practice drilling and tightening screws. |
aa71ea44 |
283 | it also keeps the arduino fixed even more rigidly.])) |
284 | (subsection |
285 | :title [assessment of arduino deck attachment] |
286 | (itemize |
287 | (item [you should now be able to grab the deck and shake it. |
288 | the arduino should stay firmly in place while you do.]) |
289 | (item [the arduino should be close to but not touching an edge.]) |
290 | (item [there should be no warping on the arduino. |
291 | this could happen if the screws are too tight.])))) |
57e11138 |
292 | (section |
17b1f3ea |
293 | :title [breadboard] |
294 | (p [next, let's attach other parts to the deck. |
295 | we'll start with the breadboard. |
296 | there are many ways to do this, but one handy approach is |
297 | glue dots. |
298 | glue dots can be placed easily, are good at attaching flat |
299 | surfaces that directly touch and do not get much stress.]) |
b52bbb4b |
300 | (figure :legend "breadboard to deck / required materials" |
301 | (image |
302 | :file "1-breadboard-to-deck/0-required-materials.png")) |
303 | (p [for this section, we will need the deck with arduino attached, |
304 | breadboard, and glue dots.]) |
305 | (figure :legend "breadboard to deck / video" |
306 | (video |
bb5ca604 |
307 | :file "1-breadboard-to-deck/0-breadboard-to-deck.ogv")) |
308 | (enumerate |
309 | (item [take your breadboard out of its bag.]) |
310 | (item [peel the backing.]) |
311 | (item [put the shiny medal plate on the back.]) |
312 | (item [break 4 glue dots away from the rest. put the rest back |
313 | into the bag.]) |
314 | (item [break off a glue dot from the group of 4, and peel away the |
315 | backing, exposing a sticky side.]) |
316 | (item [put the glue dot on one corner of the shiny side of the |
317 | breadboard. |
318 | make sure to push it down firmly.]) |
319 | (item [repeat for the other corners.]) |
320 | (item [put the breadboard on the center of the deck. |
321 | position it so the black chip is on the right, and the |
322 | blue line is up against the arduino.]) |
92d613dd |
323 | (item [press firmly in each of the corners.])) |
324 | (p [check]) |
2acfcb3e |
325 | (enumerate |
92d613dd |
326 | (item [should the black chip be on the right or the left?]) |
327 | (item [how many glue dots should be on the breadboard?]))) |
3c0c7ca4 |
328 | (section |
390d8f01 |
329 | :title [battery packs] |
330 | (subsection |
2a5771b0 |
331 | :title [leads] |
0315bca5 |
332 | (subsubsection |
333 | :title [strip] |
334 | (p ["leads" are the wires coming out of the battery pack. |
335 | prepare the leads of the batteries by stripping them and |
336 | placing heat shrink on them. |
337 | your battery packs are not attached to your deck yet, |
338 | but that will be the next step.]) |
339 | (figure :legend "batteries / prepare leads / stripping" |
340 | (video |
341 | :file "2-batteries/0-prepare-leads/0-strip.ogv")) |
342 | (enumerate |
343 | (item (bold [do not pick up batteries by their leads!])) |
344 | (item [strip the leads a tiny bit at a time. |
345 | keep stripping until a total of an inch is stripped. |
346 | the leads are made of tons of tiny wires that will |
347 | tear apart if too much insulation is stripped at |
348 | once. |
349 | wire made of a bunch of tiny wires |
350 | is "stranded wire".]) |
351 | (item [strip both leads of both batteries.]) |
352 | (item [then place heat shrink on every lead. |
353 | make sure the heat shrink is either clear or matches |
354 | the color of the lead.])) |
355 | (p [check]) |
2acfcb3e |
356 | (enumerate |
0315bca5 |
357 | (item [should you pick up a battery by its leads?]) |
358 | (item [should you strip the leads a large amount at a time?]) |
359 | (item [what's the name of wires made of a bunch of tiny |
360 | wires?]))) |
361 | (subsubsection |
362 | :title [wrap] |
363 | (p [do the next 2 sections with just one lead at a time. |
364 | wrap, then solder one battery lead before moving on to the |
365 | next. |
366 | wrap the stranded wire around a solid core wire, as shown |
367 | in this video.]) |
368 | (figure :legend "batteries / prepare leads / wrap" |
369 | (video |
370 | :file "2-batteries/0-prepare-leads/1-wrap.ogv")) |
371 | (p [the solid core wire is the stiff short wire. |
372 | it is much easier to poke into the breadboard.]) |
373 | (p [check]) |
2acfcb3e |
374 | (enumerate |
6a014bd1 |
375 | (item [why are we using a solid core wire?]))) |
376 | (subsubsection |
377 | :title [solder] |
378 | (p [do this next section and the previous with just one lead at a |
379 | time. |
380 | solder the stranded wire and solid core wire, as shown |
381 | in this video.]) |
382 | (figure :legend "batteries / prepare leads / solder" |
383 | (video |
384 | :file "2-batteries/0-prepare-leads/2-solder.ogv")) |
385 | (p [soldering is the process of joining 2 metal things with |
386 | solder.]) |
387 | (enumerate |
388 | (item [use the helping hands to grab the wires and hold them in |
389 | place.]) |
390 | (item [clean off the tip of the soldering iron if it has been |
391 | sitting still for a while. |
392 | this cleans off corroded metal.]) |
393 | (item [apply some solder directly to the tip of the soldering |
394 | iron. |
395 | this creates a pool of solder on the tip. |
396 | we will use this to transfer heat to the wires.]) |
397 | (item [put the soldering iron up to the wires. |
398 | we want the wires to be hot enough to melt the |
399 | solder. |
400 | at the same time, poke the solder into the wire. |
401 | the solder will start melting and quickly spread to |
402 | hot parts of the wire. |
403 | there will be smoke.]) |
404 | (item [move the solder away, then move the iron away.])) |
405 | (p [check]) |
2acfcb3e |
406 | (enumerate |
6a014bd1 |
407 | (item [should the wires melt the solder?]) |
408 | (item [why should we clean off the tip of the soldering iron?]) |
409 | (item [why do we put more solder back on the tip of the iron?])))) |
390d8f01 |
410 | (subsection |
7b690119 |
411 | :title [deck attachment] |
412 | (subsubsection |
413 | :title [motor battery pack attachment] |
414 | (p [attach the motor battery pack to the robot deck.]) |
415 | (figure |
416 | :legend "batteries / placement / motor pack" |
417 | (video |
418 | :file "2-batteries/1-placement/0-motor-battery-pack.ogv")) |
419 | (p [we will use glue dots to attach the motor battery pack to the |
420 | deck. |
421 | the pack could be placed anywhere, but we will place it |
422 | in the lower left side of the robot. |
423 | this battery pack has 4 AA batteries in it. |
424 | each battery has 1.5 volts difference between the positive |
425 | and negative side. |
426 | the batteries are connected in series. |
427 | the total voltage difference for the whole battery pack is |
428 | the sum of the individual voltages, which is 6 volts.]) |
429 | (enumerate |
430 | (item [make sure you are placing dots on the side of the battery |
431 | pack without the on/off switch.]) |
432 | (item [peel off a glue dot for each of the corners of the |
433 | battery pack.]) |
434 | (item [when placing the battery pack, make sure the screw hole |
435 | aligns with a hole on the deck.])) |
436 | (p [check]) |
437 | (enumerate |
438 | (item [why place the glue dots on the side of the battery pack |
15ba87a4 |
439 | without the on/off switch?]))) |
440 | (subsubsection |
441 | :title [arduino battery pack attachment] |
442 | (p [attach the arduino battery pack to the robot deck.]) |
443 | (figure |
444 | :legend "batteries / placement / arduino pack" |
445 | (video |
446 | :file "2-batteries/1-placement/1-arduino-battery-pack.ogv")) |
447 | (p [next, we will attach the arduino battery pack to the deck. |
448 | again, the pack could be placed anywhere, but we will |
449 | place it in the lower right side of the robot.]) |
450 | (enumerate |
451 | (item [make sure you are placing dots on the side of the battery |
452 | pack without the on/off switch, just as before.]) |
453 | (item [peel off a glue dot for each end of the pack.]) |
454 | (item [when placing the battery pack, make sure the screw hole |
455 | aligns with a hole on the deck.])) |
456 | (p [check]) |
457 | (enumerate |
458 | (item [why align the screw with a hole on the deck?]))))) |
3c0c7ca4 |
459 | (section |
5aa69c47 |
460 | :title [motors] |
461 | (subsection |
6205157f |
462 | :title [leads] |
463 | (p [attach leads to the motors to supply the motor with power.]) |
464 | (figure |
465 | :legend "motors / leads" |
466 | (video |
467 | :file "3-motor-assemblies/0-leads.ogv")) |
468 | (enumerate |
469 | (item [strip both the green and yellow wire on both ends. |
470 | strip one side only 1/8 inch. |
471 | strip the other side about 1/4 inch.]) |
472 | (item [use the end of the wire stripper to bend a hook in the wire. |
473 | make this hook on the side of the wire with a smaller |
474 | exposed section.]) |
475 | (item [do not bend the wire so that the exposed wire runs alongside |
476 | the sheath.]) |
477 | (item [put the hooks through the tabs on the motor. |
478 | make sure to place the green and yellow wire on the |
479 | correct side of the motor. |
480 | match the side of the motor that already has wires |
481 | attached. |
482 | wrap the rest of the wire around the motor in order to |
483 | keep the wire from falling off.]) |
484 | (item [once the wire is in place, wrap solder around the motor tab |
485 | and wire. |
486 | heat up the solder, motor tab and wire with the |
487 | soldering iron.]) |
488 | (item [test the solder joint with the 9v battery. |
489 | touch the battery leads to the motor leads. |
490 | make sure the 9v battery is on. |
491 | if the motor moves, the solder joint is good!]) |
492 | (item [get section of electrical tape, roughly 100mm |
493 | (about 4 inches). |
494 | slide the middle of the tape under the wires. |
495 | this tape will keep the solder joints away from the |
496 | metal band around the motor.]) |
497 | (item [the zip tie will hold the wires to the motor. |
498 | wrap the zip tie on the round part of the motor where |
499 | it meets the square portion of the motor. |
500 | this will provide mechanical support for the solder |
501 | joints. |
502 | once the zip tie is wrapped, use wire strippers to cut |
503 | off the excess zip tie.]) |
504 | (item [cover the solder joint with hot glue. |
505 | this will further keep the solder joints from corroding |
506 | in the air's moisture. |
507 | it will also keep the joint safe from anything poking |
508 | in.])) |
509 | (p [check]) |
510 | (enumerate |
511 | (item [should the electrical tape go between the wires and the |
512 | metal band?]) |
513 | (item [are the motor tabs strong?]) |
514 | (item [what are we doing to reinforce the motor tabs mechanically?]) |
515 | (item [does hot glue make an electrical connection?]))) |
50a2c61c |
516 | (subsection |
517 | :title [motor mount] |
518 | (p [now let's attach the motor mount to the motor.]) |
519 | (subsubsection |
520 | :title [angle bracket to motor mount] |
521 | (p [first, attach the angle brackets to the motor mounts with |
522 | #6-32x3/8 inch screws.]) |
523 | (figure |
524 | :legend "motors / mount / angle bracket" |
525 | (video |
526 | :file "3-motor-assemblies/1-motor-mount/0-angle-brackets.ogv")) |
527 | (p [if you cover up 2 of the holes on the motor mount, the |
528 | remaining holes look like a surprised face. |
529 | these are the holes to attach the angle brackets. |
530 | make sure the angle brackets on one motor mount are attached |
531 | in a mirror image to the other.]) |
532 | (p [check]) |
533 | (enumerate |
534 | (item [should the motor mounts have angle brackets attached in |
535 | a mirror image fashion?]) |
536 | (item [why should the motor mounts have angle brackets attached in |
537 | a mirror image fashion?]))) |
538 | (subsubsection |
42d5aff2 |
539 | :title [motor mount to motor] |
540 | (p [now attach the motor mount with angle brackets to the motor.]) |
541 | (figure |
542 | :legend "motor / mount / mount to motor" |
543 | (video |
544 | :file |
545 | "3-motor-assemblies/1-motor-mount/1-motor-mount-to-motor.ogv")) |
546 | (p [we will attach the motor mount to the motor using #4 bolts. |
547 | these screws are thinner than the #6 bolts we have used. |
548 | to clamp down on the motor, we will use a #4 nut. |
549 | the white side of the nut should face outward. |
550 | this section of the nut will keep the nut from jiggling |
551 | loose off the bolt during normal operation. |
552 | the head of the #4 bolt is a philips head, so we will |
553 | use a philips head driver for it.]) |
554 | (p [check]) |
555 | (enumerate |
556 | (item [is the #4 bolt thicker or thinner than the #6?]) |
557 | (item [do you have a ratcheting socket wrench, or not?])))) |
5aa69c47 |
558 | (subsection |
32d7d032 |
559 | :title [deck attachment] |
560 | (p [now that the motor assemblies are together, we will attach them |
561 | to the deck.]) |
562 | (figure |
563 | :legend "motor / motor assembly to deck" |
564 | (video |
565 | :file "3-motor-assemblies/2-motor-assembly-to-deck.ogv")) |
566 | (p [when attaching the motor assembly to the deck, be sure to push |
567 | the assembly as far outward from the center of the robot |
568 | as you can while tightening it down. |
569 | this will give more clearance to the wheels of the robot |
570 | so they do not rub the deck.]))) |
23599b44 |
571 | (section |
572 | :title [caster] |
573 | (p [the caster will go at the back of the robot and provide a third |
574 | point of contact for the robot, making it easier for it to |
575 | balance.]) |
576 | (figure |
577 | :legend "caster" |
578 | (video :file "4-caster-to-deck.ogv")) |
579 | (p [check]) |
580 | (enumerate |
581 | (item [what would happen if the robot did not have a caster?]))) |
3c0c7ca4 |
582 | (section |
1b593ec7 |
583 | :title [wheels] |
b863c7ae |
584 | (p [now we will attach the wheels. |
585 | this makes the motor movement transform into robot movement!]) |
586 | (figure |
587 | :legend "wheel" |
588 | (video :file "5-wheel-to-robot-assembly.ogv")) |
589 | (p [check]) |
590 | (enumerate |
591 | (item [does the robot's wheels scrape the deck?]) |
592 | (item [what would happen if the robot had no wheels?]) |
593 | (item [what does the tread do?]) |
594 | (item [what is the tread?]) |
595 | (item [what kind of screw is used?]))) |
3c0c7ca4 |
596 | (section |
6550a556 |
597 | :title [sonars] |
6143e39f |
598 | (p [we are almost done with mechanical assembly! |
599 | this next step is to add the sonar sensors to the robot. |
600 | sonar sensors are what the robot uses to detect distances. |
601 | it sends out a signal, then listens for a response and |
602 | keeps track of how long it takes.]) |
603 | (figure |
604 | :legend "sonar sensors" |
605 | (video :file "6-sonar-sensors-to-deck.ogv")) |
606 | (p [check]) |
607 | (enumerate |
608 | (item [are your sonar sensors pointy pins facing in toward the |
609 | arduino?]) |
610 | (item [was it difficult to get the sonar into the holder?]) |
611 | (item [what would happen if it was easy to slip the sonar sensor |
612 | into the sonar holder?])))) |
3c0c7ca4 |
613 | (chapter |
9fb37473 |
614 | :title [wiring and software] |
615 | (section |
f0876d62 |
616 | :title [serial] |
56fffacb |
617 | :number "0" |
f0876d62 |
618 | (subsection |
1be43d04 |
619 | :title [software on computer] |
c3e8314c |
620 | (subsubsection |
1be43d04 |
621 | :title [arduino]) |
c3e8314c |
622 | (subsubsection |
1be43d04 |
623 | :title [fritzing])) |
f0876d62 |
624 | (subsection |
625 | :title [attach arduino and computer via cable]) |
626 | (subsection |
627 | :title [debugging common connection problems]) |
628 | (subsection |
629 | :title [arduino reset button])) |
9fb37473 |
630 | (section |
bb801164 |
631 | :title [left sonar] |
632 | (subsection |
633 | :title [breadboard connectivity]) |
634 | (subsection |
635 | :title [cable]) |
636 | (subsection |
cb7d1c68 |
637 | :title [arduino headers]) |
638 | (subsection |
639 | :title [sound cm per microsecond at sea level])) |
9fb37473 |
640 | (section |
9183d52b |
641 | :title [both sonars] |
642 | (subsection |
643 | :title [breadboard power rail] |
644 | (p [power rail can provide power to more than one device.]))) |
9fb37473 |
645 | (section |
805d6362 |
646 | :title [left motor] |
647 | (subsection |
648 | :title [arduino digital output]) |
649 | (subsection |
650 | :title [quad half h bridge, aka motor controller]) |
651 | (subsection |
652 | :title [motor battery])) |
9fb37473 |
653 | (section |
79d761bc |
654 | :title [both motors] |
655 | (subsection |
656 | :title [analogWrite])) |
9fb37473 |
657 | (section |
aedd9003 |
658 | :title [untethered] |
659 | (subsection |
660 | :title [arduino battery]) |
661 | (subsection |
662 | :title [off and on functions])) |
9fb37473 |
663 | (section |
28a2365e |
664 | :title [follow] |
665 | (subsection |
666 | :title [same wiring as untethered]) |
667 | (subsection |
668 | :title [set motor]) |
669 | (subsection |
670 | :title [go]) |
671 | (subsection |
672 | :title [determining speed])) |
9fb37473 |
673 | (section |
d460f45c |
674 | :title [stay on table] |
675 | (subsection |
676 | :title [stop]) |
677 | (subsection |
678 | :title [backup]) |
679 | (subsection |
680 | :title [turn around])))) |
37d286e7 |
681 | |
682 | ;; Copyright 2016 daniel watson |
683 | |
684 | ;; This file is part of challenge-bot. |
685 | |
686 | ;; challenge-bot is free software: you can redistribute it and/or modify |
687 | ;; it under the terms of the GNU Affero General Public License as |
688 | ;; published by the Free Software Foundation, either version 3 of the |
689 | ;; License, or (at your option) any later version. |
690 | |
691 | ;; challenge-bot is distributed in the hope that it will be useful, |
692 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
693 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
694 | ;; GNU Affero General Public License for more details. |
695 | |
696 | ;; You should have received a copy of the GNU Affero General Public |
697 | ;; License along with challenge-bot. If not, see |
698 | ;; <http://www.gnu.org/licenses/>. |