Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.

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

Dublin Robotics Boosters NXT-Step Programming Workshop.
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.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Choose a Sensor.
Bluetooth Remote Control
Introduction to Sensors
Created by Chris Bracken
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.
Stem fair project Can LEGO MINDSTORM robots detect and react to objects within a certain range?
BEGINNER EV3 PROGRAMMING Lesson
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.
Robotics Catchup/Review: switch, arithmetic, range, loop Bluetooth Lab: Finish parallel parking. Next: Use Bluetooth communication for calculate & send.
Robotics Abstractions: Levels of language, world view
Robotics Follow up on problems/tasks Add ultrasonic sensor Homework: Maze. Catch up on any exercises. Postings.
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.
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
Application of Math and Science Principles Creating a robot that moves a specified distance straight ahead and Creating a robot that turns a specified.
ADVANCED EV3 PROGRAMMING LESSON
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*.]
Today’s Agenda 1.Scribbler Program Assignment 1.Project idea due next class 2.Program demonstration due Wednesday, June 3 2.Attendance & lab pair groupings.
Robotics Light sensor. Calibration. Reverse engineering challenge. Lab work: Create and show your program. Add light sensor (different orientations). Robot.
Application of Data Programming Blocks. Objectives  Understand the use of data programming blocks and their applications  Understand the basic logic.
Wall Encounter By Made easy by Dwayne Abuel.
Blue Tooth Communication ROBOTICS – ll MODULE 4. Set up a Bluetooth connection between two NXTs. Send/receive messages wirelessly using send/receive message.
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.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Vex Robotics Program four: reversing and turning.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Programming with LabVIEW Intro to programming and.
ROBOTC Software EV3 Robot Workshop
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.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Robotics Abstractions: Levels of language, world view
LEGO Robotics Workshop
Introduction to Programming in RobotC
By Sanjay and Arvind Seshan
Robotics Abstractions: Levels of language, world view
Introduction To Programming with LEGO NXT 0
Introduction To Programming with LEGO NXT 2
Touch Sensor.
Bluetooth example Presentations Lab: building projects
Sensors Training.
By Sanjay and Arvind Seshan
Lab: (Finish parking). Bluetooth applications
Displaying sensor values while a robot is running
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
Controlling your quadcopter
Storing Values as Variables
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
SENSORS.
Lego EV3 Mindstorms SW Programming Blocks.
Oregon Robotics Tournament and Outreach Program
Lab: Parking Preparation for Bluetooth.
Controlling your quadcopter
Presentation transcript:

Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room

Variable Store value under a name and then re-use NXT-G –Need to set up variable: name and data type Logic (true or false) Number Text –Then can read or write –Use as input to data link –Use as input to calculation Demonstrate

Button test Use variable to hold which NXT button was pressed. Use Edit/Define Variables –Need to give name (give meaningful name) –Need to specify datatype (number, text, logic)

Warnings If the task is to determine left or right button, you can’t wait for one button. Instead, loop checking first one then the other button. Set variable (or use data wires and an OR operation) to exit the loop. Probably need to insert pause(s).

How to check? Use display screen –Text –Specify text –NEED TO INSERT PAUSE SO I CAN SEE IT!

Lab assignment Do basic ball hitting exercise –Hit only red ball and only blue ball. Enhance hitting ball exercise –Use buttons to indicate which ball is to be hit –Use variable –NOTE: you probably can do this just with data wires, but do it with a variable Why?

File Set of values Can be re-used by program or uploaded to computer NXT-G –Delete (might do this initially to make sure there isn’t old file by the same name) –Write (actually append to end) –Close (need to do this before reading) –Read Demonstrate

First part: records light readings

Second part: write out file

…and you can upload file: Other under Memory

Rotation sensor Connect to particular motor. Reset to zero. Can measure in rotations or degrees.

Mapping Now have tools to record how far robot has moved –Rotation sensor: how many degrees a particular motor has turned –Variables and files to store data Need a plan/strategy to 'map room' –Determine position of walls –Note: you know how to move until bump or move until ultrasonic indicates under a set amount.

Challenges Robot to store (for later use) where it found walls (or something else) –Use rotation sensor to determine distance traveled (will need to calibrate in terms of power) –Create file –Upload file LATER: Robot to send information to second robot using Bluetooth.

Lab/Homework Use ultrasound than light to hit the red ball. Change to hit the blue ball Use display, pause, buttons to specify which ball to hit. Start planning room mapping task. Postings