Getting Started with Robotics

2,911 views

Published on

Published in: Education, Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,911
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
65
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Getting Started with Robotics

  1. 1. A Crash Course in LEGO NXT Robotics - Getting Started
  2. 2. Why Study Robotics? <ul><li>Robotics is an excellent way to introduce the students to integrated STEM areas (science, technology, engineering, and mathematics) </li></ul><ul><li>Students participating in robotics learn about STEM careers and experience the same activities as professionals solving real-world problems </li></ul><ul><li>Everyone – girls and boys alike – should get a chance to see how much fun it is learning engineering skills this way! </li></ul>
  3. 3. The Least You Need <ul><li>One computer (ideally, a school computer lab with LEGO MINDSTORMS Education Software installed) </li></ul><ul><li>One robotics kit, LEGO MINDSTORMS Education Base Set, per 2-10 youth - I recommend you start with a small group (e.g., 4 students) – 1 kit per 2 students is perfect – you might also want several Education Resource sets (spare parts) </li></ul><ul><li>LEGO MINDSTORMS Education Software to program the robot </li></ul>
  4. 4. The Least You Need (cont’d) <ul><li>One Mindstorms NXT Base Set and one computer (ideally, a school computer lab with NXT ROBOLAB installed and one base set per two students). The kit comes with software and Robolab is an added cost that is not necessary but it does simplify the program and make it easier for younger students to use. </li></ul>
  5. 5. The Least You Need (cont’d) <ul><li>Instructional materials – </li></ul><ul><li>Robotics kits can be shared in your school, Central Queensland University in Bundaberg even offers Student Teachers to teach the Robotics Program initially and provides kits and laptops (it is hoped the school will see the benefits and budget for their own kits) – they can be used all day for different school and afterschool activities </li></ul>
  6. 6. After you’ve learned the basics, then what? <ul><li>There are lots of robotics competitions kids can participate in some are local, some statewide, some are regional. </li></ul><ul><li>The tournaments tend to include multipart, real-world problems and research and occur over specific time periods - for instance, the Bundaberg Robotics challenge asks children to design their robots for specific climates or purposes and incorporates Literacy in their task criteria. </li></ul>
  7. 7. The Problem-solving Process <ul><li>What is the robot’s task? </li></ul><ul><li>What behaviors are needed to accomplish it? </li></ul><ul><li>Create the program – debug then download. </li></ul><ul><li>Run the program. </li></ul><ul><li>Is the NXT behaving badly (doesn’t do task)? </li></ul><ul><ul><li>Check the robot first. If there’s a problem, can you fix it? </li></ul></ul><ul><ul><li>Next, check the program. Problem? Can you fix it? </li></ul></ul><ul><ul><li>Last, go back to the beginning and reread the task. Does your program really tell the robot what it’s supposed to do? </li></ul></ul>
  8. 8. Challenge 1: Line Program <ul><li>Create and test a program to make the robot go forward in a straight line for exactly 1 second </li></ul><ul><li>Save your program as your first name and Line (e.g., File  Save as </li></ul><ul><li>Maria Line  Enter) </li></ul>
  9. 9. Challenge 2: Square Program <ul><li>Create and test a program to make the robot go in a square </li></ul><ul><li>Save your program as your first name and Square </li></ul>
  10. 10. Challenge 3: Light Dark Program <ul><li>Create and test a program to make the robot: </li></ul><ul><li>Go forward until it finds a dark line </li></ul><ul><li>Stop for 1 second </li></ul><ul><li>Go forward until it finds light </li></ul><ul><li>Stop for 1 second </li></ul><ul><li>Reverse for 4 seconds </li></ul><ul><li>Save your program as your first name and Light Dark </li></ul>
  11. 11. Challenge 4: Tracker Program <ul><li>Create a program to make the robot: </li></ul><ul><li>Go forward until it finds a dark line </li></ul><ul><li>Move forward along the edge of the line </li></ul><ul><li>Save your program as your first name and Tracker </li></ul><ul><li>Hints : You need a loop, and it’s easier if the robot starts at less than a 90  angle </li></ul>
  12. 12. Challenge 5 – Bump Program <ul><li>Create a program to make the robot: </li></ul><ul><li>Go forward until it finds a wall </li></ul><ul><li>Turn moving backward for 2 seconds </li></ul><ul><li>Repeat these behaviors for 5 “wall bumps” </li></ul><ul><li>Save your program as your first name and Bump </li></ul><ul><li>Hint : You’ll need to use wait until Touch in for the first step. </li></ul>
  13. 13. Bonus Beep Challenge <ul><li>Create a program to make the robot: </li></ul><ul><li>Go forward until it finds a line </li></ul><ul><li>Stop for 1 second and beep </li></ul><ul><li>Repeat for 5 lines </li></ul><ul><li>For fun, end with a different sound </li></ul><ul><li>Save your program as your first name and Beep </li></ul>
  14. 14. ROBOLAB Video Trainer <ul><li>ROBOLAB Video Trainer CD has lots of video sequences showing you how to program ROBOLAB and how the robot responds to the program </li></ul><ul><li>LEGO Mindstorms Education Base Set and ROBOLAB and ROBOLAB Video Trainer software are available from LEGO education ( www.legoeducation.com under LEGO Mindstorms) </li></ul><ul><li>LEGO MINDSTORMS Education software has a built-in reference tool – Robot Educator, that walks you through simple challenges </li></ul><ul><li>Additional software can be found at the Robotics Academy ( http://www-education.rec.ri.cmu.edu/ ) </li></ul>
  15. 15. Robotics Web Sites <ul><li>NASA Robotics Alliance Project http://robotics.nasa.gov/home.php </li></ul><ul><li>NASA Robotics Curriculum Clearinghouse http://robotics.nasa.gov/rcc/ </li></ul><ul><li>Mars Exploration Rover Mission http://marsrovers.jpl.nasa.gov/home/index.html </li></ul><ul><li>Robotics Academy </li></ul><ul><li>http://www-education.rec.ri.cmu.edu/ </li></ul><ul><li>FIRST LEGO League http://www.firstlegoleague.org </li></ul><ul><li>Botball http://www.botball.org/ </li></ul><ul><li>BEST Robotics http://www.bestinc.org/MVC/ </li></ul>
  16. 16. Sample ROBOLAB Programs
  17. 17. Sample NXT Programs Challenge 2 – Square with a sound Challenge 1 – Forward for 1 second Challenge 3 – Detecting Light/Dark
  18. 18. NXT Programming Details Select a motor icon (you’ll see a blue border around it) to open its control panel - displayed at the bottom of the screen Additional control panels for sensors and wait for icons have similar displays
  19. 19. <ul><li>Due to the limited amount of memory available for the NXT, all currently installed sound files should be deleted </li></ul><ul><li>Sound files take up a lot of space and should be used selectively </li></ul><ul><li>Use the same sound file repeatedly in stored programs to cut down on memory usage </li></ul>NXT Programming Details (cont’d)
  20. 20. Hands-on: Your Turn! <ul><li>Use LEGO MINDSTORMS Educator to program the NXT robot to move in a square </li></ul><ul><li>Think about the robot’s required behaviors to move in a square </li></ul><ul><li>What motors have to do what for each behavior? </li></ul><ul><li>Which behaviors repeat? You can loop them! </li></ul>
  21. 21. ROBOLAB Basics (if you do decide to use it) <ul><li>Go to RCX settings in Administrator to unlock programs 1 and 2. </li></ul><ul><li>Single-click the silver Programmer button </li></ul><ul><li>Double-click the Inventor 4 button. </li></ul><ul><li>Maximize the lower Block Diagram window. </li></ul><ul><li>Drag the Function bar to move the Functions palette to the lower right of the window. </li></ul><ul><li>If the Block Diagram window is accidentally closed, open it by hitting Window -> Show Block Diagram. </li></ul><ul><li>Hit Tab key to switch from hand to cursor tool. </li></ul>
  22. 22. ROBOLAB Basics (cont’d) <ul><li>Hit spacebar to toggle between cursor and wiring tool. </li></ul><ul><li>Hit Esc to escape sticky wires. </li></ul><ul><li>Click on a wire or icon and hit Del to remove it. </li></ul><ul><li>Drag an icon within a cm of another, then with the mouse still down, tap the spacebar to shoot a wire between the icons. </li></ul><ul><li>Ctrl + B removes broken or partially deleted wires. </li></ul><ul><li>Right-click an icon to replace it with another using a new popup Functions Palette. </li></ul>
  23. 23. ROBOLAB Basics (cont’d) <ul><li>Always break a wire instead of placing a new icon on top of the wire; otherwise, the icon looks wired when it isn’t. </li></ul><ul><li>Click on Help-Show context help, then on the icon itself in the block diagram to learn more about a ROBOLAB icon, including seeing what modifiers each icon requires and where to attach them and to see the icon in a sample program. </li></ul><ul><li>If the white download arrow under Edit is broken, click on the broken arrow for information about where the program is miswired. </li></ul>

×