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

FTC Engineering
2019-04-09 11:59:55 -04:00
parent 5f8b45e95e
commit 16dd7f38eb

@ -2,22 +2,24 @@ This section explains how to connect a motor, a servo, and a sensor to your REV
The images in this section use an Expansion Hub to demonstrate how to connect the devices. The process is identical for a Control Hub. The images in this section use an Expansion Hub to demonstrate how to connect the devices. The process is identical for a Control Hub.
### Connecting 12V Power to the Expansion Hub When the instructions in this section refer to a "Hub", they are referring to a Control Hub or Expansion Hub.
The Expansion Hub draws power from a 12V rechargeable battery. For safety reasons, the battery has a 20A fuse built in. A mechanical switch is used to turn on/turn off the power.
### Connecting 12V Power to the Hub
The Hub draws power from a 12V rechargeable battery. For safety reasons, the battery has a 20A fuse built in. A mechanical switch is used to turn on/turn off the power.
Note that it will take an estimated 5 minutes to complete this task. Note that it will take an estimated 5 minutes to complete this task.
| Connecting 12V Power to the Expansion 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/>Do not plug 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep1.jpg" width="250"></p><br/>Do not plug 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 Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep2.jpg" width="350"></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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep3.jpg" width="250"></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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/Connecting12VStep4.jpg" width="350"></p> |
| 5. Turn on the switch and verify that the Expansion Hub is drawing power from the battery. Note that the Expansion Hubs LED should be illuminated (notice the blue LED in upper right-hand corner of the Expansion 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 Expansion 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> |
| 6. Turn off the switch and verify that the Expansion Hub is off. Note that the Expansion 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 Expansion 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> |
### Connecting a Motor to the Expansion Hub ### Connecting a Motor to the Hub
The Expansion Hub can drive up to four (4) 12V DC motors per Expansion Hub. The Expansion Hub uses a type of electrical connector known as a 2-pin JST VH connector. Currently, the FIRST-approved 12V DC motors are equipped with Anderson Powerpole connectors. An adapter cable is used to connect the Anderson Powerpole connectors to the Expansion Hub motor port. The Hub can drive up to four (4) 12V DC motors per Expansion Hub. The Hub uses a type of electrical connector known as a 2-pin JST VH connector. Currently, the FIRST-approved 12V DC motors are equipped with Anderson Powerpole connectors. An adapter cable is used to connect the Anderson Powerpole connectors to the Hub motor port.
<p align="center"> <p align="center">
<img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/MotorRig.jpg" width="350"> <img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/MotorRig.jpg" width="350">
@ -28,39 +30,39 @@ For the examples in this wiki, FIRST recommends that the user build a simple rig
Note that it will take an estimated 2.5 minutes to complete this task. Note that it will take an estimated 2.5 minutes to complete this task.
| Connecting a 12V Motor to the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingMotorStep1.jpg" width="250"> </p> |
| 2. Connect the other end of the Anderson to JST VH adapter cable into the motor port labeled “0” on the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingMotorStep2.jpg" width="350"></p> |
### Connecting a Servo to the Expansion Hub ### Connecting a Servo to the Hub
The REV Robotics Expansion 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.
Note that it will take an estimated 2.5 minutes to complete this task. Note that it will take an estimated 2.5 minutes to complete this task.
| Connecting a Servo to the Expansion Hub | | Connecting a Servo to the Expansion Hub |
| ---- | | ---- |
| 1. Connect the servo cable to the servo port labeled “0” on the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingServoStep1.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"><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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ConnectingServoStep2.jpg" width="350"></p> |
### Connecting a Color-Distance Sensor to the Expansion Hub ### Connecting a Color-Distance Sensor to the Hub
The Expansion 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 Expansion 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.
Note that it will take an estimated 2.5 minutes to complete this task. Note that it will take an estimated 2.5 minutes to complete this task.
| Connecting a Color-Distance Sensor to the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ColorSensorStep1.jpg" width="200"> </p> |
| 2. Plug the other end of the 4-pin JST PH cable to the I2C port labeled “0” on the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/ColorSensorStep2.jpg" width="350"></p> |
### Connecting a Touch Sensor to the Expansion Hub ### Connecting a Touch Sensor to the Hub
The Expansion 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 an Expansion 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.
Note that in the case of the REV Robotics Touch Sensor, the device has a connector port for a 4-pin sensor cable. However, the device only needs to connect to one of the two available digital I/O pins. For the REV Robotics Touch Sensor, the second digital I/O pin in the port is the one that gets connected when a standard REV Robotics 4-pin JST PH cable is used. For the “0-1” port, it is the pin labeled “1” that gets connected through the 4-pin cable. Similarly, for the “2-3” port, it is the pin labeled “3” that gets connected through the 4-pin cable. Note that in the case of the REV Robotics Touch Sensor, the device has a connector port for a 4-pin sensor cable. However, the device only needs to connect to one of the two available digital I/O pins. For the REV Robotics Touch Sensor, the second digital I/O pin in the port is the one that gets connected when a standard REV Robotics 4-pin JST PH cable is used. For the “0-1” port, it is the pin labeled “1” that gets connected through the 4-pin cable. Similarly, for the “2-3” port, it is the pin labeled “3” that gets connected through the 4-pin cable.
Note that it will take an estimated 2.5 minutes to complete this task. Note that it will take an estimated 2.5 minutes to complete this task.
| Connecting a Touch Sensor to the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/TouchSensorStep1.jpg" width="200"> </p> |
| 2. Plug the other end of the 4-pin JST PH cable to digital I/O port labeled “0-1” on the Expansion 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"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/ftc_app/images/TouchSensorStep2.jpg" width="350"></p> |