Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.

Slides:



Advertisements
Similar presentations
Unit 4 - I Said Stop!. Introduction New Topics Timing Parallelism Sequence of Operations New Features NXT terminals New Functions Wait For.
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.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Automated Mining Project.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Guard Robot Project.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
Week 10 Recap CSE 115 Spring For-each loop When we have a collection and want to do something to all elements of that collection we use the for-each.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming Logical and Relational Expressions Nested if statements.
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.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
Introduction to LEGO NXT 6 hour course. Introductions You Your Expectations.
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.
More switches, Comparison Day 7 Computer Programming through Robotics CPST 410 Summer 2009.
Programming a light sensor to follow a black line.
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.
Application of Data Programming Blocks. Objectives  Understand the use of data programming blocks and their applications  Understand the basic logic.
Introduction to Computer Science – Chapter 4 CSc 2010 Spring 2011 Marco Valero.
Fractions Improper Fraction. A Fraction (such as 3 / 8 ) has two numbers: Fractions Numerator Denominator The top number is the Numerator, it is the number.
1. True or False: All these pieces are connector pegs. A. True B. False.
ENGR 101: Robotics Lecture 4 – Making Decisions Outline  The Stall Sensor  Making Decisions  Random Number Generation References 
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
Repetition Control Structure. Introduction Many applications require certain operations to be carried out more than once. Such situations require repetition.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON DATA WIRES.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Bonus EV3 Programming Lessons By Droids Robotics PixyCam for MINDSTORMS Color Identifinder.
Mindstorm NXT-G Introduction Towson University Robotics.
Programming Language C++ Lecture 3. Control Structures  C++ provides control structures that serve to specify what has to be done to perform our program.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
Learning Javascript From Mr Saem
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.
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Sensor Information: while loops and Boolean Logic.
7 - Programming 7J, K, L, M, N, O – Handling Data.
Lego NXT based Robotics at Afton Elementary School
Ball Roller Coaster It will keep two balls busy rolling down the track over and over again.  The ULTRASONIC sensor tells the NXT when to use the lift motor.
Robotics Programming Using Shaft Encoders
Introduction To Programming with LEGO NXT 0
This is the Lego NXT ->
Introduction To Programming with LEGO NXT 2
Microsoft Visual Basic 2005 BASICS
Lab 2 : Structures Muhammad Zaigham Abbas Shah DIGITAL INSTRUMENTATION SYSTEMS.
Chapter 5 Structures.
Introduction To Robot Decision Making
Introduction to NXT.
Sensors Training.
Module F: Presentation Understanding Robot Fundamentals
Displaying sensor values while a robot is running
Computers & Programming Languages
Sensors and Logic Switches
INTERMEDIATE PROGRAMMING LESSON
Loops with Multiple Sensor Controls
INTERMEDIATE PROGRAMMING LESSON
Holyoke Codes LEGO ROBOTICS
LabVIEW.
Selection Statements.
Introduction To Robot Decision Making
Robotics Programming Using Shaft Encoders
Robotics Programming Using Shaft Encoders
Obstacle Detection.
Millennium High School Agenda Calendar
Lego MINDSTORMS EV3.
Presentation transcript:

Unit 5 – “Watch Out!”

Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor

Case Structures Can be placed the same way as a while loop Selector Label contains the list of all cases Default is true and false Case Selector changes what case we are in Case selector must be connected Can write different code in each case

Ultrasonic Sensor Allows you to use the ultrasonic sensor on the robot Outputs the distance between the robot and an object Value between 0 – 255 Must specify which port the sensor is connected on the NXT Brick

Less? Compares numeric function Checks to see if the top value is less then the bottom value Outputs a Boolean value True if it is less False if it is greater (or equal to)