show more detail on 6-32 screw
[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 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"))))
44 (subsubsection
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
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.]))
58 (subsubsection
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.]))
63 (subsubsection
64 :title [arduino placement]
65 (p [the arduino should be placed as shown in this picture.]
66 (figure :legend "arduino to deck / place arduino"
67 (image :file "arduino-to-deck/3-place-arduino.png")))
68 (p [here's a closeup]
69 (figure :legend "arduino to deck / place arduino closeup"
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.]))
81 (subsubsection
82 :title [drilling]))
83 (subsection
84 :title [first screw]
85 (subsubsection
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.
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")))
94 (p [check
95 ,(itemize
96 (item
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
109 ,(itemize
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?]))]))
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
119 down on its head.
120 twist until the bottom of the screw is
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
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.])
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
136 back in.
137 rotating a few degrees should be ok.]))
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.])))
144 (subsection
145 :title [second hole and screw])
146 (subsection
147 :title [third and fourth hole and screw]))
148 (section
149 :title [breadboard])
150 (section
151 :title [battery packs]
152 (subsection
153 :title [leads])
154 (subsection
155 :title [deck attachment]))
156 (section
157 :title [motors]
158 (subsection
159 :title [leads])
160 (subsection
161 :title [mount])
162 (subsection
163 :title [deck attachment]))
164 (section
165 :title [wheels]
166 (subsection
167 :title [tread])
168 (subsection
169 :title [motor]))
170 (section
171 :title [caster]
172 (subsection
173 :title [deck placement]))
174 (section
175 :title [sonars]
176 (subsection
177 :title [deck placement])))
178 (chapter
179 :title [wiring and software]
180 (section
181 :title [serial]
182 (subsection
183 :title [software on computer]
184 (subsubsection
185 :title [arduino])
186 (subsubsection
187 :title [fritzing]))
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]))
194 (section
195 :title [left sonar]
196 (subsection
197 :title [breadboard connectivity])
198 (subsection
199 :title [cable])
200 (subsection
201 :title [arduino headers])
202 (subsection
203 :title [sound cm per microsecond at sea level]))
204 (section
205 :title [both sonars]
206 (subsection
207 :title [breadboard power rail]
208 (p [power rail can provide power to more than one device.])))
209 (section
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]))
217 (section
218 :title [both motors]
219 (subsection
220 :title [analogWrite]))
221 (section
222 :title [untethered]
223 (subsection
224 :title [arduino battery])
225 (subsection
226 :title [off and on functions]))
227 (section
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]))
237 (section
238 :title [stay on table]
239 (subsection
240 :title [stop])
241 (subsection
242 :title [backup])
243 (subsection
244 :title [turn around]))))
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/>.