{"id":1813,"date":"2025-06-01T16:22:48","date_gmt":"2025-06-01T23:22:48","guid":{"rendered":"https:\/\/smithlearning.com\/vex\/?page_id=1813"},"modified":"2025-06-01T18:32:33","modified_gmt":"2025-06-02T01:32:33","slug":"intro-5","status":"publish","type":"page","link":"https:\/\/smithlearning.com\/vex\/intro-5\/","title":{"rendered":"Introduction 5"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1813\" class=\"elementor elementor-1813\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-685b5e4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"685b5e4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9d05cce\" data-id=\"9d05cce\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2d83123 elementor-post-navigation-borders-yes elementor-widget elementor-widget-post-navigation\" data-id=\"2d83123\" data-element_type=\"widget\" data-widget_type=\"post-navigation.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-post-navigation\">\n\t\t\t<div class=\"elementor-post-navigation__prev elementor-post-navigation__link\">\n\t\t\t\t<a href=\"https:\/\/smithlearning.com\/vex\/elementor-page-1803\/\" rel=\"prev\"><span class=\"post-navigation__arrow-wrapper post-navigation__arrow-prev\"><i class=\"fa fa-angle-left\" aria-hidden=\"true\"><\/i><span class=\"elementor-screen-only\">Prev<\/span><\/span><span class=\"elementor-post-navigation__link__prev\"><span class=\"post-navigation__prev--title\">Introduction 4<\/span><\/span><\/a>\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-post-navigation__separator-wrapper\">\n\t\t\t\t\t<div class=\"elementor-post-navigation__separator\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"elementor-post-navigation__next elementor-post-navigation__link\">\n\t\t\t\t<a href=\"https:\/\/smithlearning.com\/vex\/elementor-page-1835\/\" rel=\"next\"><span class=\"elementor-post-navigation__link__next\"><span class=\"post-navigation__next--title\">Introduction 6<\/span><\/span><span class=\"post-navigation__arrow-wrapper post-navigation__arrow-next\"><i class=\"fa fa-angle-right\" aria-hidden=\"true\"><\/i><span class=\"elementor-screen-only\">Next<\/span><\/span><\/a>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0c33283 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0c33283\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d9a18db\" data-id=\"d9a18db\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe1b788 elementor-widget elementor-widget-heading\" data-id=\"fe1b788\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Introduction 5: Bumper Switch<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a1d7f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a1d7f9\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-81264a5\" data-id=\"81264a5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-43bb45b elementor-widget elementor-widget-image\" data-id=\"43bb45b\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"700\" height=\"700\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image017.jpg\" class=\"attachment-large size-large wp-image-230\" alt=\"\" srcset=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image017.jpg 700w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image017-300x300.jpg 300w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image017-150x150.jpg 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-5befed3\" data-id=\"5befed3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-59a6088 elementor-widget elementor-widget-image\" data-id=\"59a6088\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"598\" height=\"399\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image001-2.jpg\" class=\"attachment-large size-large wp-image-224\" alt=\"\" srcset=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image001-2.jpg 598w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image001-2-300x200.jpg 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-60ce2ac\" data-id=\"60ce2ac\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8582637 elementor-widget elementor-widget-image\" data-id=\"8582637\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"191\" height=\"362\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image019.png\" class=\"attachment-large size-large wp-image-226\" alt=\"\" srcset=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image019.png 191w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2023\/05\/image019-158x300.png 158w\" sizes=\"(max-width: 191px) 100vw, 191px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6987be3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6987be3\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71c6197\" data-id=\"71c6197\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bec2e34 elementor-widget elementor-widget-text-editor\" data-id=\"bec2e34\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A bumper switch has a spring-loaded button which can recognize when it is pressed or released.<\/p><p>Add a bumper sensor to your robot and configure it in the devices window.\u00a0 It is a &#8220;3-WIRE&#8221; sensor and must be plugged into ports A-H.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9ff7e6a elementor-widget elementor-widget-image\" data-id=\"9ff7e6a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"106\" height=\"102\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/3-wire.png\" class=\"attachment-large size-large wp-image-1155\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-db547a4 elementor-widget elementor-widget-html\" data-id=\"db547a4\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<iframe width=\"600\" height=\"607\" src=\"https:\/\/instructions.online\/?id=4063-vex-v5-classroom-trainingbot-bumper\" allowfullscreen=\"\"><\/iframe>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-519a4ee elementor-widget elementor-widget-text-editor\" data-id=\"519a4ee\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\">When you use sensors, it is best to put them in a <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">WAIT UNTIL<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\"> block rather than an <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">IF-THEN-ELSE<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\"> block.\u00a0 <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">IF-THEN<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\"> blocks only check the condition one time and then move on.\u00a0 To check the sensor more than once, you would have to put the blocks into a <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">LOOP<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\">.\u00a0 By using a <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">WAIT UNTIL<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\"> block, the program will stop there and keep checking the sensor until the condition becomes <\/span><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">TRUE<\/b><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight );\">.\u00a0 Then it moves on to whatever comes next in the program.<\/span><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-91293eb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"91293eb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-4eccd51\" data-id=\"4eccd51\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-be6b7ac elementor-widget elementor-widget-image\" data-id=\"be6b7ac\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"303\" height=\"137\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/wait-until-block.png\" class=\"attachment-large size-large wp-image-1146\" alt=\"\" srcset=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/wait-until-block.png 303w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/wait-until-block-300x136.png 300w\" sizes=\"(max-width: 303px) 100vw, 303px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-2048aba\" data-id=\"2048aba\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3b58974 elementor-widget elementor-widget-image\" data-id=\"3b58974\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"274\" src=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/bumper-switch-blocks.png\" class=\"attachment-large size-large wp-image-1147\" alt=\"\" srcset=\"https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/bumper-switch-blocks.png 620w, https:\/\/smithlearning.com\/vex\/wp-content\/uploads\/2024\/06\/bumper-switch-blocks-300x133.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-fc518dc elementor-widget elementor-widget-text-editor\" data-id=\"fc518dc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Task 1:<\/strong><\/p><p>Attach the <strong>bumper switch<\/strong> to the back center of the robot.<\/p><p>\u00a0<\/p><p><b style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size );\">Task 2:<\/b><\/p><p>Write a program that waits for you to press (and release) the switch then draws a green rectangle on the screen.<\/p><p>\u00a0<\/p><p><b>Task 3:<\/b><\/p><p>Wait for the bumper switch to be pressed (and released) then start driving slowly forward.\u00a0 Wait for the bumper switch to be pressed (and released) again and stop driving.\u00a0\u00a0<\/p><p><i>(Why is it important to always wait for the bumper to be released?)<\/i><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction 5: Bumper Switch A bumper switch has a spring-loaded button which can recognize when it is pressed or released. Add a bumper sensor to your robot and configure it in the devices window.\u00a0 It is a &#8220;3-WIRE&#8221; sensor and must be plugged into ports A-H. When you use sensors, it is best to put [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1813","page","type-page","status-publish","hentry","category-intro"],"_links":{"self":[{"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/pages\/1813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/comments?post=1813"}],"version-history":[{"count":8,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/pages\/1813\/revisions"}],"predecessor-version":[{"id":1894,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/pages\/1813\/revisions\/1894"}],"wp:attachment":[{"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/media?parent=1813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/categories?post=1813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smithlearning.com\/vex\/wp-json\/wp\/v2\/tags?post=1813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}