Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors: 0-100.

Slides:



Advertisements
Similar presentations
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
Advertisements

NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
Dublin Robotics Boosters NXT-Step Programming Workshop.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Add and Use a Sensor & Autonomous For FIRST Robotics
Squaring or Aligning on a Line
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
Program ultrasonic range sensor in autonomous mode
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
By Mesa Robles Robotworks and Droids Robotics
Twyla and Jordan.  Light over black line  Runs roverbot.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.
Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors:
Wiring –Basic light switch
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Using Sensor Data and Port View.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
SOLVING QUADRATICS DAY 3 (IN THE CALCULATOR) EQ: How can points of intersection be used to solve any equation?
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
Oregon Robotics Tournament and Outreach Program RCX Basics.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
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.
Forward Until Near Stop when near a wall.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Basic NXT-G Programming. NXT-G Sequence Beams Blocks Structures (special blocks) Wires (connect ports on blocks & structures)
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Introduction to Programming in RobotC
BEGINNER PROGRAMMING LESSON
Robotics Training For The Riverside Robotics Society
An Introduction to VEX IQ Programming with Modkit
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
Ramping Up Speed with Mesa Robot Works FLL #52.
Introduction To Programming with LEGO NXT 2
Touch Sensor.
RobotC Sensors.
INTERMEDIATE PROGRAMMING LESSON
Module F: Presentation Understanding Robot Fundamentals
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Forward Until Touch Robot goes forward until it hits a wall.
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
Line Following Behavior
Lesson 3: Finding Lines On The Mat
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
INTERMEDIATE PROGRAMMING LESSON
Storing Values as Variables
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
SENSORS.
Lego EV3 Mindstorms SW Programming Blocks.
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
OZOBOT.
Building Complex Behaviors: Actions and States
Oregon Robotics Tournament and Outreach Program
Getting started with LEGO EV3 Mindstorms software
Presentation transcript:

Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors: 0-100

Calibrate Me! (Put on my glasses) Black  36% Place me on BLACK. I’ll tell you what I see when NOT calibrated (without glasses). Hit the “down” button to teach me what black/dark looks like to you.

Calibrate Me! (Put on my glasses) Place me on WHITE. I’ll tell you what I see when NOT calibrated (without glasses). Hit the “up” button to teach me what white/light looks like to you. White  48%

Calibrate Me! (Put on my glasses) Now move me around to test if I’m well calibrated. Black should be close to zero (0). 6%

Calibrate Me! (Put on my glasses) Now move me around to test if I’m well calibrated. White should be close to %

Go to Line, then Stop

Go to Line, then Stop CODE

6 State Line Follower 50 What should the bot do? Drive Straight Motor B: 50 Motor C: 50

6 State Line Follower 0 What should the bot do? BIG Pivot B Motor Motor B: 50 Motor C: 20

6 State Line Follower 20 What should the bot do? Pivot B Motor Motor B: 50 Motor C: 30

6 State Line Follower 40 What should the bot do? SLIGHT Pivot B Motor Motor B: 50 Motor C: 40

6 State Line Follower 60 What should the bot do? SLIGHT Pivot C Motor Motor B: 40 Motor C: 50

6 State Line Follower 80 What should the bot do? Pivot C Motor Motor B: 30 Motor C: 50

6 State Line Follower 100 What should the bot do? BIG Pivot C Motor Motor B: 20 Motor C: 50

Why is it called a 6-state line follower? We looked situations that need to be corrected, in chunks of twenty. The bot sees colors as numbers from 0 – 100, or a range of ÷ 20 = 5 BUT we need to count both the 0 and 100 chunks. SO….

Why is it called a 6-state line follower?

Which block is best? Light Sensor block: Takes a reading of what the bot currently sees with the light sensor Doesn’t actually do anything with that information You must tell it what to do with the info using DATA WIRES Wait block: Waits to move on to the next command (block) until a condition is met

Which block is best? Light Sensor block: Used for line following Wait block: Used for stopping at lines

Writing the CODE for a 6- state line follower

Adding the Switch (choices)

Writing the CODE: The SWITCH Conditions

Writing the CODE: The SWITCH Speeds Tab 0 0 ÷ 20 = 0 B: 50 sp C: 20 sp Tab 1 20 ÷ 20 = 1 B: 50 sp C: 30 sp Tab 2 40 ÷ 20 = 2 B: 50 sp C: 40 sp

Writing the CODE: The SWITCH Speeds Tab ÷ 20 = 5 B: 20 sp C: 50 sp Tab 4 80 ÷ 20 = 4 B: 30 sp C: 50 sp Tab 3 60 ÷ 20 = 3 B: 40 sp C: 50 sp

Writing the CODE: The SWITCH Speeds

6-State Line Follower: The CODE Control how long you follow the line