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