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

What are Wait Blocks?

If you are a beginner and you want to use sensors, the Wait Blocks are the place to begin. Using Wait blocks we can stop a program for a period of time, or keep a program going until a variable has been satisfied. This block lets your robot sense its environment for a certain condition before it continues. Use the slider or type in a value to set a trigger point so that the program continues when your sensor reads values that are below or above the trigger point. The page will cover various types of Wait Blocks including:
  • Touch Sensor
  • Sound Sensor
  • Light Sensor
  • Ultrasonic Sensor
  • NXT Buttons
  • Rotation Sensor
  • Timer
  • Receive Message

Picture

Touch Sensor Wait Block

Picture
Use a Touch Sensor Wait Block to program your robot to "wait" for a Touch Sensor to be bumped, pressed, or released before going on the next block in your program. An example of this:
  1. A robot is driving forward on infinite.
  2. The robot stops when its Touch Sensor is pressed against an object.
To program this, feel free to go to Touch Sensor.


Sound Sensor Wait Block

Picture
Use a Sound Sensor Wait Block to program your robot to "wait" for a Sound Sensor to detect a certain intensity or sound before going on to the next block in your program. An example of this:
  1. A robot is driving forward on infinite.
  2. The robot stops when its Sound Sensor detects an intensity of sound.

Picture
Powered by Create your own unique website with customizable templates.