Updated Connecting Devices to a Control or Expansion Hub (markdown)

FTC Engineering
2019-06-27 15:35:18 -04:00
parent ce10f25d29
commit a7cba2ba37

@ -11,18 +11,18 @@ Note that it will take an estimated 5 minutes to complete this task.
| Connecting 12V Power to the Hub | | 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.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep1.jpg" width="250"></p><br/>**Important Note:** Do not connect the 12V battery to the Tamiya adapter yet. We will connect the battery during a later step. | | 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.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep1.jpg]]</p><br/>**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.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep2.jpg" width="350"></p> | | 2. Connect the other end of the switch cable to a matching XT30 port on the Hub.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep2.jpg]]</p> |
| 3. Verify that the switch is in the OFF position.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep3.jpg" width="250"></p> | | 3. Verify that the switch is in the OFF position.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep3.jpg]]</p> |
| 4. Connect the 12V battery to the Tamiya to XT30 cable.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep4.jpg" width="350"></p> | | 4. Connect the 12V battery to the Tamiya to XT30 cable.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep4.jpg]]</p> |
| 5. Turn on the switch and verify that the Hub is drawing power from the battery. Note that the Hubs LED should be illuminated (notice the blue LED in upper right-hand corner of the Hub in the image below).<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep5.jpg" width="350"></p> | | 5. Turn on the switch and verify that the Hub is drawing power from the battery. Note that the Hubs LED should be illuminated (notice the blue LED in upper right-hand corner of the Hub in the image below).<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep5.jpg]]</p> |
| 6. Turn off the switch and verify that the Hub is off. Note that the Hubs LED should not be illuminated.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep6.jpg" width="350"></p> | | 6. Turn off the switch and verify that the Hub is off. Note that the Hubs LED should not be illuminated.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/Connecting12VStep6.jpg]]</p> |
### Connecting a Motor to the Hub ### 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). 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).
<p align="center"> <p align="center">
<img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/MotorRig.jpg" width="350"> [[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/MotorRig.jpg]]
</p> </p>
@ -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 | | Connecting a 12V Motor to the Hub |
| ---- | | ---- |
| 1. Connect the Anderson Powerpole end of the motors power cable to the Powerpole end of the Anderson to JST VH adapter cable. <br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingMotorStep1.jpg" width="250"> </p> | | 1. Connect the Anderson Powerpole end of the motors power cable to the Powerpole end of the Anderson to JST VH adapter cable. <br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingMotorStep1.jpg]] </p> |
| 2. Connect the other end of the Anderson to JST VH adapter cable into the motor port labeled “0” on the Hub.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingMotorStep2.jpg" width="350"></p> | | 2. Connect the other end of the Anderson to JST VH adapter cable into the motor port labeled “0” on the Hub.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingMotorStep2.jpg]]</p> |
### Connecting a Servo to the Hub ### 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. 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 | | 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. <br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingServoStep1.jpg" width="350"> </p> | | 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. <br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingServoStep1.jpg]] </p> |
| 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).<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingServoStep2.jpg" width="350"></p> | | 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).<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ConnectingServoStep2.jpg]]</p> |
### Connecting a Color-Distance Sensor to the Hub ### 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. 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 | | 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. <br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ColorSensorStep1.jpg" width="200"> </p> | | 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Color-Distance sensor. <br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ColorSensorStep1.jpg]] </p> |
| 2. Plug the other end of the 4-pin JST PH cable to the I2C port labeled “0” on the Hub.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ColorSensorStep2.jpg" width="350"></p> | | 2. Plug the other end of the 4-pin JST PH cable to the I2C port labeled “0” on the Hub.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/ColorSensorStep2.jpg]]</p> |
### Connecting a Touch Sensor to the Hub ### 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. 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 | | 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. <br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/TouchSensorStep1.jpg" width="200"> </p> | | 1. Connect the one end of the 4-pin JST PH cable to the REV Robotics Touch sensor. <br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/TouchSensorStep1.jpg]] </p> |
| 2. Plug the other end of the 4-pin JST PH cable to digital I/O port labeled “0-1” on the Hub.<br/><br/><p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/TouchSensorStep2.jpg" width="350"></p> | | 2. Plug the other end of the 4-pin JST PH cable to digital I/O port labeled “0-1” on the Hub.<br/><br/><p align="center">[[/images/Connecting-Devices-to-a-Control-or-Expansion-Hub/TouchSensorStep2.jpg]]</p> |