Available at: www.etcurr.com Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.

Slides:



Advertisements
Similar presentations
1 Signals, Circuits, and Computers John Athanasiou Part B Spring 2010.
Advertisements

Sensors.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.
Available at: Lesson 4.1, Build a Conveyor Feeder Build a Conveyor Feeder.
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.
Testbed: Exercises.
Program ultrasonic range sensor in autonomous mode
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included.
Robot C and Natural Language
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Xtreme Robot Olympiad Programming Basics Dr. Peter Laz Associate Professor Department of Engineering University of Denver.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 1P. 1Spring Quarter Introduction to Sensors Lab 1.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
Available at: – Program Functions for VEX Robots Program Functions for VEX Robots.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
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.
Vex Robotics program three: using motors and sensors together.
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.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Bot Shop Jane Taylor Dee Wallace Robot C For Vex.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
Project Overview  Introduction  Frame Build  Motion  Power  Control  Sensors  Advanced Sensors  Open design challenges  Project evaluation.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Robotics Education & Competition Foundation
Programming Design ROBOTC Software Principles Of Engineering
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming & Sensors.
An Introduction to VEX IQ Programming with Modkit
INTERMEDIATE PROGRAMMING LESSON
ROBOTC for VEX Online Professional Development
An Introduction to VEX IQ Programming with Modkit
ROBOTC for VEX On-Site Professional Development
Advanced EasyC Jim Cline July 20-21, 2017.
Follow The Guidelines.
Jeopardy $100 $100 $100 $100 $100 $200 $200 $200 $200 $200 $300 $300 $300 $300 $300 $400 $400 $400 $500 $500.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Sensors Training.
Automation and Robotics
INTERMEDIATE PROGRAMMING LESSON
Sensors and Logic Switches
INTERMEDIATE PROGRAMMING LESSON
Follow The Guidelines Light Sensor
INTERMEDIATE PROGRAMMING LESSON
Switch Blocks check a value and choose a path based on that value
Introductory Presentation
Storing Values as Variables
Introductory Presentation
Line Following Behavior
Programming Design ROBOTC Software Principles Of Engineering
INTERMEDIATE PROGRAMMING LESSON
1.15: Dual Joystick Control (Tank)
An Introduction to VEX IQ Programming with Modkit
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Presentation transcript:

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode  Performance Objective: Given the components of a VEX robotics design system program a light sensor in autonomous mode to have the robot travel full speed forward when a lot of light is detected, but to move slowly forward when there is little to no light detected.  Enabling Objectives:  explain the purpose of a light sensor  explain how a light sensor operates  draw a flow chart for using a light sensor  program a light sensor

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Light sensor  The light sensor enables a robot to detect light  Robots can be programmed to have a specific reaction if a certain amount of light is detected because of the analog input  The light sensor uses a cadmium sulfosolenide (CdS) photoconductive photocell  The CdS photocell is a photo resistor, meaning that its resistance value changes based on the amount of incident light (The direct light that falls on the surface)

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Verify the sensor  Plug the sensor into an analog port  Open easyC and download the light sensor test code  Move your hand over the light sensor to see the change in value  The more light there is, the lower the analog value

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program the light sensor  Program a VEX robot equipped with a light sensor to move forward quickly when there is a lot of light in the room, and move slowly when there is little or no light in the room  Draw the flow chart of a program that can complete the above task

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program the light sensor  Open a new competition project and configure the microcontroller for the light sensor  Add a variable for the light sensor  Insert an appropriate driving mode block into the operator tab

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program the light sensor  Insert a while loop where 1==1  Insert the get light sensor value block

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program the light sensor  Insert an If statement to move the robot forward at full speed if the light sensor value is less than 50, meaning there is a lot of light

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program the light sensor  Insert an Else-If statement to move the robot forward slowly if there is very little to no light in the room

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Test your code  Build and download your code  Run the code with the Competition Switch Simulator  The robot should move forward quickly with the lights on, and move forward slowly when the lights are turned off

Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Show it off!  If your code works, show it to your instructor  If the robot does not run correctly, go back through the lesson and double check your code  For more technical data on the light sensor visit: ht_Sensor