NXT Mindstorms Kit Programming

Slides:



Advertisements
Similar presentations
EV3 Workshop Curriculum Developed by Joe DeRose, Ph.D.
Advertisements

LabView Basics.
Sensors.
Why robotics in Education? DEI The University of Padova.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Choose a Sensor.
CSE Design Lab – Milestone 2 James Hopkins Dave Festa Dennis O’Flaherty Karl Schwirz.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Robotics Day4.
EducateNXT NXT... an introduction The Kit and the Software.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
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.
LEGO Mindstorms NXT Introduction. Component NXT Brick Touch Sensor Light Sensor Ultrasonic Sensor Interactive Servo Motors MMN Lab.
Adapted for STLP Camp ‘10 STLP Robotics Camp June 3 & 4.
Program ultrasonic range sensor in autonomous mode
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.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
Introduction to the Basic Parts of LEGO’s NXT Robotics
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Obstacle Detection Introductory Presentation. Opening Activity If you were blindfolded, what senses would you use to find things in the room?
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Overview: The goal of this lesson is to transition from discussing robots in general to the specifics of NXT robot. Objectives: Students will be able.
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.
Girls’ Robotics Camp Spring Welcome! What are we learning? –Robotics –Application of Robotics –Programming –Out-of-the-box Thinking Let’s have Fun!
Photos and Sensor Instructions
LEGO® MINDSTORMS® NXT Move Block.
Minds and Computers 2.1 The RCX l Hitachi H8/3297 series processor l 3 inputs/sensors (1, 2, 3) l 3 outputs/motors (A, B, C) l 32k RAM/ 16k ROM ä 12 kB.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Enables your robot to see, recognize, avoid objects, and detect movement. It uses the same scientific principle that bats use. It measures distance in.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
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.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Introduction to LEGO Mindstorms EV3 What is in the box?
2.8 NXT Test Programs (Try Me Mode) U2C8
Exploring Computer Science Lesson 6-5
ROBOTC for VEX Online Professional Development
ROBOTC for VEX On-Site Professional Development
By Sanjay and Arvind Seshan
Introduction To Programming with LEGO NXT 0
This is the Lego NXT ->
ROBOTC for VEX Online Professional Development
Introduction To Programming with LEGO NXT 2
How Does an Ultrasonic Sensor Work?
Music by Touch Music by Touch Presentation > TeachEngineering.org
Introductory Presentation
Module F: Presentation Understanding Robot Fundamentals
Robot Programming Computer Literacy S2.
Introductory Presentation
Introductory Presentation
Exploring Computer Science Lesson 6-5
BEGINNER PROGRAMMING LESSON
Holyoke Codes LEGO ROBOTICS
BEGINNER PROGRAMMING LESSON
Computer Science Teachers Association Academy Lego Robotics
Photos and Sensor Instructions
Introductory Presentation
Coding Edbot Dream with Scratch
Compiled from various Internet sources Presented by Mr. Hatfield
Obstacle Detection.
Lego MINDSTORMS EV3.
LEGO MINDSTORMS EV3 training
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

NXT Mindstorms Kit Programming LabVIEW Lecture-3 NXT Mindstorms Kit Programming MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering

LEGO© Mindstorms Educational Kit https://www.lego.com/en-us/mindstorms/build-a-robot/spik3r https://www.lego.com/en-us/mindstorms/build-a-robot/track3r https://www.lego.com/en-us/mindstorms/build-a-robot/r3ptar

The Mindstorm NXT Kit educational In the two boxes you have: Hundreds Hardware pieces 5 Different sensors 3 motors Programmable brick to control motors and sensors Programming: Mindstorm NXT toolkit

The NXT is the brain of a MINDSTORMS® robot 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 different operations.

NXT: the brain 360 deg. unwrapped image 32-bit ARM7 microcontroller 256 Kbytes FLASH, 64 Kbytes RAM Bluetooth 4 input ports, 6-wire cable digital platform 3 output ports, 6-wire cable digital platform 100 x 64 pixel LCD graphical display Loudspeaker - 8 kHz sound quality. Power source: 6 AA rechargeable batteries 360 deg. unwrapped image

Touch sensor The Touch Sensor gives your robot a sense of touch. The Touch Sensor detects when it is being pressed by something and when it is released again. You can use the touch Sensor to make your robot pick up things: a robotic arm equipped with a Touch Sensor lets the robot know whether or not there is something in its arm to grab. You can use a Touch Sensor to make your robot act on a command.

