Sensors.

Slides:



Advertisements
Similar presentations
LabView Basics.
Advertisements

BEGINNER EV3 PROGRAMMING Lesson
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Robotics Day4.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
Session 2  The Touch Sensor  The Colour Sensor.
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.
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.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Robot Construction & Programming Basics
Program ultrasonic range sensor in autonomous mode
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
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.
Introduction to the Basic Parts of LEGO’s NXT Robotics
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
Introducing Cubelets What do they do?
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Robot sensors MVRT 2010 – 2011 season. Analog versus Digital Analog Goes from 0 to 254 Numerous values Similar to making waves because there are not sudden.
Sentry System Multiple Sensors
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Enables your robot to see, recognize, avoid objects, and detect movement. It uses the same scientific principle that bats use. It measures distance in.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
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?
USING SWITCHES TO PROGRAM A CANDY SORTER DESIGNED FOR USE WITH LMS EV3 PROGRAMMING AND BUILDING ENVIRONMENT.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
EV3 Attachments and Sensors. Ultrasonic Sensor  Purpose: detect distance from an object.  What it does: Generates sound waves and reads their echoes.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Introduction to LEGO Mindstorms EV3 What is in the box?
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
NXT Mindstorms Kit Programming
By Sanjay and Arvind Seshan
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
Exploring Computer Science Lesson 6-5
Line-Follower Challenge
ROBOTC for VEX Online Professional Development
ROBOTC for VEX On-Site Professional Development
Follow The Guidelines.
Introduction To Programming with LEGO NXT 0
Touch Sensor.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Using Switches to Program A candy Sorter
BEGINNER PROGRAMMING LESSON
Sensors Training.
Motors and Sensors Large Motor
Exploring Computer Science Lesson 6-5
BEGINNER PROGRAMMING LESSON
Forward Until Touch Robot goes forward until it hits a wall.
Holyoke Codes LEGO ROBOTICS
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
BEGINNER PROGRAMMING LESSON
Using Switches to Program A candy Sorter
BEGINNER PROGRAMMING LESSON
Compiled from various Internet sources Presented by Mr. Hatfield
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Lego MINDSTORMS EV3.
BEGINNER PROGRAMMING LESSON
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Sensors

What is a Flowchart? Flow charts are diagrams that show a particular process from beginning to end. They are used by programmers to help build logical paths for robots/computers to follow, and also by businesses to help solve problems and improve efficiency. Flow charts can be used to provide a visual aid when describing any type of process.

Problem Solving Flowchart You fool! You poor fool!

Imagine flowcharting your day… According to studies, the average human makes about 612 decisions a day. This equals to 4,900 decisions in a week and 254,800 in a year.

