Friday, 12 January 2018

Part2
Wiring the Robot

  1. 1
    Break off two 3-pin headers. You'll be using these to connect the servos to the breadboard. Push the pins down through the header so that the pins come out in an equal distance on both sides.
  2. 2
    Insert the two headers into pins 1-3 and 6-8 on row E of the breadboard. Make sure that they are firmly inserted.
  3. 3
    Connect the servo cables to the headers, with the black cable on the left side (pins 1 and 6). This will connect the servos to the breadboard. Make sure the left servo is connected to the left header, and the right servo to the right header.
  4. 4
    Connect red jumper wires from pins C2 and C7 to red (positive) rail pins. Make sure you use the red rail on the back of the breadboard (closer to the rest of the chassis).
  5. 5
    Connect black jumper wires from pins B1 and B6 to blue (ground) rail pins.Make sure that you use the blue rail on the back of the breadboard. Do not plug them into the red rail pins.
  6. 6
    Connect white jumper wires from pins 12 and 13 on the Arduino to A3 and A8.This will allow the Arduino to control the servos and turn the wheels.
  7. 7
    Attach the sensor to the front of the breadboard. It does not get plugged into the outer power rails on the breadboard, but instead into the first row of lettered pins (J). Make sure you place it in the exact center, with an equal number of pins available on each side.
  8. 8
    Connect a black jumper wire from pin I14 to the first available blue rail pin on the left of the sensor. This will ground the sensor.
  9. 9
    Connect a red jumper wire from pin I17 to the first available red rail pin to the right of the sensor. This will power the sensor.
  10. 10
    Connect white jumper wires from pin I15 to pin 9 on the Arduino, and from I 16 to pin 8. This will feed information from the sensor to the micro controller

1 comment: