Lesson1.docx - LEGO Mindstorms Class Lesson 1 Some Important LEGO Mindstorm Parts Brick Ultrasonic Sensor Light Sensor Touch Sensor Color Sensor Motor

Lesson1.docx - LEGO Mindstorms Class Lesson 1 Some...

This preview shows page 1 - 4 out of 7 pages.

LEGO Mindstorms Class: Lesson 1 Some Important LEGO Mindstorm Parts Brick Ultrasonic Sensor Light Sensor Touch Sensor Color Sensor Motor Gears Axle Straight Beam Angled Beam Cable 1
Image of page 1
The NXT-G Programming Environment 2
Image of page 2
Write a simple program to make the brick play a sound 1. Connect the USB cable between the brick and the computer. 2. Select the Sound brick from the Action Blocks, and select a Sound file to play. The 'Play Sound' Program The Sound Block Settings 3. Select "Save" from the file menu, and save your program with the name "Play Sound". 4.Press the "Download and Run" button. Did it play? 5. Unplug your brick from the computer. See if you can find the program named "Play Sound" on the brick and play it directly from the brick. 6. Congratulations! You just wrote and ran your first NXT-G program! Change the "Play Sound" program to repeat itself 3 times using a loop 1. Select the "Loop" brick from the Flow Blocks and put it after the "Sound" block
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 7 pages?

  • Spring '19
  • rwewe
  • Lego Mindstorms NXT, Lego Mindstorms NXT 2.0, loop block

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes