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