shorten code by removing unnecessary "actual"
[challenge-bot] / wiring-checklist.org
1 * setup software
2 - [ ] locate materials
3 - [ ] 1x laptop
4 - [ ] 1x download latest installers
5 - [ ] arduino
6 - [ ] fritzing
7 - [ ] openscad
8 - [ ] 1x challenge-bot content download
9 - [ ] install software
10 - [ ] when installing arduino on ms windows, be sure to install drivers
11 - [ ] set up arduino preferences to set sketchbook location as
12 challenge-bot/build-stages.
13 alternatively, move everything from challenge-bot/build-stages to
14 wherever the current sketchbook location is.
15 * a_serial
16 - [ ] locate materials
17 - [ ] 1x mechanically assembled challenge-bot
18 - [ ] 1x usb cable
19 - [ ] 1x laptop with arduino installed
20 - [ ] open arduino
21 - [ ] connect arduino and laptop using usb cable
22 - [ ] open arduino
23 - [ ] open a_serial sketch using the up arrow in the upper left hand
24 of the arduino window, under "File Edit Sketch Tools Help".
25 - [ ] tools -> serial port -> select something with arduino
26 - [ ] tools -> board -> arduino uno (top, or near top, of the list)
27 - [ ] control+u to upload the program to the arduino,
28 or click the "->" arrow in a circle on the upper left of arduino window.
29 - [ ] control+shift+M to open serial monitor,
30 or click the magnifying glass in the upper right hand corner.
31 - [ ] should say "hello computer!" in the serial monitor window
32 - [ ] should repeat "hello computer!" after pressing physical
33 reset button on arduino.
34 - [ ] change the code where it says "hello computer!" to say
35 something else, reupload, and reopen serial monitor to see
36 the new content!
37 - [ ] unplug usb cable from challenge-bot
38 * b_left_sonar
39 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
40 - [ ] locate materials
41 - [ ] 1x mechanically assembled challenge-bot
42 - [ ] 1x laptop
43 - [ ] 1x usb cable
44 - [ ] 1x sonar cable
45 - [ ] 1x 35mm red stiff wire (solid core, 22 AWG)
46 - [ ] 1x 35mm black stiff wire (solid core, 22 AWG)
47 - [ ] on laptop, open fritzing
48 - [ ] in fritzing, open build-stages/b_left_sonar/left-sonar.fzz
49 - [ ] plug in short wires first
50 - [ ] plug in short red wire to connect arduino's 5v and breadboard's
51 red rail, any hole in the red rail is fine.
52 - [ ] plug in short black wire to connect arduino's GND and breadboard's
53 blue rail, any hole in the blue rail is fine.
54 - [ ] connect left sonar sensor to power and arduino with sonar cable
55 - [ ] plug cable housing
56 - [ ] red wire connects to sonar pin labeled "vcc"
57 - [ ] blue wire connects to sonar pin labeled "Trig"
58 - [ ] yellow wire connects to sonar pin labeled "Echo"
59 - [ ] black wire connects to sonar pin labeled "GND"
60 - [ ] plug in other end of cable wires
61 - [ ] red wire into breadboard red rail
62 - [ ] blue wire into arduino pin digital 12
63 - [ ] yellow wire into arduino pin digital 11
64 - [ ] black wire into breadboard blue rail
65 - [ ] in arduino, use the up arrow button to open "b_left_sonar" sketch
66 - [ ] close any arduino window other than the b_left_sonar sketch
67 - [ ] close the serial monitor
68 - [ ] close the a_serial sketch
69 - [ ] connect arduino and laptop using usb cable
70 - [ ] in b_left_sonar arduino sketch, use control+u to upload
71 - [ ] control+shift+m to open the serial monitor
72 - [ ] check if arduino is getting good values from the sonar sensor
73 - [ ] put your hand in front of the left sonar and watch the numbers
74 in the serial monitor.
75 - [ ] as you bring your hand closer to the left sonar sensor, check
76 that the ping time numbers decrease
77 - [ ] as you bring your hand away from the left sonar sensor, check
78 that the numbers increase
79 - [ ] unplug usb cable from challenge-bot
80 * c_both_sonars
81 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
82 - [ ] locate materials
83 - [ ] 1x challenge-bot, laptop, usb cable
84 - [ ] 1x laptop
85 - [ ] 1x usb cable
86 - [ ] 1x sonar cable
87 - [ ] in fritzing, open build-stages/c_both_sonars/both-sonars.fzz
88 - [ ] connect left sonar sensor to power and arduino with sonar cable
89 - [ ] plug cable housing
90 - [ ] red wire connects to sonar pin labeled "vcc"
91 - [ ] blue wire connects to sonar pin labeled "Trig"
92 - [ ] yellow wire connects to sonar pin labeled "Echo"
93 - [ ] black wire connects to sonar pin labeled "GND"
94 - [ ] plug in other end of cable wires
95 - [ ] red wire into breadboard red rail
96 - [ ] blue wire into arduino pin digital 12
97 - [ ] yellow wire into arduino pin digital 11
98 - [ ] black wire into breadboard blue rail
99 - [ ] in arduino, use the up arrow button to open "c_both_sonars" sketch
100 - [ ] close any arduino window other than the c_both_sonars sketch
101 - [ ] close the serial monitor
102 - [ ] close the b_left_sonar sketch
103 - [ ] connect arduino and laptop using usb cable
104 - [ ] in c_both_sonars arduino sketch, use control_u to upload,
105 or click on the right arrow in a circle
106 - [ ] in arduino, use control+shift+M to open serial monitor
107 - [ ] in serial monitor, check that sonar sensors are giving good values
108 - [ ] put your hand in front of the right sonar sensor and watch
109 the right sonar sensor distance numbers in the serial monitor.
110 - [ ] as you bring your hand closer to the right sonar sensor,
111 check that the ping time and distance decrease
112 - [ ] as you bring your hand away, check for increasing numbers
113 - [ ] unplug usb cable from challenge-bot
114 * d_left_motor
115 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
116 - [ ] locate materials
117 - [ ] challenge-bot, laptop, usb cable
118 - [ ] 2x 35mm stiff black wire, solid core 22 AWG
119 - [ ] 1x 35mm stiff red wire, solid core 22 AWG
120 - [ ] 1x 55mm stiff black wire, solid core 22 AWG
121 - [ ] 1x 120mm stiff white wire, solid core 22 AWG
122 - [ ] 1x 120mm stiff orange wire, solid core 22 AWG
123 - [ ] 1x 120mm stiff blue wire, solid core 22 AWG
124 - [ ] on laptop, in fritzing, open
125 build-stages/d_left_motor/left-motor.fzz
126 - [ ] hook up short wires first
127 - [ ] with 35mm red wire, hook breadboard red rail near arduino
128 to upper left pin of the black chip on the breadboard.
129 this is pin 16 of the black sn754410ne chip, which is used as a
130 motor controller. this wire powers the chip's logic.
131 - [ ] with 35mm black wires, hook middle 2 pins nearer to the back of
132 the robot on the black chip to the blue rail.
133 these are pins 4 and 5 of of the sn754410n3
134 - [ ] with 63mm black wire, hook both breadboard blue rails together
135 - [ ] hook up motor wires
136 - [ ] hook motor green wire to motor controller
137 to the left of the chip's middle pins, in pin 3.
138 - [ ] hook motor yellow wire to chip on the right of the chip's
139 middle 2 pins, pin 6.
140 - [ ] connect arduino to motor controller bottom half to control left motor
141 - [ ] using white wire, fhook arduino digital pin 10 to motor
142 controller's bottom left pin. this is the motor controller's
143 pin 1. this wire allows the arduino to control the speed of the
144 left motor.
145 - [ ] using orange wire, hook arduino digital pin 9 to motor
146 controller's pin 2, between the pins attached to the white and green
147 wires.
148 - [ ] using blue wire, hook arduino digital pin 8 to motor
149 controller's pin 7, to the right of the pin attached to the
150 yellow wire.
151 - [ ] connect motor battery to motor controller.
152 - [ ] connect the battery's black wire to the breadboard's
153 rear blue rail
154 - [ ] connect the battery's red wire to the black chip's bottom
155 right pin. this pin's input power is put through to the motors
156 - [ ] in arduino, use middle up arrow in a box to open up d_left_motor
157 - [ ] close any arduino window other than d_left_motor sketch window
158 - [ ] while on arduino d_left_motor sketch, use control+u to upload,
159 or use the right arrow in a circle to upload
160 - [ ] turn on the motor battery pack
161 - [ ] check that the left motor spins forwards
162 - [ ] turn off the motor battery pack
163 - [ ] unplug usb cable from challenge-bot
164 * e_both_motors
165 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
166 - [ ] locate materials
167 - [ ] challenge-bot, laptop, usb cable
168 - [ ] 2x 35mm stiff black wire, solid core 22 AWG
169 - [ ] 1x 120mm stiff white wire, solid core 22 AWG
170 - [ ] 1x 120mm stiff orange wire, solid core 22 AWG
171 - [ ] 1x 120mm stiff blue wire, solid core 22 AWG
172 - [ ] on laptop, in fritzing, open
173 build-stages/e_both_motors/both-motors.fzz
174 - [ ] hook up short wires first
175 - [ ] with 35mm black wires, hook black chip's middle 2 pins on the
176 forward side of the chip to the breadboard's blue rail. these
177 middle pins on the chip's forward side are pins 12 and 13
178 - [ ] hook up motor wires
179 - [ ] hook yellow wire to motor controller's pins to the left
180 of the center grounded pins. this is the chip's pin 14.
181 - [ ] hook green wire to motor controller's pins to the right
182 of the center grounded pins. this is the chip's pin 11.
183 - [ ] connect motor controller and arduino
184 - [ ] with 120mm white wire, connect arduino digital pin 5 to
185 motor controller's forward right pin, the chip's pin 9.
186 - [ ] with 120mm orange wire, connect arduino digital pin 4 to
187 motor controller's forward second-to-left pin between red
188 and yellow connected pins. this is the chip's pin 15.
189 - [ ] with 120mm blue wire, connect arduino digital pin 3 to
190 motor controller's pin forward second-to-left pin between
191 green and white pins. this is the chip's pin 10.
192 - [ ] on laptop, in arduino, using up arrow in box, open e_both_motors
193 sketch, and close all other arduino windows
194 - [ ] control+u to upload
195 - [ ] turn battery pack on
196 - [ ] check that both motors spin forwards
197 - [ ] turn off the motor battery pack
198 - [ ] unplug usb cable from challenge-bot
199 * f_untethered
200 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
201 - [ ] locate materials
202 - [ ] challenge-bot, laptop
203 - [ ] on laptop, in fritzing, open
204 build-stages/f_untethered/untethered.fzz
205 - [ ] on laptop
206 - [ ] hook up black 9v battery to power arduino
207 - [ ] hook black battery pack's red wire to arduino "vin" pin
208 - [ ] hook black battery pack's black wire to breadboard blue
209 ground rail.
210 - [ ] unplug usb cable from challenge-bot, if it is still plugged in
211 - [ ] turn on clear motor battery pack, 4xAA
212 - [ ] turn on black 9v battery pack
213 - [ ] check that robot rolls forwards using only onboard power
214 - [ ] turn off clear motor battery pack, 4xAA
215 - [ ] turn off black 9v battery pack
216 * g_follow
217 - [ ] locate materials
218 - [ ] challenge-bot, laptop, usb cable
219 - [ ] connect arduino and computer with usb cable
220 - [ ] on laptop, in arduino, open g_follow sketch
221 - [ ] close other arduino windows
222 - [ ] control+u to upload
223 - [ ] wait for g_follow to finish uploading
224 - [ ] unplug usb cable
225 - [ ] turn on clear motor battery pack
226 - [ ] turn on black arduino battery pack
227 - [ ] check wheel spin controlled by sonars
228 - [ ] check left wheel and left sonar
229 - [ ] move hand closer to left sonar
230 - [ ] check that left wheel initially rolls forwards, stops, and
231 then backwards, as your hand gets closer to the left sonar
232 - [ ] check right wheel and right sonar
233 - [ ] move hand closer to right sonar
234 - [ ] check that right wheel initially rolls forwards, stops, and
235 then backwards, as your hand gets closer to the right sonar
236 - [ ] set challenge-bot down on wheels
237 - [ ] use hands in front of the robot's sonar sensors and check if
238 you can control how the robot rolls around
239 - [ ] turn off clear motor battery pack
240 - [ ] turn off black 9v battery pack
241 * h_stay_on_table
242 - [ ] locate materials
243 - [ ] challenge-bot, laptop, usb cable
244 - [ ] connect arduino and computer with usb cable
245 - [ ] on laptop, in arduino, open h_stay_on_table sketch
246 - [ ] close other arduino windows
247 - [ ] upload with control+u
248 - [ ] wait for upload to finish
249 - [ ] unplug usb cable
250 - [ ] turn on clear motor battery pack
251 - [ ] turn on black arduino battery pack
252 - [ ] set robot down on a its box or a table
253 - [ ] check that robot stays on the table
254 - [ ] check if robot can roll off an edge at a shallow angle
255 - [ ] if it does, check if you can change the placement of the
256 sonars to detect approaching an edge from a shallow angle.
257 - [ ] turn off clear motor battery pack
258 - [ ] turn off black arduino battery pack