Can Do II
0:31
Added: 4 years ago
From: DrZeus420
Views: 68
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (7)

Sign In or Sign Up now to post a comment!
  • omg can you please show me the program you used to do this. i keep getting frustrated on how to do this. the only difference is mine has a claw that only picks up the can when it hits the touch sensor. help with that as well would be much appreciated

  • @Headloose777

    Program Description: Simple program is intended to go forward until the light sensor is activated then stop and back up while turning.

    1. Click on the LEGO Mindstorm icon tab to create new program.

    2. In the block below “Start New Program” type your initials _ (underscore) then light; [example]: ja_light. Then click “Go >>”.

  • 3. Click the Move block with the two gears and drag it to the Start area of the program window. Click again to place the Move block. This action should select the Move icon and place it at the beginning of your program.

    4. In your program you need to change the property of the Move block. To do this, click the Move block to select it. At the bottom of the program window observe the Configuration Panel associated with the Move block. Observe Move Properties such as “Duration”:

  • 5. Change the Duration: property from, “Rotations” to “Unlimited,”

    6. Next, click on the Hour Glass icon and move your mouse to the right and click the Light icon and drag it to the second position in your program. Click the Light block to place it to the right of the Move block.

  • 7. On the Mindstorm NXT window click on the Light Sensor and note the properties on the Configuration Panel at the bottom of the window. We want the robot to go forward until the Light Sensor detects a black line and the reflected light value below the Trigger Point.

    8. Change the Light: symbol form > (greater-than) to < (less-than). Now the sensor will tell the program to proceed when the senor moves over a black line causing the light value to fall less than the trigger point.

  • 9. Add a second Move block after the Wait block, and change the Direction: Property to STOP

    10. Add a third Move block to back up the robot away from the black line

    11. Set the Duration: for 1 Rotations and

    12. Set the Direction to down (reverse) and turn to either the right or left

    13. Set the Next Action property to Brake

  • Your NXT Program should now does the Following

    • Move forward until it reaches a black line

    • Stop, and

    • Back up for one wheel rotations, and

    • Break to a stop

    * Note the Steering Property: Makes sure you have selected the third Move block in your program. With your mouse, drag the Steering slider to the left or right. This should cause your robot to back up and turn at the same time.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more