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