NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.

Slides:



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

Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Introduction to LEGO NXT robotics and Robot Sumo for
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO NXT robotics and Robot Sumo
1chung THANKSGIVING RoboParade CJ Chung Associate Professor of Computer Science Lawrence Tech University
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2.
EducateNXT Robot Sumo. EducateNXT What is Sumo? Sumo is a competitive contact sport where a wrestler (rikishi) attempts to force another wrestler out.
NXTG Workshop for Bottle RoboSumo Lawrence Technological University.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
EV3 Software EV3 Robot Workshop 2015
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
Testbed: Exercises.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
Introduction to LEGO NXT robotics and Robot Sumo – Sept 20, 2008 Douglas G. Czinder IEEE SEM R&A Chairperson Professor Keith Bozin.
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.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
Twyla and Jordan.  Light over black line  Runs roverbot.
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors:
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
The Wait-Until-Event pattern Has it happened  Yes, it happened!
Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors:
ICE at Georgia Tech Robots and Artificial Life Forms An NXT Zoo! Mr. Michaud
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.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Vex Robotics Program four: reversing and turning.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
EV3 Software EV3 Robot Workshop
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Rescue Robot Day 2 Exploring Computer Science Lesson 6-11.
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
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.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Sensor Information: while loops and Boolean Logic.
Introduction to LEGO RCX robotics and Robot Sumo Douglas G. Czinder IEEE SEM R&A Chairperson Ms. Susan Latos Robofest Assistant Coordinator.
LOGICFUSION’S HANDS-ON ROBOTICS EV3 LEVEL 2! Welcome to.
LEGO Robotics Workshop
Exploring Computer Science Lesson 6-11
By Sanjay and Arvind Seshan
Touch Sensor.
RobotC Sensors.
Loops and Switches Pre-Quiz
Robot Programming Computer Literacy S2.
Introductory Presentation
Loops with Multiple Sensor Controls
Forward Until Touch Robot goes forward until it hits a wall.
Beginner Programming Lesson
Line Following Behavior
SENSORS.
INTERMEDIATE PROGRAMMING LESSON
Sumo: Stay in Ring Algorithm
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Lego MINDSTORMS EV3.
Exploring Computer Science Lesson 6-11
Exploring Computer Science Lesson 6-11
Presentation transcript:

NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University

Start-Touch Wait until the touch sensor is pressed; Then start the robot to go forward Stop after a second

Start-Light Locate the robot in the middle of the ring Wait until the light sensor detects very bright (lantern) light Then start the robot to go forward Stop after a second

Start-Light

Stop-Touch Go straight until the bumper is hit then stop

Stop-Edge Go straight until the white edge of the ring Then stop

Ultrasonic Sensor Test

Loop To repeat a sequence of code Until Elapsed time Number of repetitions Sensor condition is met Logic becomes true Forever

Say Yes – 10 times

Make the robot move around in the ring – Basic Sumo (Sumo0) Repeat the following forever: Go forward until the edge Backward slightly Spin right

Sumo0

First Sumo Competition Some matches Ask students to list ideas to improve the Sumo robot

Repeat Until Spin a little bit until it detects an object less than 10 inches If detected, stop spinning and say Object

Mission: Find a static object using the ultrasonic sensor & push it out of the ring, box Robot but the robot should remain on the ring!!