1 / 10

NXT Programming

NXT Programming. BSS 2011 Sustainable Engineering: Learning to Engineer Truly Green Products. Agenda. Introduction to Mindstorms Sensors Learning the Basics Programming Examples Programming Problems/Solutions Your Own Elaboration Homework. Introduction. Mindstorms Software

orrick
Download Presentation

NXT Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NXT Programming BSS 2011 Sustainable Engineering: Learning to Engineer Truly Green Products

  2. Agenda • Introduction to Mindstorms • Sensors • Learning the Basics • Programming Examples • Programming Problems/Solutions • Your Own Elaboration • Homework

  3. Introduction • Mindstorms Software • Graphical programming interface for beginners • Used in many national technology programs (i.e. FLL, RoboCup Junior, etc.) • Issue of Labview • REX files = 1 program

  4. Sensors • Touch Sensor • reacts to touch and release, enabling your robotic creation to feel • Light Sensor • helps your robot see • Sound Sensor •  allows your robot to hear • Ultrasonic Sensor • helps your robot judge distances and see where objects are

  5. Learning the Basics • Infinite number of resources! • My favorite- • http://www.ortop.org/NXT_Tutorial/html/essentials.html • Move Block • Loops • Wait Block • Light Sensor • Ultrasonic Sensor • Switches

  6. Problem Uno • Create and test a program to make the robot move in a square pattern. Each side of the square should be about 1 foot. The robot should end up back at where it started, and emit a happy little sound when it finishes

  7. Solution • Loop • Move Block • Move forward, stop. • Move Block • Move forward, turning all the way right, stop • Forever turning- how do I make it stop?

  8. Problem Two • Use the program from problem one, but now you are going to start your robot facing a wall. Which sensors will/can you use to overcome the wall obstacle? Show me.

  9. Solution • Loop • Move Block • Move forward, stop. • Wait Touch Block • Pressed • Move Block • Move backward, stop • Move Block • Move forward, turning all the way right, stop

  10. Homework! • Which sensor is the most sustainable (remember to include time and efficiency in your assessments, and explain, research may be needed)? • What situation would your robot need every single sensor for? Be creative. • Write out a code for your robot to dance (work with another group and ballroom dance? Square dance? Breakdance? Or, is your robot a ballerina?)

More Related