Rounded Box This is used to represent an event which occurs automatically. Such an event will trigger a subsequent action, for example `receive telephone call’, or describe a new state of affairs. There must be a START and an END box. All flow paths should be between these. Start has 1 output and no inputs. End box has no outputs and 1 input. START Alarm goes off END

Diamond Used to represent a decision point in the process. Typically, the statement in the symbol will require a `yes’ or `no’ response and branch to different parts of the flowchart accordingly. Hit the Snooze button? Yes No START Alarm goes off END

Rectangle This is used to represent an event which is controlled within the process. Typically this will be a step or action which is taken. Go back to sleep Yes START Alarm goes off No END Hit the Snooze button? Get out of bed

Linear Flowchart START Get a Pot Put it on the stove Fill it most of the way with water Put it on the stove When boiling, add pasta Wait for the water to boil Turn on the burner Cook for 11 minutes, stirring occasionally Strain pasta from water. Put pasta on a plate. Get a Strainer ENJOY YOUR PASTA. END

Non-Linear Flowchart START Get a Pot Put it on the stove Fill it most of the way with water Put it on the stove Is the water boiling? Add pasta NO YES Wait for the water to boil Turn on the burner Cook for 11 minutes, stirring occasionally Strain pasta from water. Put pasta on a plate. Get a Strainer ENJOY YOUR PASTA Why did you make pasta then? THROW OUT THE PASTA AND ORDER A PIZZA Do you like pasta? NO YES

Flowchart Basics END INPUT SEQUENTIAL OUTPUT START DECISION YES NO

Brick Parts -Sides OUTPUT PORTS (Motors) Computer Connection B & C - Large Motors D - Small Motor INPUT PORTS (Sensors) 1 2 3 4 PC D C B A SPEAKER USB PORT SD CARD SLOT The best use of sensors is with the Switch Flow Control block

SWITCH Switches are used, primarily with sensors, to help a robot interact with its environment and make decisions. When the appropriate conditions are met, the robot will run the program in the CHECK box. If the appropriate conditions are not met, the robot will run the program in the X box. If, then statements… If the color sensor reads a blue color, then it will say “Blue”. If the color sensor does not read a blue color, then it will say “LEGO”.

LOOP Loops are used to repeat certain commands a definite or infinite amount of time depending on the setting. This can help save time and space in the program. In the program below, the robot will drive forward for 3 seconds at 50% power, then turn right at 30% power for 1 rotation. This will repeat for 4 times.

Sensors Sensors are used by robots to interact with its environment The best use of sensors is with the Switch Flow Control block Color / Light Sensor Gyroscopic Sensor Touch Sensor Ultrasonic Sensor

Sensors Color / Light Sensor Gyroscopic Touch Ultrasonic

Touch Sensor When the Touch Sensor is activated, it closes an electrical circuit which allows current to flow. If the sensor is released the circuit is broken and no current flows. The flow or lack of current is detected by the brick allowing it to know whether the sensor is pressed or not. The sensor has three modes: pressed and held pressed and released released

ULTRASONIC SENSOR PORT VIEW Sends an ultrasonic (rapid sound) signal out and receives back their echoes to help the robot determine the distance of objects. Can measure distance in centimeters or inches. Features Distances measured up to 250 cm (~100-inch) Accuracy of +/- 1 cm (+/- 0.4-inch) Has the ability to recognize other ultrasonic sound (other robots)

ULTRASONIC SENSOR OBJECT EV3

(Time Wave is Emitted) x (Speed of Sound) ULTRASONIC SENSOR PORT VIEW The Ultrasonic Sensor uses the speed that sound waves travel (341 m/s) to measure distance to an object. The sensor has two openings; one opening emits ultrasonic waves, the other opening receives them. The sensor measures the distance by timing how long it takes for an ultrasonic wave sent out by the emitter to bounce off an object and come back to the receiver. (Time Wave is Emitted) x (Speed of Sound) 2* Distance to Object = *Wave has to travel to object and back.

Gyro Sensor Used as assistance in stability of a robot. The mechanical system can determine the rotation and robot orientation on several axes giving the possibility for users to measure the angles and design robots with proper navigation systems. Students can use this sensor in building balancing robots with high accuracy in movements. Similar to the technology that keeps the image on smartphones orientated in the correct direction.

Color Sensor Used for object detection, follow a line, sorting objects, or detection of a normal or reflected light. The digital EV3 Color Sensor could be used for applications to detect the absence of color, the difference between colors, up to seven different colors, the light intensity. Features detection for up to seven colors; detect the absence of color; it works in ambient light; sample rate of 1 kHz; Auto-ID is built into the EV3 Software;

How do our eyes see color? GREEN!

LIGHT REFLECTION SENSOR Measures the percentage of light reflected off of a surface. Brighter surface colors (white, yellow) reflect a larger percentage of light back to the sensor. (80 - 90%) Darker surface colors (black, blue) reflect a lower percentage of light back to the sensor (10 - 20%) ORANGE RED GREEN YELLOW PURPLE BLUE BLACK WHITE

Analyzing a Sensor program

PORT VIEW Allows you to instantaneously see the status or reading of the motors and sensors plugged into the brick. Port View Motor Control IR Control Brick Program Brick Dialog

Port View Motor Control IR Control Brick Program Brick Dialog PORT VIEW Allows you to instantaneously see the status or reading of the motors and sensors plugged into the brick. Port View Port View Motor Control IR Control Brick Program Brick Dialog

EV3 45 2 --- --- --- --- 2: GYRO-ANG 78 deg --- --- --- PORT VIEW Motors Allows you to instantaneously see the status or reading of the motors and sensors plugged into the brick. --- 6 24 -15 79 4:US-DIST-CM 143.5 CM Sensors

ULTRASONIC SENSOR OBJECT 2 45 PORT VIEW --- 4:US-DIST-CM 140.3 126.5 113.4 132.9 143.5 85.2 66.7 73.6 98.5 CM EV3 --- 4:US-DIST-CM 255.0 CM

ULTRASONIC SENSOR OBJECT 2 45 PORT VIEW --- 4:US-DIST-CM 140.3 126.5 113.4 132.9 143.5 85.2 66.7 73.6 98.5 CM EV3 --- 4:US-DIST-CM 255.0 CM

45 2 GYROSCOPIC SENSOR The digital EV3 Gyro Sensor measures the robot’s rotational motion and changes in its orientation. Used to create precise turns measure angles, create balancing robots. Angle mode measures angles with an accuracy of +/- 3 degrees Gyro mode has a maximum output of 440 degrees/second --- 2: GYRO-ANG deg -42 -26 -15 47 33 25 41 27 39

LIGHT REFLECTION SENSOR --- 4:US-DIST-CM 79 69 12 23 29 86 17 94 81 PCT ORANGE RED GREEN YELLOW PURPLE BLUE BLACK WHITE