Using the Light Sensor A LEGO light sensor utilizes a LED and a phototransistor to read the reflection of light off a surface. Light sensors are useful.

Slides:



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

NXT 2-Motor Car Adapted from Physics by Design, Second Edition, by Barbara Bratzel, College House Enterprises, 2007 MAXA ROBOTICS 2011.
EV3 Workshop Curriculum Developed by Joe DeRose, Ph.D.
4/22/ MAKING YOUR ROBOTS SEE Building and Testing Photosensitive eyes.
Engineering Roles We will be forming groups of 3 students
Sensors For Robotics Robotics Academy All Rights Reserved.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Choose a Sensor.
Robots Week 3a Lego Light Sensors Betsy Natter Design & Society.
BEGINNER EV3 PROGRAMMING Lesson
Psyc2320 Midterm II Review. Physiological Depth Cues – Accommodation.
Connecting VEX and ROBOTC
Design of Control Strategy System Dynamics Environmental Disturbances Control Strategy GoalOutput Feedback Sensors.
Analysis vs. Design When you take a test in your math or physics course, there is one and only one answer! When you do a goal-driven design there may be:
Patent Liability Analysis Andrew Loveless. Potential Patent Infringement Autonomous obstacle avoidance 7,587,260 – Autonomous navigation system and method.
EDGE AVOIDER ROBOT USING I-BOT mini V3. EDGE AVOIDER USING I-BOT mini V3 Edge Avoider Robot is built using the IR based Line Detecting Module. The modules.
Line-Follower Challenge. 1. How does a light sensor work? Does the light sensor detect white or black as a higher amount of light reflectivity? Absorbance?
Recoded. Significance of programming Digitalised era- phones, computers, industrial processes… Raspberry programming device Exploration of the concept.
Patterns, frameworks & Lejos
June 2 nd 2010 Line Tracking & Mission to Mars Embedded Motion Control Group 1 Rene Thijssen Luke Lathouwers Maarten van Stuijvenberg Roel ten Have Bastian.
Sensors for use in this class. Sensors 2 Robotics: Bridgewater state college.
Program ultrasonic range sensor in autonomous mode
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
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.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Training Course SuperCool 1000 Level 1 Course #P0131.
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
Sentry System Multiple Sensors
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.
Controlling a Robot with a Neural Network n CS/PY 231 Lab Presentation # 9 n March 30, 2005 n Mount Union College.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Ambient Feedback Control System Jonathan Uht.  Recap  System Block Diagram  Hardware Implementation  Software Implementation  Results  Work Not.
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.
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.
Connect VEX and ROBOTC Electrical Engineer Responsibilities © 2011 Project Lead The Way, Inc.Automation and Robotics VEX.
Introduction to Robots and the Mind - Sensors - Bert Wachsmuth & Michael Vigorito Seton Hall University.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
 circumference = distance around the wheel  Distance around the wheel = distance travelled in 1 rotation  Distance travelled in 1 rotation would change.
How Do You Make a Program Wait?
LEGO Robotics Workshop
Electrical Engineer Responsibilities
By Sanjay and Arvind Seshan
Comparing EV3 & HITechnic COLOR SENSORS
Line-Follower Challenge
ROBOTC for VEX Online Professional Development
BEGINNER EV3 PROGRAMMING Lesson
Sensors Color Identification Mike Zook 13-Sep-2016.
Electrical Engineer Responsibilities
Follow The Guidelines.
Touch Sensor.
Electrical Engineer Responsibilities
Electrical Engineer Responsibilities
BEGINNER PROGRAMMING LESSON
DT-Assessment Frame Work Term2
Loops and Switches Pre-Quiz
Sensors Color Identification Mike Zook 13-Sep-2016.
Obstacle Detection Ultrasonic Sensor.
Motors and Sensors Large Motor
Systems Design Nursebot
Computer Literacy Chapter 2.
Lesson 3: Sensor Wait-for’s Programming Solutions
BEGINNER PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Oregon Robotics Tournament and Outreach Program
Presentation transcript:

Using the Light Sensor A LEGO light sensor utilizes a LED and a phototransistor to read the reflection of light off a surface. Light sensors are useful in building robots that will follow a flashlight or a black line on a piece of paper. Note: Ambient light does affect sensor readings.

Configuring the Light Sensor Just like the touch sensor, we have to use a command to tell the RCX what kind of sensor we are using, and where that sensor is connected. #define EYE SENSOR_2 ….. task main() { SetSensor(EYE, SENSOR_LIGHT); ….

Sensor Location and Output Level source receptor

Sensor Location and Output Level x output

Linebot I Design Intent (Goal): The robot is to track a black line on a white background. Concept Two light sensors are mounted on the front of the linebot. When the robot is centered over the line, the sensors will indicate a higher light level (from the reflecting white surface). If the robot moves to the right, sensor RIGHT_EYE will increase in value (until it reaches a saturation level) while sensor LEFT_EYE will decrease. left right RIGHT_EYE LEFT_EYE

Control Strategy W RIGHT_EYE x L LEFT_EYE h

Control Strategy W RIGHT_EYE x L LEFT_EYE X W/2-W/2

Control Strategy W RIGHT_EYE x L LEFT_EYE Choose a threshold between the max and min values of the light sensor. When the RIGHT_EYE detects a value lower than this threshold, steer right. When the LEFT_EYE detects a value lower than this threshold, steer left. X W/2-W/2 High value Low value Threshold value

Control Strategy: Parameters –Symmetry of the light sensors: do you need two threshold values? –The effect of the distance of the sensor from the surface? –How do the values of W and L affect the operation? –How does the speed of the robot affect the operation? –Will the robot always be steering right or left, or is there an operating zone in which no correction is applied?

Implementation –Preprossor directives: Use #define to define key values like the threshold values for each of the sensors –task main() sets up the sensors and begins the motion. –task controller detects the values of the sensors and initiates steering to right or left.