NXT-G Programming Assistance

 

 

Example Programs

    A lot of these resources started out as postings to the Cougar LEGO Robotics team website, www.cougarrobot.com as well as other sites such as www.nxtprograms.com.
    Please see below for the following programming samples.  These can be considered intermediate examples, over and above the basic "one-line" NXT programs.
     
    SelectionFile type iconFile nameDescriptionSizeRevisionTimeUser
    ċ

    Download
    Use two light sensors to get your robot to square up with a dark line running perpendicular to the robot's direction of travel. This example can be easily modified to use 2 touch sensors to line the robot up squarely with a physical object such as the vertical playing field table wall. THIS PROGRAM also contains several neat tips and tricks such as 1-count loops, My Blocks, and program branching. Highly recommended.   1049k v. 7 Oct 22, 2010, 12:50 PM Travis Hoffman
    ċ

    Download
      1130k v. 1 Oct 22, 2010, 12:49 PM Travis Hoffman
    ċ

    Download
      2691k v. 1 Oct 22, 2010, 12:49 PM Travis Hoffman
    ċ

    Download
    Very basic line following program using a single light sensor.  537k v. 2 Oct 22, 2010, 12:50 PM Travis Hoffman
    Comments