Limited Time Offer: Get 2 Months of ABCmouse.com for only $5!

Lego NXT Robots

Lego MT Robot                     Mindstorms Golf Programming Notes:

Tasks

Avoid hitting red ball with colour sensing back-up and turn command.          

Hit Blue ball with colour sensor and motor command.

Procedure:

  1. Open Mindstorms NXT program, orange icon.
  2. View short tutorial in both areas.
  3. Open new file and name it.
  4. Select complete palette.
  5. Start program with move command; it is the top menu bar, use motors A and B at a .1 duration, moving forward.
  6. Use a Loop command (loops till true) with the Sonar sensor as control in input 4 at 23cm, brake as next step.
  7. Add a switch (true or false decision) with a light sensor control to determine the next action.
  8. Next step is to check for colour with Ultraviolet sensor, use light enabled, calibrate to colour and set decision to accommodate the ball colours. Remember to take the ambient light into consideration.
  9. Turn command is in move, right or left, with duration of motor.
  10. You can drag a whole process into a loop or a switch.
  11. After completed attach robot and use download (not download and run) command to program into your robot.
  12. You can use file command to manage programs on robot.
  13. Select file you downloaded on robot and press run.
  14. Check operation and reprogram and download to overwrite.

 

Get 2 Months for $5!