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