
Touch Sensor: The Touch Sensor is like the skin of of your robot! It lets your robot react when touched. There are three settings for the Touch Sensors to react to. Bumped, Pressed, and Released.
Tip: Use this sensor for aligning up to your targets and to exact your location in the middle of your program!
Tip: Use this sensor for aligning up to your targets and to exact your location in the middle of your program!
The "Touch-Stop" Program
These pictures and instructions will show you step by step Touch Sensor programming to make your robot go forward until its Touch Sensor get pressed or bumped, then stop. Make sure your Touch Sensor is mounted in a way so that it will press against your "roadblock" evenly! If you are on a smart phone and you find pictures hard to see, switch the viewing mode to "web".
(Step 1) Drag a Motor Block out. The power should be 45, the motors should be CB, and it should be on unlimited! This tells our robot that motors C and B should go forward at 45 power until told to stop.
(Step 2) Drag a Wait Touch Sensor Block out of the common palette. Make sure it is the right port! If the program does not work, then change the action to pressed! This tells our robot to stop after its Touch Sensor pressed/bumped.
(Step 3) Good luck!
(Step 2) Drag a Wait Touch Sensor Block out of the common palette. Make sure it is the right port! If the program does not work, then change the action to pressed! This tells our robot to stop after its Touch Sensor pressed/bumped.
(Step 3) Good luck!