Answer Key: NXT Test Programs (Try Me Mode)

Answer Key: “Try Me” Mode Worksheet

  1. Try Touch
    a – pressing the sensor causes the displayed lego dude to open his mouth and make a sound
    b – input: touch sensor, outputs: LCD screen and speaker
    c > display closed mouth
      > wait for sensor to be pressed
      > change screen image and make sound
      > wait for sensor to be released
    Start over

  2. Try Light
    a – moving the sensor causes the sound to change
    b – input: light sensor, output: speaker
    c > make sound
      > if reflected light increases, increase pitch of sound
      > if reflected light decreases, decrease pitch of sound
    Start over

  3. Try Ultrasonic
    a – moving the sensor causes the sound to change
    b – input: ultrasonic sensor, output: speaker
    c > make sound
      > if distance to object increases, increase pitch of sound
      > if distance to object decreases, decrease pitch of sound
      > if sensor touches object, make high pitch sound
    Start over

  4. Try Motor
    a – moving the motor causes the sound to change
    b – input: motor, output: speaker
    c > make sound
      > if motor rotates away from starting point, increase pitch of sound
      > if motor rotates toward starting point, decrease pitch of sound
    Start over

  5. Try Sound
    a – making sounds causes the robot to move
    b – input: sound sensor, output: motors
    c > if sounds increases, increase speed of motors
      > if sounds decreases, decrease speed of motors
    Start over