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