Docsity

LEGO Mindstorms NXT: A Beginner's Guide to Robotics Projects, Slides of Robotics

Partial preview of the text

Download LEGO Mindstorms NXT: A Beginner's Guide to Robotics Projects and more Slides Robotics in PDF only on Docsity!

LEGO Mindstorms NXT

SOURCES:

Introductory programming

robotics projects

  • Developed for a zero-prerequisite course
  • Most students are not ECE or CS majors
  • 4 hours per week
    • 2 meeting times
    • 2 hours each
  • Students build robot outside class

Teaching Ideas

  • Teach mini-lessons as necessary
  • Gears- Power vs. Speed
  • Transmission of energy/motion
  • Using fasteners
  • Worm Gears
  • Building with bricks vs. building machines

These spin:

These don’t:

Project 1: Motors and Sensors

(1)

  • Introduce motors
    • Drive with both motors forward for a fixed time
    • Drive with one motor to turn
    • Drive with opposing motors to spin
  • Introduce subroutines
    • Low-level motor commands get tiresome
  • Simple tasks
    • Program a path (using time delays) to drive through the doorway

First Project (3)

  • Combine infinite loops with conditionals
  • Enables programming of alternating behaviors
    • Front touch sensor hit => go backward
    • Back touch sensor hit => go forward
  • Braitenberg vehicles and state-machine based robots

Project 2: Mobile robot and

rotation sensors (1)

  • Physics of rotational motion
  • Introduction of the rotation sensors
    • Built into the motors
  • Balance wheel power
    • If left counts < right counts
      • Increase left wheel power
  • Race through obstacle course

Project 3

Line

Following

Line Following

  1. Use light sensors to follow a line in the least time
  2. Design and programming challenge
  3. Uses looping or repeating programs
  4. Robots appear to be ‘thinking’

Different control algorithms for different lines

(large and thin line)

Different control algorithms for 1 and 3

sensors…

The used techniques and knowledge (2)

Initial calibration and adaptation are used in the „changing environment” :

  • Changes in the light intensity of the line (room lamps, robot shade, …)
  • Battery’s charge…

„Learning” techniques can be used to determine :

  • How fast the robot can go (acceleration on long straight lines)
  • How sharply the robot should turn
  • How to avoid endless repetitions

Educational benefits

of the „line following” project

Students confronted, used and learned :

  • Real time constraints
  • Robust, fault tolerant control algorithms
  • Error „recovery” techniques
  • Robot’s learning and adaptation to the

changing environment

Project 4: Drawing robot

  • Pen-drawer
    • First project with an effector
    • Builds upon lessons from previous projects
  • Limitations of rotation sensors
    • Slippage problematic
    • Most helpful with a limit switch
  • Shapes (Square, Circle)
  • Word (“LEGO

Pen-Drawer Robot