1. Third-party sensors: Code examples

    Third-party sensors: Code examples

    Here is a collection of code examples for third party sensors. Codatex Download Codatex code examples (ZIP) including: RFID read NXT-G – This code will use the Codatex RFID sensor to find the correct RFID tag. Once the RFID sensor finds the correct tag, it will make a sound and the...

    Read more...

  2. Drive in a square

    Drive in a square

    The goal of this activity is to make a robot car drive in a square path. Hint: Rotation sensors are great for controlling the angle of a car’s turn. Resources Square lesson plan – NXT-G (PDF) Square lesson plan – RCX + ROBOLAB (PDF)

    Read more...

  3. Sample music: NXT-G

    Sample music: NXT-G

    Here is a collection of programs written in NXT-G that play a range of well known and some maybe not so well known tunes. Sample music NOTE: All files are zipped *.rbt files. See below for instructions. Bingo Buffalo Soldier Call On Me Hot Cross Buns Mary Had a Little...

    Read more...

  4. NXT building tips

    NXT building tips

    NXT Building Tips is a brief PDF guide to tips and tricks for building with the LEGO NXT, including: Basic LEGO brick stacking Using pegs to connect beams Connecting beams using axles and bushings Constructing sturdy shapes Attaching a wheel to a motor so that the motor turns Attaching motors...

    Read more...

  5. Tunnel vision

    Tunnel vision

    Design and construct a car and program it to drive through a tunnel, automatically turn on its headlights when it enters the tunnel, and turning them off when it gets to the other side.       Tip: What kind of sensor would be suitable for detecting when the robot...

    Read more...

  6. Light sensor scavenger hunt

    Light sensor scavenger hunt

    How can you determine the light conditions in different parts of a room? Can you find light sensor readings in the range of 0-30? 60-90? 90-100? Can you draw conclusions and make generalizations about light intensity in the room?         

    Read more...

  7. Random motion

    Random motion

    The code will run Motor A in a random direction (via a Random-Comparison Block combination), at a random speed, for a random amount of time. The motor speeds will fall between 0-100 and the time will fall between 0-3 seconds. Resources Random Motion.rbt (ZIP)

    Read more...

  8. RCX quick guide

    RCX quick guide

    Building a sturdy structure The keys to building a sturdy structure are as follows: 1. Use interconnecting bricks. When you interconnect your bricks, the structure will not fall apart when you move it. 2.  Flick Test: Test the durability of your structure with a simple flick of your finger. If...

    Read more...