Follow and Contact Us! Logo and Images are subject to Copyright .
  • Home
  • Introduction
    • Mindstorms Environment
    • Know Your Blocks!>
      • Common Palette Blocks>
        • The Wait Blocks
      • Complete Palette Blocks>
        • Action Blocks
  • Sensors
    • Why Use Sensors?
    • Touch Sensor
    • Ultrasonic Sensor
    • Light Sensor
    • Color Sensor
  • Motors
    • Swing Turns
    • Point Turns
    • Motor-A
    • Curving Robot?!
  • Advanced Code
    • Advanced Code Help
  • Videos & Websites!
    • Lego Mindstorms Website
    • FLL Website
    • nxtprograms.com (Projects)
    • The NXT Step Blog
    • NXT Club Blog
    • CodeBase
Picture
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!


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!
Picture
Sensors
Why Use Sensors?
Ultrasonic Sensor
Light Sensor
Color Sensor
Home
Powered by Create your own unique website with customizable templates.