Introduction To Programming with LEGO NXT 2
Common Blocks Move Record/Play* Sound Display Wait Loop Switch * We wont be using this component
Move Controls Servo Motors Multiple/Single Direction Speed Distance
Click for Code
Sound Play a sound file or a tone Set Volume Sound File Repeat File property will let you choose the sound file by its name “Wait for Completion”
Display check the “Clear” checkbox to ‘Clear Screen’ Use the pull-down menu to choose Image Text Drawing check the “Clear” checkbox to ‘Clear Screen’
Wait Blocks On some occasions you may want the robot to wait until an event occurs. The wait block can work in two different ways Time Sensor
Wait Blocks Sensor Touch Sensor Sound Sensor Light Sensor Ultrasonic Sensor NXT Buttons (Built-in) Rotation Sensor Timer Receive Message (Bluetooth)
Wait Blocks (Ultra Sonic) (Message) (Timer) (NXT Buttons) (Light) (Touch) (Rotation) (Sound)
Lab 2