Rat Race





Name of Activity Rat Race
Author STOMP
Keywords NXT, 1 Hour Total, vehicle, car, obstacle, obstacle course, contrasting colors, sound, sound sensor, constraints
Subject NXTs
Grade Level 4, 5, 6, 7, 8, 9+
Time 1 Hour Total
Brief Description Students will program their NXT vehicles through an obstacle course. The instructor
should be creative in making an obstacle course. The obstacle course can include a
contrasting colored floor, narrow passages that force students to design a compact car,
sounds that require students to use sound sensor, and walls that cars need to avoid.
Lesson Objectives: To learn about programming in NXT.
Materials Needed: NXT kits.
Computers running LEGO MINDSTORMS.
Obstacle course, be creative in inventing a fun obstacle course for students to program and design their car to get through.
Preparation and Set Up: Set up an obstacle course, it can be very simple to complex depending of the level and experience of the students.
Necessary Background Vocabulary:
  1. Introduce the activity and show the students the pre-built obstacle course so that they know what their car has to do.
  2. Have students build their cars using touch and light sensors. Remind students that their car must somehow break through the rope barrier at the end of the course.
  3. When students have finished building, have them program their cars to travel through the course.
    1. The cars must start at the start line.
    2. When the cars hit the black line, their cars should turn right.
    3. When the cars hit the wall, the cars should turn left.
    4. At the finish line, the cars must break through the tape.
  4. When students have finished programming allow them to test their cars, reprogram/rebuild if necessary and retest their cars.
Reference 1 http://sites.tufts.edu/stompactivitydatabase/files/formidable/ratrace.doc

Light Symphony





Name of Activity Light Symphony
Author STOMP
Keywords light sensor, NXT, tone, ambient light, loops, math blocks, sound, inputs, outputs, Engineering Design Process
Subject NXTs
Grade Level 4, 5, 6, 7, 8, 9+
Time 1 Hour Total
Brief Description In this activity, students will wire a light sensor to their NXT bricks. Light sensor data
will be collected and used in a program that plays a tone based on the ambient light
in the room.
Lesson Objectives: - To learn to program using the light sensor, loops, math blocks, and sound.
Materials Needed: - NXT brick.
- Light sensor.
- Computers running MINDSTORMS NXT software.
Preparation and Set Up: Set up computers with MINDSTORMS NXT Software.
Arrange students into groups of two.
Distribute necessary materials.
Necessary Background Vocabulary:
engineering design process
  1. Have students wire a light sensor to their NXT brick. They may or may not want to attach the light sensor to the brick.
  2. Have students program their NXT bricks
    1. The program should collect light sensor data
    2. The program should take this data and multiply it by a number (It may be good to start with about 10, but students can use trial and error until they find a multiple that creates the music box that they want)
    3. This new number should determine the tone of the note that the NXT brick plays.
    4. Students should add a wait for time block so that their note will play for that amount of before the program loops and the brick plays a new note.
  3. To test this program either have students turn their light sensors towards and away from a light source to produce different tones, or change the light levels in the room.
  4. Students may have to modify their program and change the multiple in their math block, or change the amount of time between notes. Allow students to test and retest multiple times.
Extensions: Get students to match the pitch of another NXT brick.
Modifications: - This same activity could be done using the proximity sensor attached to a car.
- Students could program their NXT brick to play a tone depending on how close their car was to an object. This could be related to a safety device that would warn you if your car was going to bump into a wall.
Reference 1 http://sites.tufts.edu/stompactivitydatabase/files/formidable/62_image_1.jpg
Reference 2 http://sites.tufts.edu/stompactivitydatabase/files/formidable/62_image_2.png
Reference 3 http://sites.tufts.edu/stompactivitydatabase/files/formidable/light_symphony.doc

Switch to our mobile site