Displaying sensor values while a robot is running

Slides:



Advertisements
Similar presentations
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
Advertisements

Dublin Robotics Boosters NXT-Step Programming Workshop.
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.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Tree Surveying Existing Design.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Remote Communication.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Automated Mining Project.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System One-Way Communication.
EducateNXT NXT... an introduction The Kit and the Software.
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
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.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Tree Measurer Project.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
Introduction to the Basic Parts of LEGO’s NXT Robotics
ROBOTICS MY BLOCKS. OBJECTIVES Create, edit and configure a my block Insert a my block inside a program and test its functionality.
ADVANCED EV3 PROGRAMMING LESSON
More switches, Comparison Day 7 Computer Programming through Robotics CPST 410 Summer 2009.
Application of Data Programming Blocks. Objectives  Understand the use of data programming blocks and their applications  Understand the basic logic.
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
Real-Time Data through Data Hubs. Begin by adding a basic Move block, 5 rotations 75% power.
Introduction to Data & Advanced Programming Blocks ROBOTICS II Module 1 Done by: Eng Nooran Drak.
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.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON DATA WIRES.
Aim: How can we create a paragraph of type?. Designing a Paragraph of Type O All of the text we have written on the label so far has been a few discrete.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Module 3: Dealing with Files Robotics – ll. Objectives Understand the file access block and its configuration Create and use files inside NXT programs.
Photoshop Actions Lights, Camera, Actions in Photoshop.
Data Hubs and Wires. Begin by adding a basic Move block, 5 rotations 75% power.
Mindstorm NXT-G Introduction Towson University Robotics.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
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.
1 ©2006 INSciTE Lab Three Task: Move forward for 2 feet, turn right 90º repeat to complete a square path. End up exactly where you started.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
UNITS OF MEASUREMENT 2.01 Understand Digital Raster Graphics.
Introduction to Programming in RobotC
A variable is a name for a value stored in memory.
Using the Lego Mindstorms Edu NXT Software
BEGINNER PROGRAMMING LESSON
Computer Programming I
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Introduction To Programming with LEGO NXT 2
BEGINNER PROGRAMMING LESSON
Beginner programming Lesson
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Sensors Training.
By Sanjay and Arvind Seshan
Module F: Presentation Understanding Robot Fundamentals
Sensors and Logic Switches
INTERMEDIATE PROGRAMMING LESSON
Loops with Multiple Sensor Controls
INTERMEDIATE PROGRAMMING LESSON
More Loops.
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Storing Values as Variables
By Sanjay and Arvind Seshan
Repeating Behaviors.
INTERMEDIATE PROGRAMMING LESSON
Introduction Digital Mood Ring with TI-84 Plus CE and TI-Innovator™ Hub student STEM project Bring science and coding together (no coding experience.
BEGINNER EV3 PROGRAMMING Lesson
Lego MINDSTORMS EV3.
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Getting started with LEGO EV3 Mindstorms software
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Displaying sensor values while a robot is running

To view sensor data from a robot you can use the View Mode on the NXT or plug the robot in and use the programming software tools.

Steps to Monitoring Sensor Values as the Robot is Running. First you need a Senor Block that will read the sensor value. Followed by a Display Block that will show the value from the senor on the screen of the NXT

Begin with an Ultrasonic Senor Block. Place the yellow Ultrasonic Senor Block on the beam. The plug needed is already showing.

Place a Display Block after the Ultrasonic Block. Click on the lower left corner to open the Data Hub.

Change the Display setting from Image to Text. The text will be over written with the sensor value. For now type the word sensor value in the text box.

Wire the Distance plug on the Ultrasonic Sensor to the Text plug on the Display Block Note the black and white wire. Download the program to the NXT.

The NXT recognizes three different kinds of values: Numbers Whole numbers positive or negative (Integers) Text A collection of letters strung together to make words or sentences Logic Values True or False

The error occurs because the Display Block is set to display text. The Ultrasonic Sensor is sending out a Number Value to the Display Block. Numbers and Text are two different types of values to the NXT. Display Blocks do not have the number Display option so a number must be converted to text.

Use the Red Advanced Palette and select the Number to Text Block. Place it between the Ultrasonic Sensor and the Display Block.

Number to Text Block Details This block converts a number to a series of characters recognized by the NXT as Text. This conversion allows you to display a Number as Text however, the NXT no longer understands it as a number so trying to do any type of mathematical functions like adding or subtracting will not work.

Delete the bad wire between the Distance Plug and the Display Plug by clicking on it and pressing delete. Wire the Ultrasonic Distance Output Plug to the Number Input Plug on the Conversion Block. The Text Output Plug on the Conversion Block goes to the Text Input Plug on the Display Block.

To update continuously in real time a loop is required. Be careful not to break any wires when selecting and dragging the program inside the loop.

The Ultrasonic sensor values should be displayed on the NXT screen. Download and run the program.