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