From a7cba2ba374052fc1c8c4fbd1ac14979e8e03f7e Mon Sep 17 00:00:00 2001 From: FTC Engineering Date: Thu, 27 Jun 2019 15:35:18 -0400 Subject: [PATCH] Updated Connecting Devices to a Control or Expansion Hub (markdown) --- ...g-Devices-to-a-Control-or-Expansion-Hub.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Connecting-Devices-to-a-Control-or-Expansion-Hub.md b/Connecting-Devices-to-a-Control-or-Expansion-Hub.md index e92d8c5..e9310f9 100644 --- a/Connecting-Devices-to-a-Control-or-Expansion-Hub.md +++ b/Connecting-Devices-to-a-Control-or-Expansion-Hub.md @@ -11,18 +11,18 @@ Note that it will take an estimated 5 minutes to complete this task. | Connecting 12V Power to the Hub | | ---- | -| 1. If your 12V battery has a Tamiya style connector, connect the Tamiya to XT30 adapter cable to the matching end of the switch cable.


**Important Note:** Do not connect the 12V battery to the Tamiya adapter yet. We will connect the battery during a later step. | -| 2. Connect the other end of the switch cable to a matching XT30 port on the Hub.

| -| 3. Verify that the switch is in the OFF position.

| -| 4. Connect the 12V battery to the Tamiya to XT30 cable.

| -| 5. Turn on the switch and verify that the Hub is drawing power from the battery. Note that the Hub’s LED should be illuminated (notice the blue LED in upper right-hand corner of the Hub in the image below).

| -| 6. Turn off the switch and verify that the Hub is off. Note that the Hub’s LED should not be illuminated.

| +| 1. If your 12V battery has a Tamiya style connector, connect the Tamiya to XT30 adapter cable to the matching end of the switch cable.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep1.jpg]]


**Important Note:** Do not connect the 12V battery to the Tamiya adapter yet. We will connect the battery during a later step. | +| 2. Connect the other end of the switch cable to a matching XT30 port on the Hub.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep2.jpg]]

| +| 3. Verify that the switch is in the OFF position.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep3.jpg]]

| +| 4. Connect the 12V battery to the Tamiya to XT30 cable.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep4.jpg]]

| +| 5. Turn on the switch and verify that the Hub is drawing power from the battery. Note that the Hub’s LED should be illuminated (notice the blue LED in upper right-hand corner of the Hub in the image below).

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep5.jpg]]

| +| 6. Turn off the switch and verify that the Hub is off. Note that the Hub’s LED should not be illuminated.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep6.jpg]]

| ### Connecting a Motor to the Hub The Hub can drive up to four (4) 12V DC motors per Hub. The Hub uses a type of electrical connector known as a 2-pin JST VH connector. Many of the FIRST-approved 12V DC motors are equipped with Anderson Powerpole connectors. An adapter cable can be used to connect the Anderson Powerpole connectors to the Hub motor port (see [FIRST Tech Challenge Robot Wiring Guide](https://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/robot-wiring-guide.pdf) for more information).

- +[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/MotorRig.jpg]]

@@ -32,8 +32,8 @@ Note that it will take an estimated 2.5 minutes to complete this task. | Connecting a 12V Motor to the Hub | | ---- | -| 1. Connect the Anderson Powerpole end of the motor’s power cable to the Powerpole end of the Anderson to JST VH adapter cable.

| -| 2. Connect the other end of the Anderson to JST VH adapter cable into the motor port labeled “0” on the Hub.

| +| 1. Connect the Anderson Powerpole end of the motor’s power cable to the Powerpole end of the Anderson to JST VH adapter cable.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingMotorStep1.jpg]]

| +| 2. Connect the other end of the Anderson to JST VH adapter cable into the motor port labeled “0” on the Hub.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingMotorStep2.jpg]]

| ### Connecting a Servo to the Hub The Hub has 6 built-in servo ports. The servo ports accept the standard 3-wire header style connectors commonly found on servos. Note that ground pin is on the left side of the servo port. @@ -42,8 +42,8 @@ Note that it will take an estimated 2.5 minutes to complete this task. | Connecting a Servo to the Hub | | ---- | -| 1. Connect the servo cable to the servo port labeled “0” on the Hub. Note that the ground pin is on the left side of the servo port.

| -| 2. Verify that the black ground wire of the servo cable matches the ground pin of the servo port (which is aligned on the left side of the port).

| +| 1. Connect the servo cable to the servo port labeled “0” on the Hub. Note that the ground pin is on the left side of the servo port.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingServoStep1.jpg]]

| +| 2. Verify that the black ground wire of the servo cable matches the ground pin of the servo port (which is aligned on the left side of the port).

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingServoStep2.jpg]]

| ### Connecting a Color-Distance Sensor to the Hub The Hub has 4 independent I2C buses. Each bus has its own port on the Hub. We will connect a REV Robotics Color-Distance sensor to the I2C bus #0 on the Hub. @@ -52,8 +52,8 @@ Note that it will take an estimated 2.5 minutes to complete this task. | Connecting a Color-Distance Sensor to the Hub | | ---- | -| 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Color-Distance sensor.

| -| 2. Plug the other end of the 4-pin JST PH cable to the I2C port labeled “0” on the Hub.

| +| 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Color-Distance sensor.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ColorSensorStep1.jpg]]

| +| 2. Plug the other end of the 4-pin JST PH cable to the I2C port labeled “0” on the Hub.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ColorSensorStep2.jpg]]

| ### Connecting a Touch Sensor to the Hub The Hub has 4 independent digital input/output (I/O) ports. Each port has two digital I/O pins for a total of 8 digital I/O pins on a Hub. You will connect a REV Robotics Touch sensor to one of the digital I/O ports. @@ -64,5 +64,5 @@ Note that it will take an estimated 2.5 minutes to complete this task. | Connecting a Touch Sensor to the Hub | | ---- | -| 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Touch sensor.

| -| 2. Plug the other end of the 4-pin JST PH cable to digital I/O port labeled “0-1” on the Hub.

| \ No newline at end of file +| 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Touch sensor.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/TouchSensorStep1.jpg]]

| +| 2. Plug the other end of the 4-pin JST PH cable to digital I/O port labeled “0-1” on the Hub.

[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/TouchSensorStep2.jpg]]

| \ No newline at end of file