add required materials picture
[challenge-bot] / curriculum / challenge-bot.scm
CommitLineData
37d286e7 1;; tldr; AGPLv3+
2;; copyright info at bottom
3
4(document
5 :title [challenge-bot]
6 (chapter
3c0c7ca4 7 :title [mechanical]
8 (section
58c778a1 9 :title [arduino to deck]
cf59d996 10 (subsection
11 :title [required materials]
12 (p [you will need the things in this picture.
13 ,(figure :legend "arduino to deck / required materials"
9fbc1a3f 14 (image :file "arduino-to-deck/0-required-materials.png"))
cf59d996 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]))]))
24b6d750 24 (subsection
59fef212 25 :title [first hole]
ff0f6a78 26 (subsubsection
52596bd0 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.
8923a50f 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.])
52596bd0 40 (p [here's a diagram of a screw]
41 (figure :legend "screw" (image :file "arduino-to-deck/screw.png"))))
ff0f6a78 42 (subsubsection
43 :title [inserting drill bit])
44 (subsubsection
45 :title [holding drill])
c04a9631 46 (subsubsection
47 :title [arduino placement]
48 (p [the arduino should be placed as shown in this picture.]
cf59d996 49 (figure :legend "arduino to deck / place arduino"
6fc3d47b 50 (image :file "arduino-to-deck/3-place-arduino.png")))
51 (p [here's a closeup]
c1732375 52 (figure :legend "arduino to deck / place arduino closeup"
0b5cd84e 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.]))
ff0f6a78 64 (subsubsection
59fef212 65 :title [drilling]))
66 (subsection
67 :title [first screw]
ff0f6a78 68 (subsubsection
9f651996 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
59fef212 75 ,(itemize
76 (item
9f651996 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
59fef212 89 ,(itemize
9f651996 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?]))]))
ff0f6a78 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
9f651996 99 down on its head.
100 twist until the bottom of the screw is
ff0f6a78 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
9f651996 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.])
ff0f6a78 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
9f651996 116 back in.
117 rotating a few degrees should be ok.]))
ff0f6a78 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.])))
24b6d750 124 (subsection
125 :title [second hole and screw])
126 (subsection
127 :title [third and fourth hole and screw]))
57e11138 128 (section
129 :title [breadboard])
3c0c7ca4 130 (section
390d8f01 131 :title [battery packs]
132 (subsection
133 :title [leads])
134 (subsection
135 :title [deck attachment]))
3c0c7ca4 136 (section
5aa69c47 137 :title [motors]
138 (subsection
139 :title [leads])
140 (subsection
141 :title [mount])
142 (subsection
143 :title [deck attachment]))
3c0c7ca4 144 (section
1b593ec7 145 :title [wheels]
146 (subsection
147 :title [tread])
148 (subsection
149 :title [motor]))
3c0c7ca4 150 (section
2ccf4ca9 151 :title [caster]
152 (subsection
153 :title [deck placement]))
3c0c7ca4 154 (section
6550a556 155 :title [sonars]
156 (subsection
157 :title [deck placement])))
3c0c7ca4 158 (chapter
9fb37473 159 :title [wiring and software]
160 (section
f0876d62 161 :title [serial]
162 (subsection
1be43d04 163 :title [software on computer]
c3e8314c 164 (subsubsection
1be43d04 165 :title [arduino])
c3e8314c 166 (subsubsection
1be43d04 167 :title [fritzing]))
f0876d62 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]))
9fb37473 174 (section
bb801164 175 :title [left sonar]
176 (subsection
177 :title [breadboard connectivity])
178 (subsection
179 :title [cable])
180 (subsection
cb7d1c68 181 :title [arduino headers])
182 (subsection
183 :title [sound cm per microsecond at sea level]))
9fb37473 184 (section
9183d52b 185 :title [both sonars]
186 (subsection
187 :title [breadboard power rail]
188 (p [power rail can provide power to more than one device.])))
9fb37473 189 (section
805d6362 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]))
9fb37473 197 (section
79d761bc 198 :title [both motors]
199 (subsection
200 :title [analogWrite]))
9fb37473 201 (section
aedd9003 202 :title [untethered]
203 (subsection
204 :title [arduino battery])
205 (subsection
206 :title [off and on functions]))
9fb37473 207 (section
28a2365e 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]))
9fb37473 217 (section
d460f45c 218 :title [stay on table]
219 (subsection
220 :title [stop])
221 (subsection
222 :title [backup])
223 (subsection
224 :title [turn around]))))
37d286e7 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/>.