Session 2  The Touch Sensor  The Colour Sensor.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Forward Until Dark. NXT Light Sensors How does the Light Sensor detect brightness? The Light Sensor shines a red light on the surface below it and reports.
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.
Sensors.
Photos and Sensor Instructions
BEGINNER EV3 PROGRAMMING Lesson
LEGO MINDSTORMS PROGRAMMING CAMP
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Robotics Day4.
EducateNXT NXT... an introduction The Kit and the Software.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
BEGINNER EV3 PROGRAMMING Lesson
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.
By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/
Introduction to the Basic Parts of LEGO’s NXT Robotics
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.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
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.
LEGO MINDSTORM Session 1 Setup Brick Sound Brick Status Light
By Eric Greene RMS / I. S. 192 Q. Smart Start Question How would you get the robot to flirt with disaster by touching the edge of the “table” as many.
Oregon Robotics Tournament and Outreach Program RCX Basics.
EV3 Software EV3 Robot Workshop
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.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Touch Sensor.
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.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
4 |Multitasking Created by H. Robinson & A. Gostelow Multitasking.
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.
EV3 Attachments and Sensors. Ultrasonic Sensor  Purpose: detect distance from an object.  What it does: Generates sound waves and reads their echoes.
Introduction to LEGO Mindstorms EV3 What is in the box?
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
LEGO MINDSTORMS PROGRAMMING
Exploring Computer Science Lesson 6-5
An Introduction to VEX IQ Programming with Modkit
Comparing EV3 & HITechnic COLOR SENSORS
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
How Does a Color Sensor Work?
Touch Sensor.
Using Switches to Program A candy Sorter
BEGINNER PROGRAMMING LESSON
Music by Touch Music by Touch Presentation > TeachEngineering.org
Automation and Robotics
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Motors and Sensors Large Motor
Introductory Presentation
Exploring Computer Science Lesson 6-5
BEGINNER PROGRAMMING LESSON
Line Following Behavior
Switch Blocks check a value and choose a path based on that value
Storing Values as Variables
BEGINNER PROGRAMMING LESSON
Using Switches to Program A candy Sorter
SENSORS.
BEGINNER PROGRAMMING LESSON
Compiled from various Internet sources Presented by Mr. Hatfield
Lego MINDSTORMS EV3.
BEGINNER PROGRAMMING LESSON
Oregon Robotics Tournament and Outreach Program
LEGO MINDSTORMS NXT PROGRAMMING
Session 3 Sensors.
Presentation transcript:

Session 2  The Touch Sensor  The Colour Sensor

Your EV3 brick has already been configured for the lesson today. Pair up with a friend and find a suitable space to work. You will need a laptop and an brick with a large motor, touch sensor and a light sensor.

The Touch Sensor is an analogue sensor that can detect when the sensor’s red button has been pressed and when it is released. That means the Touch Sensor can be programmed to action using three conditions—pressed, released, or bumped (both pressed and released). Using input from the Touch Sensor, a robot can be programmed to see the world as a blind person might, reaching a hand out and responding when it touches something (pressed). You might build a robot with a Touch Sensor pressed against the surface beneath it. You might then program the robot to respond (Stop!) when your robot is about to drive off the edge of a table (when the sensor is released). A fighting robot might be programmed to keep pushing forward against its challenger until the challenger retreats. That pair of actions—pressed, then released—would constitute bumped.

Build the blocks below: remember to check the port you are using for the sensor. Think about scenario where we would use this function?

Try changing the functions so that a sound plays when the button is released and when the button is bumped. Think about a practical application of these states.

In Colour Mode, the Colour Sensor recognizes seven colours—black, blue, green, yellow, red, white, and brown—plus No Colour. This ability to differentiate between colours means your robot might be programmed to sort coloured balls or blocks, speak the names of colours as they are detected, or stop action when it sees red.

Build the blocks below. The EV3 unit should speak the colours once they are detected. Use the colour sheet provided or download the sheet from the digitaltech website. Please check the port you are using for the sensor.

In Reflected Light Intensity Mode, the Colour Sensor measures the intensity of light reflected back from a red light–emitting lamp. The sensor uses a scale of 0 (very dark) to 100 (very light). This means your robot might be programmed to move around on a white surface until a black line is detected, or to interpret a colour-coded identification card.

Build the blocks below. The brick status light should pulse orange when you cover the sensor or when you introduce it to a black line. If not, set the sensor threshold…

In Ambient Light Intensity Mode, the Colour Sensor measures the strength of light that enters the window from its environment, such as sunlight or the beam of a torch. The sensor uses a scale of 0 (very dark) to 100 (very light). This means your robot might be programmed to set off an alarm when the sun rises in the morning, or stop action if the lights go out. The sample rate of the Colour Sensor is 1 kHz/sec. For the best accuracy, when in Colour Mode or Reflected Light Intensity Mode, the sensor must be held at a right angle, close to—but not touching—the surface it is examining.

Build the blocks below. Change the light mode to ambient light. Experiment how to trigger the threshold if set to less than 20.

Program the EV3 unit to make the large motor perform specific rotations once a colour has been detected. Eg RED = 2 clockwise rotations

Open your Mindstorm Diary Presentation. Reflect on the sensors we have covered today. Explain the purpose of each sensor and explain how the different colour senses are used. You should divide your colour sensor slide into 3 sections eg. Colour, reflective light and ambient light. Remember, your home slide should be interactive. When you click on a sensor it should take you to the slide providing information on the sensor. Each slide should also have a home button which links to the first slide. Save your work