Sound sensor The Sound Sensor makes your robot hear! The Sound Sensor can detect both decibels [dB] and adjusted decibel [dBA]. A decibel is a measurement of sound pressure. The sensitivity of the sensor is adapted to the sensitivity of the human ear. In other words, these are the sounds that your ears are able to hear. Also, the sensor can detect some sounds that are too high or too low for the human ear to hear.

Light sensor The Light Sensor is one of the two sensors that give your robot vision The Light Sensor enables your robot to distinguish between light and dark. It can read the light intensity in a room and measure the light intensity of colored surfaces. You can make a burglar alarm robot: when an intruder turns on the light in your room the robot can react to defend your property. You can make a line-following robot or a robot that can sort things by color.

Ultrasonic sensor The Ultrasonic Sensor enables your robot to see and detect objects. You can use it to make your robot avoid obstacles, sense and measure distance, and detect movement. The Ultrasonic Sensor measures distance in centimeters and in inches. It is able to measure distances from 0 to 255 centimeters with a precision of +/- 3 cm. The Ultrasonic Sensor uses the same scientific principle as bats: it measures distance by calculating the time it takes for a sound wave to hit an object and return – just like an echo.

Ultrasonic sensor

Servo Motors The three Servo Motors give your robot the ability to move. The two motors will automatically synchronize, so that your robot will move in a straight line. Each motor has a built-in Rotation Sensor. The Rotation Sensor measures motor rotations in degrees or full rotations [accuracy of +/- one degree]. The built-in Rotation Sensor in each motor also lets you set different speeds for your motors

Different Movements Point Turn Swing Turn Gradual Turn

NXT Toolkit for LabVIEW 2013 http://www.ni.com/download/labview-nxt-module-2013/4678/en/

Connecting the NXT kit Requirements: LabVIEW 2013, NXT Toolkit for LabVIEW 2013, USB cable, NXT Mindstorms Kit

Connecting the NXT kit

Direct Mode ? or Remote Mode? In Direct Mode: You must run the program from the computer to the NXT kit using USB or Bluetooth so communication is required while running. Advantage: You can receive information from NXT or send information to NXT. In Remote Mode, You can run the program directly from NXT kit without any communication from the computer. Advantage: Use NXT kit as a robot.

Direct Mode Remote Mode Change to Remote Mode Change to Direct Mode

Direct Mode Remote Mode In remote mode: * Only NXT functions can be used !

NXT Functions NXT Programming: Basic programming used in all programming NXT I/O: Sensors, motors, sound, display, data logging Behaviour: Pre-made code for controlling robot

Example 1: Hello World (Display) * To add a new program «File >> New NXT >> Targeted VI» * NXT I/O >> Complete >> Select «Display» * To get more information: Right click >> View as icon Change to Remote Mode / Direct Mode

Example 2: Collect and Display Sensor Data Read Ultrasonic Sensor and plot the measured value on PC. Connect and configure the sensor port ! Port 1? 2 ? 3 ? 4 ? * Read sensor continuosly, * Plot the measured value, Use Direct Mode !

Example 2: Collect and Display Sensor Data Sensor functions: (I/O >> Complete >> Sensors) Read Touch (Release, Bumped, Pressed, Count), Read Light (LED on, LED off), Read Sound (dB, dBA), Read Ultrasonic (cm, inch, Listen), Read/Reset Rotation Angle, Read NXT Brick Button, Read/Reset Timer

Example 3: Using Loud Speaker Sensor functions: (I/O >> Complete >> Sounds) Tone, Tone no wait, Stop sound, Is playing ? Play note (A,B,C,D,E,F,G), Play sound file

Example 4: Move robot for 5 seconds Sensor functions: (I/O >> Complete >> LEGO Motors) Motor on, Motor reverse, Motor brake (Stop suddenly), Motor coast, Steering on (?) Move robot for 5 seconds Connect and configure output ports ! Port A ? B ? C ?

Using Timing/Waits Functions Sensor functions: (I/O >> Complete >> Waits) Wait for Time (miliseconds, seconds) Wait for Darkness/Brightness/Brightness Change, Wait for Closer/Further, Wait for Pressed ( Wait until button is pressed) Wait (Button)