Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]

Slides:



Advertisements
Similar presentations
Intermediate Robotics Getting to the Next Level Guiding Question: How might I move the robot consistently, accurately, and predictably? –Review basics.
Advertisements

Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Introduction to LEGO NXT robotics and Robot Sumo
NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
LabView Basics.
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.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
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.
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.
Robotics Abstractions: Levels of language, world view
Robotics Actuators. Motors. Sensors. NXT-G logic. Lab: Measurements Homework: Task moodle assignment! Mechanics readings. Prepare summary. Postings. Next.
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.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
Coding for the FIRST Tech Challenge: RobotC
Getting Started! Lego Mindstorms Program NXT 2.0.
Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
Programming a light sensor to follow a black line.
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.
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.
A tiny turtle robot DEI The University of Padova.
Sentry System Multiple Sensors
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
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.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
LEGO® MINDSTORMS® NXT Move Block.
Oregon Robotics Tournament and Outreach Program RCX Basics.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Mindstorm NXT-G Introduction Towson University Robotics.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
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.
Forward Until Near Stop when near a wall.
Introduction to Robotics using Lego Mindstorms EV3 Shreya Reddy & Kiran Raja RoboAvatars Robotics.
LOGICFUSION’S HANDS-ON ROBOTICS EV3 LEVEL 2! Welcome to.
How Do You Make a Program Wait?
Robotics Abstractions: Levels of language, world view
NXT Mindstorms Kit Programming
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
Robotics Abstractions: Levels of language, world view
Mindstorms EV3 Programming
Programming Part 2 Mod Kit
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Music by Touch Music by Touch Presentation > TeachEngineering.org
Programming.
Module F: Presentation Understanding Robot Fundamentals
Forward Until Touch Robot goes forward until it hits a wall.
Lesson 3: Sensor Wait-for’s Programming Solutions
SENSORS.
INTERMEDIATE PROGRAMMING LESSON
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 MINDSTORMS EV3.
Oregon Robotics Tournament and Outreach Program
Downloading to the NXT requires the correct hardware setup
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.] Add bumper and program move to (gentle) stop. Homework: Postings.

Mechanics readings What did you learn?

Mindstorms terms NXT-G refers to iconic language –NXT-G programs are compiled (translated) into [what is termed] byte code and downloaded to NXT Brick, which holds –a 32-bit microprocessor (little computer) 32 bit refers to size of data handled by microprocessor – memory for programs + system routines + sound + startup/demo programs

Actuators Multiple blocks for connecting to motors –Motor vs Move differ as to what the programmer does versus built-in controls –Motor*, etc. used for other motors, sensors, etc., including hardware from older Lego products Legacy –“mini” blocks later addition Produces smaller code Some reduction in function

Note Up to you (robot builder) how the motor is attached –What port And what the motor is attached to… –Wheel –Grabber –? And direction

Move block Set synchronized movement of 1 to 3 motors (usually 2) –Forward, backward, or specified degree of turning Units can be –time (in seconds) –Rotations or degrees –Unlimited Something else, a subsequent block, puts on the brakes Set to brake or coast (if not unlimited) Move will make sure to go exactly the rotations specified by control of motor. –Contrast with the motor blocks in which you the programmer specify ramping….

Defaults Note for all blocks: default settings –Which port for motors (default B and C) –Specific ports for each sensors –Default rotation versus others –Default power –Default: brake versus coast –other

Move block: data links: can set values and/or transmit values to subsequent blocks Left motor (port) Right motor (port) Other motor (port) Direction (forward/backward) Steering Power Duration Next action

Move mini block Must use exactly 2 motors Otherwise, reportedly produces smaller programs on the NXT brick. NOTE: reports that using different blocks produces larger code –So…use just move mini, not move mini, move and motor, if possible –Worry about this only if you need to…

Motor block Specify movement of one motor Power Duration Action: constant or ramp up to set speed or ramp down to stop Specify wait for completion or go on to next block Brake or coast

Changed settings

Motor mini block Appears to be identical functionality Claimed to produce smaller code

Wait blocks Wait for something to happen In programming language: event driven or event based programming NXT-G: program will wait for the indicated condition.

Default assumption is port 1. You can change this.

Basic bumper exercise Use directions to build a bumper: a flexible piece that when it hits something, the touch sensor is pressed –coupled

Program: move until bumper hits Move block (forward, unlimited) Wait until touch block (press) Move block (stop)

Lab Change name Program right angle move/spin (left and right)

Lab Add bumper sensor –Move until bump, back up, turn slightly, move again… Need to look up Loop block –Loop fixed number of times OR –Loop forever

[Exercises] Replace move blocks with move mini blocks. Download new program (different name) With the robot connected, check size of the two programs.

Classwork/Homework Invent application involving bump/touch sensor Postings