{"id":3067,"date":"2020-06-27T08:29:42","date_gmt":"2020-06-27T15:29:42","guid":{"rendered":"http:\/\/firstinmichigan.us\/FTC\/?page_id=3067"},"modified":"2022-10-18T06:35:50","modified_gmt":"2022-10-18T13:35:50","slug":"hardware-configuration","status":"publish","type":"page","link":"https:\/\/firstinmichigan.us\/FTC\/hardware-configuration\/","title":{"rendered":"Hardware Configuration"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Preparation<\/h2>\n\n\n\n<p>Before you start writing programs to control the devices on the robot, you first need to go through the <strong>hardware configuration<\/strong> process. On your robot, you will have various different devices connected to different numbered ports on your <strong>REV Expansion Hub<\/strong> or <strong>REV Control Hub<\/strong>, such as DC motors, servos, and sensors. However, in order to use these devices in our program, we have to create a hardware configuration on our Robot Controller.<\/p>\n\n\n\n<p>To create a hardware configuration, first turn on your robot and Driver Station phone and connect with your robot. <\/p>\n\n\n\n<p>If you are still using a <strong>REV Expansion Hub<\/strong>, you will have to also wire your Robot Controller phone to it. Additionally, when first plugging your phone into your robot, this message will popup a few times on your Robot Controller:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128-1024x576.png\" alt=\"\" class=\"wp-image-3087\" width=\"365\" height=\"205\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128-1024x576.png 1024w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128-300x169.png 300w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128-768x432.png 768w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128-425x239.png 425w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20190816-121128.png 1280w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/figure>\n\n\n\n<p>Check the &#8220;Use by default for this USB device&#8221; and choose &#8220;OK&#8221;. Keep doing this until the boxes go away. This is required in order for your Robot Controller to recognize the devices on your robot.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hardware Configuration<\/h2>\n\n\n\n<p>Once everyone is ready, do the following on your Driver Station phone (you can also do this on your Robot Controller phone if you are using a REV Expansion Hub):<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-regular\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Picture<\/th><th class=\"has-text-align-left\" data-align=\"left\">Instruction<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3073\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123500.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123500.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123500-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123500-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123500-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">1. When you open the Driver Station and connect it to the robot controller, it should look something like this. Click the three dots in the top right to open the menu and click &#8220;Configure Robot.&#8221;<br><br><\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3076\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123506.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123506.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123506-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123506-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123506-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">2. This will show your list of configurations. Currently, we have no configurations, so let&#8217;s click &#8220;New&#8221; to create one.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3077\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123512.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123512.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123512-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123512-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123512-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">3. If everyone is on and connected, your Expansion Hub Portal (or Control Hub Portal) should show up.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3078\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123516.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123516.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123516-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123516-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123516-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">4. This will show the REV hub(s) on your robot. In our case, we only have one hub (it comes with the Kit of Parts), so we will just choose that one. <\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3079\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123519.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123519.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123519-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123519-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123519-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">5. Now we can see all of the different types of devices that can be connected to our Hub, including motors, servos, and different types of sensors. For this guide, we will configure two drive motors on ports 0 and 1, so click &#8220;Motors.&#8221;<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3080\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123523.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123523.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123523-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123523-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123523-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">6. Here we can see all of the different motor ports on the Hub. On my robot, I have my left drive motor (a REV Core Hex Motor) on port 0, so I am going to select that motor type on port 0 here.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3082\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123542.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123542.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123542-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123542-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123542-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">7. Now that I have selected my motor type on the correct port, I am going to give it a meaningful name: &#8220;left.&#8221; Also note that when naming devices, it is good practice to use underscores instead of spaces (ex: &#8220;left_drive_motor&#8221;)<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3083\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123550.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123550.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123550-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123550-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123550-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">8. Here I also configured my right drive motor as &#8220;right&#8221;, which is plugged into port 1 of my Hub. It is important to remember the names you give your devices, as you will need to use those exact names in your code in order to control those devices.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3091\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123653.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123653.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123653-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123653-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123653-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">9. Once you finish configuring all of your devices, click &#8220;Done&#8221; in the top left until you are prompted to <strong>Save<\/strong> the configuration. Enter a name for your configuration that makes it easy to identity; here, I name mine &#8220;2020 Demo Robot.&#8221;<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3092\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123659.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123659.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123659-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123659-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123659-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">10. Now we are back to our list of configurations, and we can see that the configuration that we just created is now there! If you have multiple configurations, you can choose which one to use by clicking the &#8220;Activate&#8221; button under its name.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><img decoding=\"async\" width=\"720\" height=\"1280\" loading=\"lazy\" class=\"wp-image-3094\" style=\"width: px;\" src=\"http:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123707-1.png\" alt=\"\" srcset=\"https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123707-1.png 720w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123707-1-169x300.png 169w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123707-1-576x1024.png 576w, https:\/\/firstinmichigan.us\/FTC\/wp-content\/uploads\/2020\/06\/Screenshot_20200627-123707-1-309x550.png 309w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/td><td class=\"has-text-align-left\" data-align=\"left\">11. If we go back to the home page of the Driver Station (click the back arrow button at the bottom of  the phone&#8217;s screen) we can see on the top left that our configuration &#8220;2020 Demo Robot&#8221; is now active! This means that we can now reference and control the devices that we named in our code.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preparation Before you start writing programs to control the devices on the robot, you first need to go through the hardware configuration process. On your robot, you will have various different devices connected to different numbered ports on your REV Expansion Hub or REV Control Hub, such as DC motors, servos, and sensors. However, in order to use these devices in our program, we have to create a hardware configuration on our Robot Controller. To create a hardware configuration, first turn on your robot and Driver Station phone and connect with your robot. If you are still using a REV Expansion Hub, you will have<a class=\"more-link\" href=\"https:\/\/firstinmichigan.us\/FTC\/hardware-configuration\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","footnotes":""},"class_list":["entry","page","publish","author-eschnabel","post-3067"],"_links":{"self":[{"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/pages\/3067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/comments?post=3067"}],"version-history":[{"count":16,"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/pages\/3067\/revisions"}],"predecessor-version":[{"id":3105,"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/pages\/3067\/revisions\/3105"}],"wp:attachment":[{"href":"https:\/\/firstinmichigan.us\/FTC\/wp-json\/wp\/v2\/media?parent=3067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}