2 ;; copyright info at bottom
8 (p [let's build your robot!])
10 :title [arduino to deck]
11 (p [let's attach the arduino to the deck.])
13 :title [required materials]
14 (p [you will need the things in this picture.
15 ,(figure :legend "arduino to deck / required materials"
16 (image :file "arduino-to-deck/0-required-materials.png"))
18 (item [medical kit with bandages])
19 (item [safety goggles])
20 (item [drill bit \(we will determine size in a moment\)])
25 (item [#6-32x3/8\", four of them])
26 (item [robot deck, the white thing with a grid of holes1]))]))
30 :title [choosing drill bit]
31 (p [the arduino comes with holes in it already, so we will make
32 some choices around those holes.
33 choosing the right drill bit depends on what job you are
35 right now, we are making holes for screws to hold the
37 there are two constraints between the hole and screw.
38 each hole needs to be big enough for the screw body to fit
40 the holes also need to be smaller than the screw's thread.
41 since there are holes on the arduino already, the screw was
43 the screw was chosen so that the hole on the arduino was
44 bigger than the screw body and smaller than its thread.
45 we will choose the biggest drill bit that fits through the
46 hole on the arduino, then use that to drill holes in the
48 (p [here's a cross section of a screw in the deck]
49 (figure :legend "screw cross section"
51 "arduino-to-deck/screw-cross-section.png"))))
53 :title [inserting drill bit]
54 (p (figure :legend "arduino to deck / insert bit"
55 (image :file "arduino-to-deck/1-insert-bit.png"))
56 [insert the drill bit into the teeth of the drill.
57 insert it far enough that the teeth will clamp on the
58 smooth part of the bit when they are tightened.])
60 :legend "arduino to deck / twist tighten drill teeth"
61 (image :file "arduino-to-deck/2-twist-tighten-drill-teeth.png"))
62 [while holding the drill bit, twist end of the drill to tighten
64 make sure that the teeth end up gripping the flat part of
67 :title [holding drill]
68 (p [hold the drill with one hand on the handle and trigger.
69 put the other hand on the orange nozzle, before the
70 black spinning part.]))
72 :title [arduino placement]
73 (p [the arduino should be placed as shown in this picture.]
74 (figure :legend "arduino to deck / place arduino"
75 (image :file "arduino-to-deck/3-place-arduino.png")))
77 (figure :legend "arduino to deck / place arduino closeup"
79 "arduino-to-deck/4-place-arduino-closeup.png"))
80 [the picture above shows where to place the arduino on the deck.
81 the arduino should line up with the holes on the deck.
82 this alignment line is highlighted in pink.
83 on the arduino, there's a hole on the top left, between the
84 orange reset button and black headers.
85 the green circle shows where the hole is.
86 the blue box encloses the arduino hole and two deck holes.
87 place the arduino hole mid-way between the two
94 :title [fastening arduino to deck using #6-32x3/8\" screw]
95 (p [the "#6" part of "#6-32x3/8\"" is how big around the bolt is.
96 it is related to wire gauge.
97 bigger numbers mean larger screw.
98 smaller numbers means smaller screws.]
99 (figure :legend "arduino to deck / #6-32 screw"
101 "arduino-to-deck/6-32-screw.png")))
105 [in the motor assembly, there are #4-40x1.25\" screws.
106 are those fatter, thinner, or the same thickness as the
107 #6-32x3/8\" screws?]))])
108 (p [the "32" part is a measurement of how close the threads are to
110 this is related to the angle of the thread, which is also
112 it is a count of how many times the thread wraps around one
113 inch of the screw body.])
114 (p [the head is the flat part where some tool, like the alan
115 wrench, can exert force to spin the screw.])
118 (item [how many times will the thread wrap around one inch of
120 (item [what about 2 inches?
121 how many times will the thread wrap around two
122 inches of the screw body?]))]))
124 :title [fasten the arduino board to the deck]
125 (p [push the 6-32 screw into the deck from the underside and at the
126 same time, spin the 6-32 screw clockwise while looking
128 twist until the bottom of the screw is
129 about to stick out on the top side of the deck.])
130 (p [hold the arduino board flat to the deck and line up the arduino
131 hole so the screw can come up through it.
132 continue tightening the screw into the deck, spinning the same
134 tighten until the screw head touches the deck.
135 do not continue tightening after that.])
136 (p [the arduino should still be flat against the deck still, just
137 as it was before tightening the screw.]))
140 (p [does the arduino stay with the deck when the deck moves?
141 can the arduino board still rotate a few degrees?
142 warning, if you rotate the arduino board too much, you
143 will unscrew it from the deck and you'll have to screw it
145 rotating a few degrees should be ok.]))
147 :title [arduino board move relative to deck]
148 (p [without any screws, the arduino board can move independently of
150 (p [with the first screw, the arduino can rotate around one point
153 :title [second hole and screw])
155 :title [third and fourth hole and screw]))
159 :title [battery packs]
163 :title [deck attachment]))
171 :title [deck attachment]))
181 :title [deck placement]))
185 :title [deck placement])))
187 :title [wiring and software]
191 :title [software on computer]
197 :title [attach arduino and computer via cable])
199 :title [debugging common connection problems])
201 :title [arduino reset button]))
205 :title [breadboard connectivity])
209 :title [arduino headers])
211 :title [sound cm per microsecond at sea level]))
215 :title [breadboard power rail]
216 (p [power rail can provide power to more than one device.])))
220 :title [arduino digital output])
222 :title [quad half h bridge, aka motor controller])
224 :title [motor battery]))
228 :title [analogWrite]))
232 :title [arduino battery])
234 :title [off and on functions]))
238 :title [same wiring as untethered])
244 :title [determining speed]))
246 :title [stay on table]
252 :title [turn around]))))
254 ;; Copyright 2016 daniel watson
256 ;; This file is part of challenge-bot.
258 ;; challenge-bot is free software: you can redistribute it and/or modify
259 ;; it under the terms of the GNU Affero General Public License as
260 ;; published by the Free Software Foundation, either version 3 of the
261 ;; License, or (at your option) any later version.
263 ;; challenge-bot is distributed in the hope that it will be useful,
264 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
265 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
266 ;; GNU Affero General Public License for more details.
268 ;; You should have received a copy of the GNU Affero General Public
269 ;; License along with challenge-bot. If not, see
270 ;; <http://www.gnu.org/licenses/>.