LEGO MINDSTORMS NXT PROGRAMMING

Slides:



Advertisements
Similar presentations
EducateNXT Enter the name “Sound Graphing” for your experiment. Real-time Data Logging Click the Switch to NXT Data Logging icon in the top-left corner.
Advertisements

Wait, sound sensor >70, Port 2 Flowchart – Heartbeat 1 Start Motor A, Move Backward, 1/3 Rotation, Power 20 Wait, 1 Second Sound Sensor (Port 2) Less than.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
An Intro to Robots and Computer Programming
EducateNXT NXT... an introduction The Kit and the Software.
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
LEGO Mindstorms NXT Introduction. Component NXT Brick Touch Sensor Light Sensor Ultrasonic Sensor Interactive Servo Motors MMN Lab.
Introduction to LEGO NXT 6 hour course. Introductions You Your Expectations.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Introduction to the Basic Parts of LEGO’s NXT Robotics
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
Robotics Light sensor. Calibration. Reverse engineering challenge. Lab work: Create and show your program. Add light sensor (different orientations). Robot.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
GIRLS Robotics Objective of today Review last Saturday’s Lesson Create our 1 st robot.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Vex Robotics Program six: combining autonomous and radio control.
Sentry System Multiple Sensors
According to the image, what is the file name? According to the image, what is the program name? Quiz Example.ev3 Falcon.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Find the Mindstorms Icon on the computer.. To start a new program click go.
LEGO® MINDSTORMS® NXT Move Block.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
1 ©2006 INSciTE Common Blocks. 2 ©2006 INSciTE Common Blocks Common blocks are full featured actions Like English statements Move Wait for an action Display.
Mindstorm NXT-G Introduction Towson University Robotics.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
ROBOTICS Jason Bell Brad Carlson
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
Forward Until Near Stop when near a wall.
Introduction to Robotics using Lego Mindstorms EV3 Shreya Reddy & Kiran Raja RoboAvatars Robotics.
How Do You Make a Program Wait?
How to design, build, and program a LEGO robot!
Introduction to LEGO Mindstorms EV3 What is in the box?
NXT Mindstorms Kit Programming
LEGO MINDSTORMS PROGRAMMING
Exploring Computer Science Lesson 6-5
Using the Lego Mindstorms Edu NXT Software
BEGINNER PROGRAMMING LESSON
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
Introduction To Programming with LEGO NXT 0
Mindstorms EV3 Programming
Introduction To Programming with LEGO NXT 2
Programming Part 2 Mod Kit
Introduction to NXT.
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Music by Touch Music by Touch Presentation > TeachEngineering.org
Sensors Training.
Module F: Presentation Understanding Robot Fundamentals
Robot Programming Computer Literacy S2.
Introductory Presentation
Exploring Computer Science Lesson 6-5
Holyoke Codes LEGO ROBOTICS
Storing Values as Variables
Lego EV3 Mindstorms SW Programming Blocks.
Using Waits, Loops and Switches
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Lego MINDSTORMS EV3.
Presentation transcript:

LEGO MINDSTORMS NXT PROGRAMMING Send questions to TA or Instructor luke-burnett@uiowa.edu Er-wei-bai@uiowa.edu

Things we will learn Components of NXT NXT Programming An example

Components of NXT NXT Brick Servo Motors (X3) Sensors Touch Light Sound sensor Ultrasonic Sensor Other sensors available, which are not included in kit are, gyroscopic, infrared tracker, accelerometer, temperature sensor etc.

NXT Programming Type program name in the box under “Start New Program” and click on “Go” If you are working on a program that is already saved, navigate to it in the box under “Open Recent Program”

NXT Programming This is the first screen Click on the middle tab to see “Complete Palette” of icons. Each of the icons have a flyout menu Complete Palette

Details on common features …… …… …… …… …… Flyout menu for the most commonly used features Starting Block Move Sound Wait Loop Switch

Drag and drop the MOVE icon to the starting block select a gate on the NXT define the power of the engine Define the distance NXT has to cover define the direction: Forward, backward or stop make the NXT turn under a well defined angle define the next action NXT has to take

Drag and drop the SOUND icon Choose sound file or a tone to play Select a sound file from the list Select volume

Drag and drop the WAIT icon Control triggering wait(sensor/time) Port to which sensor is connected Choosing sensor type

The loop icon should have all the actions inside it and a stopping criteria Port to which sensor is connected Stopping criterion for loop: could be forever, time based or sensor based Selecting the sensor

The switch icon is like if-else The switch icon is like if-else. The actions in upper part is executed if condition of switch is true otherwise the actions is lower part are executed. Port to which sensor is connected Control for switch block Choose sensor controlling switch block

What do sensors and motors do? The 3 identical servo motors are used to drive the LEGO machine. You can select power of engine duration of motion, turning angle etc. The LEGO touch sensor can sense if it is pressed or not or if it is bumped. LEGO light sensor can do precise light measurement on the scale of 0 to 100. It can measure the external light intensity and generate light.

What do sensors and motors do? The main function of LEGO sound sensor is registering sound. It can measure sound level in dB The ultrasonic sensor has a reliable range of 5 till 220 cm. The distance shown is the distance measured from the back of the sensor, as it were the rear side of the ‘eyes’ of the sensor.

We will see an example using some of the common programming features The program will execute a few functions in a loop and have a stopping criterion based on information from a sensor.

Drag the WAIT icon from the flyout menu Select TIME as control from the drop menu Input 1 second as the wait time Drag the MOVE icon to the starting block from the flyout menu shown Select the Ports, Direction, Steering, Power, duration and next action Drag another MOVE icon from the flyout menu Adjust parameters to make the turn Which way to turn How long (rotation, time or degrees) Drag the SOUND icon from the flyout menu Select the parameters to play a note for a certain time (in this case note A) Drag the LOOP icon from the flyout menu Drag all the placed icons inside the loop Select the stopping criterion for the loop (Ultrasonic sensor) Set the parameters and the port to which the sensor is connected Drag the SOUND icon from the flyout menu Select a sound file to play (GOOD BYE)

Connect the NXT brick via the USB Download the program by clicking the download button

The second example is of a multiple sensor robot using switch blocks The second example is of a multiple sensor robot using switch blocks. The video would explain each step of how the program is written in LEGO NXT . The video begins with the flowchart explaining the task to be executed by the program.