define wiring in separate file
[challenge-bot] / wiring-checklist.org
index 9d4d54a9b6374b02841bc7ab72595768f7b51d14..3fbb2735332b4ba36c91067c88a73a99ffbe6e29 100644 (file)
     - [ ] 1x laptop
     - [ ] 1x usb cable
     - [ ] 1x sonar cable
-    - [ ] 1x 35mm red stiff wire
-    - [ ] 1x 35mm black stiff wire
+    - [ ] 1x 35mm red stiff wire (solid core, 22 AWG)
+    - [ ] 1x 35mm black stiff wire (solid core, 22 AWG)
+  - [ ] on laptop, open fritzing
+  - [ ] in fritzing, open build-stages/b_left_sonar/left-sonar.fzz
+  - [ ] plug in short wires first
+    - [ ] plug in short red wire to connect arduino's 5v and breadboard's
+      red rail, any hole in the red rail is fine.
+    - [ ] plug in short black wire to connect arduino's GND and breadboard's
+      blue rail, any hole in the blue rail is fine.
+  - [ ] connect left sonar sensor to power and arduino with sonar cable
+    - [ ] plug cable housing
+      - [ ] red wire connects to sonar pin labeled "vcc"
+      - [ ] blue wire connects to sonar pin labeled "Trig"
+      - [ ] yellow wire connects to sonar pin labeled "Echo"
+      - [ ] black wire connects to sonar pin labeled "GND"
+    - [ ] plug in other end of cable wires
+      - [ ] red wire into breadboard red rail
+      - [ ] blue wire into arduino pin digital 12
+      - [ ] yellow wire into arduino pin digital 11
+      - [ ] black wire into breadboard blue rail
+  - [ ] in arduino, use the up arrow button to open "b_left_sonar" sketch
+  - [ ] close any arduino window other than the b_left_sonar sketch
+    - [ ] close the serial monitor
+    - [ ] close the a_serial sketch
+  - [ ] connect arduino and laptop using usb cable
+  - [ ] in b_left_sonar arduino sketch, use control+u to upload
+  - [ ] control+shift+m to open the serial monitor
+  - [ ] check if arduino is getting good values from the sonar sensor
+    - [ ] put your hand in front of the left sonar and watch the numbers
+      in the serial monitor.
+    - [ ] as you bring your hand closer to the left sonar sensor, check
+      that the ping time numbers decrease
+    - [ ] as you bring your hand away from the left sonar sensor, check
+      that the numbers increase
+  - [ ] unplug usb cable from challenge-bot
+* c_both_sonars
+  - [ ] unplug usb cable from challenge-bot, if it is still plugged in
+  - [ ] locate materials
+    - [ ] 1x challenge-bot, laptop, usb cable
+    - [ ] 1x laptop
+    - [ ] 1x usb cable
+    - [ ] 1x sonar cable
+  - [ ] in fritzing, open build-stages/c_both_sonars/both-sonars.fzz
+  - [ ] connect left sonar sensor to power and arduino with sonar cable
+    - [ ] plug cable housing
+      - [ ] red wire connects to sonar pin labeled "vcc"
+      - [ ] blue wire connects to sonar pin labeled "Trig"
+      - [ ] yellow wire connects to sonar pin labeled "Echo"
+      - [ ] black wire connects to sonar pin labeled "GND"
+    - [ ] plug in other end of cable wires
+      - [ ] red wire into breadboard red rail
+      - [ ] blue wire into arduino pin digital 12
+      - [ ] yellow wire into arduino pin digital 11
+      - [ ] black wire into breadboard blue rail
+  - [ ] in arduino, use the up arrow button to open "c_both_sonars" sketch
+  - [ ] close any arduino window other than the c_both_sonars sketch
+    - [ ] close the serial monitor
+    - [ ] close the b_left_sonar sketch
+  - [ ] connect arduino and laptop using usb cable
+  - [ ] in c_both_sonars arduino sketch, use control_u to upload,
+    or click on the right arrow in a circle
+  - [ ] in arduino, use control+shift+M to open serial monitor
+  - [ ] in serial monitor, check that sonar sensors are giving good values
+    - [ ] put your hand in front of the right sonar sensor and watch
+      the right sonar sensor distance numbers in the serial monitor.
+    - [ ] as you bring your hand closer to the right sonar sensor,
+      check that the ping time and distance decrease
+    - [ ] as you bring your hand away, check for increasing numbers
+  - [ ] unplug usb cable from challenge-bot
+* d_left_motor
+  - [ ] unplug usb cable from challenge-bot, if it is still plugged in
+  - [ ] locate materials
+    - [ ] challenge-bot, laptop, usb cable
+    - [ ] 2x 35mm stiff black wire, solid core 22 AWG
+    - [ ] 1x 35mm stiff red wire, solid core 22 AWG
+    - [ ] 1x 55mm stiff black wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff white wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff orange wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff blue wire, solid core 22 AWG
+  - [ ] on laptop, in fritzing, open
+    build-stages/d_left_motor/left-motor.fzz
+  - [ ] hook up short wires first
+    - [ ] with 35mm red wire, hook breadboard red rail near arduino
+      to upper left pin of the black chip on the breadboard.
+      this is pin 16 of the black sn754410ne chip, which is used as a
+      motor controller.  this wire powers the chip's logic.
+    - [ ] with 35mm black wires, hook middle 2 pins nearer to the back of
+      the robot on the black chip to the blue rail.
+      these are pins 4 and 5 of of the sn754410n3
+    - [ ] with 63mm black wire, hook both breadboard blue rails together
+  - [ ] hook up motor wires
+    - [ ] hook motor green wire to motor controller
+      to the left of the chip's middle pins, in pin 3.
+    - [ ] hook motor yellow wire to chip on the right of the chip's
+      middle 2 pins, pin 6.
+  - [ ] connect arduino to motor controller bottom half to control left motor
+    - [ ] using white wire, fhook arduino digital pin 10 to motor
+      controller's bottom left pin.  this is the motor controller's
+      pin 1.  this wire allows the arduino to control the speed of the
+      left motor.
+    - [ ] using orange wire, hook arduino digital pin 9 to motor
+      controller's pin 2, between the pins attached to the white and green
+      wires.
+    - [ ] using blue wire, hook arduino digital pin 8 to motor
+      controller's pin 7, to the right of the pin attached to the
+      yellow wire.
+  - [ ] connect motor battery to motor controller.
+    - [ ] connect the battery's black wire to the breadboard's
+      rear blue rail
+    - [ ] connect the battery's red wire to the black chip's bottom
+      right pin.  this pin's input power is put through to the motors
+  - [ ] in arduino, use middle up arrow in a box to open up d_left_motor
+  - [ ] close any arduino window other than d_left_motor sketch window
+  - [ ] while on arduino d_left_motor sketch, use control+u to upload,
+    or use the right arrow in a circle to upload
+  - [ ] turn on the motor battery pack
+  - [ ] check that the left motor spins forwards
+  - [ ] turn off the motor battery pack
+  - [ ] unplug usb cable from challenge-bot
+* e_both_motors
+  - [ ] unplug usb cable from challenge-bot, if it is still plugged in
+  - [ ] locate materials
+    - [ ] challenge-bot, laptop, usb cable
+    - [ ] 2x 35mm stiff black wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff white wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff orange wire, solid core 22 AWG
+    - [ ] 1x 120mm stiff blue wire, solid core 22 AWG
+  - [ ] on laptop, in fritzing, open
+    build-stages/e_both_motors/both-motors.fzz
+  - [ ] hook up short wires first
+    - [ ] with 35mm black wires, hook black chip's middle 2 pins on the
+      forward side of the chip to the breadboard's blue rail.  these
+      middle pins on the chip's forward side are pins 12 and 13
+  - [ ] hook up motor wires
+    - [ ] hook yellow wire to motor controller's pins to the left
+      of the center grounded pins.  this is the chip's pin 14.
+    - [ ] hook green wire to motor controller's pins to the right
+      of the center grounded pins.  this is the chip's pin 11.
+  - [ ] connect motor controller and arduino
+    - [ ] with 120mm white wire, connect arduino digital pin 5 to
+      motor controller's forward right pin, the chip's pin 9.
+    - [ ] with 120mm orange wire, connect arduino digital pin 4 to
+      motor controller's forward second-to-left pin between red
+      and yellow connected pins.  this is the chip's pin 15.
+    - [ ] with 120mm blue wire, connect arduino digital pin 3 to
+      motor controller's pin forward second-to-left pin between
+      green and white pins.  this is the chip's pin 10.
+  - [ ] on laptop, in arduino, using up arrow in box, open e_both_motors
+    sketch, and close all other arduino windows
+  - [ ] control+u to upload
+  - [ ] turn battery pack on
+  - [ ] check that both motors spin forwards
+  - [ ] turn off the motor battery pack
+  - [ ] unplug usb cable from challenge-bot
+* f_untethered
+  - [ ] unplug usb cable from challenge-bot, if it is still plugged in
+  - [ ] locate materials
+    - [ ] challenge-bot, laptop
+  - [ ] on laptop, in fritzing, open
+    build-stages/f_untethered/untethered.fzz
+  - [ ] on laptop
+  - [ ] hook up black 9v battery to power arduino
+    - [ ] hook black battery pack's red wire to arduino "vin" pin
+    - [ ] hook black battery pack's black wire to breadboard blue
+      ground rail.
+  - [ ] unplug usb cable from challenge-bot, if it is still plugged in
+  - [ ] turn on clear motor battery pack, 4xAA
+  - [ ] turn on black 9v battery pack
+  - [ ] check that robot rolls forwards using only onboard power
+  - [ ] turn off clear motor battery pack, 4xAA
+  - [ ] turn off black 9v battery pack
+* g_follow
+  - [ ] locate materials
+    - [ ] challenge-bot, laptop, usb cable
+  - [ ] connect arduino and computer with usb cable
+  - [ ] on laptop, in arduino, open g_follow sketch
+    - [ ] close other arduino windows
+  - [ ] control+u to upload
+  - [ ] wait for g_follow to finish uploading
+  - [ ] unplug usb cable
+  - [ ] turn on clear motor battery pack
+  - [ ] turn on black arduino battery pack
+  - [ ] check wheel spin controlled by sonars
+    - [ ] check left wheel and left sonar
+      - [ ] move hand closer to left sonar
+      - [ ] check that left wheel initially rolls forwards, stops, and
+        then backwards, as your hand gets closer to the left sonar
+    - [ ] check right wheel and right sonar
+      - [ ] move hand closer to right sonar
+      - [ ] check that right wheel initially rolls forwards, stops, and
+        then backwards, as your hand gets closer to the right sonar
+  - [ ] set challenge-bot down on wheels
+  - [ ] use hands in front of the robot's sonar sensors and check if
+    you can control how the robot rolls around
+  - [ ] turn off clear motor battery pack
+  - [ ] turn off black 9v battery pack
+* h_stay_on_table
+  - [ ] locate materials
+    - [ ] challenge-bot, laptop, usb cable
+  - [ ] connect arduino and computer with usb cable
+  - [ ] on laptop, in arduino, open h_stay_on_table sketch
+    - [ ] close other arduino windows
+  - [ ] upload with control+u
+  - [ ] wait for upload to finish
+  - [ ] unplug usb cable
+  - [ ] turn on clear motor battery pack
+  - [ ] turn on black arduino battery pack
+  - [ ] set robot down on a its box or a table
+  - [ ] check that robot stays on the table
+  - [ ] check if robot can roll off an edge at a shallow angle
+    - [ ] if it does, check if you can change the placement of the
+      sonars to detect approaching an edge from a shallow angle.
+  - [ ] turn off clear motor battery pack
+  - [ ] turn off black arduino battery pack