Switch Blocks check a value and choose a path based on that value

Slides:



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

Punch! Pro Platinum Home Design
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
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.
Dublin Robotics Boosters NXT-Step Programming Workshop.
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.
Follow The Guidelines Introductory Presentation. Opening Activity Make a prediction about how light sensors will use thresholds. Keep in mind: We used.
Wait, sound sensor >70, Port 2 Flowchart – Heartbeat 1 Start Motor A, Move Backward, 1/3 Rotation, Power 20 Wait, 1 Second Sound Sensor (Port 2) Less than.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Debugging (updated 9/20/06 12:48pm) It doesn’t work…. What do I do????
Session 2  The Touch Sensor  The Colour Sensor.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
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.
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.
Introduction to the Basic Parts of LEGO’s NXT Robotics
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
This block is a : displaydisplay looploop movemove soundsound switchswitch waitwait motor.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Programming a light sensor to follow a black line.
Vex Robotics Programming Sequence. Now that you’ve had some practice downloading and using the included programs, it's time to learn to write some of.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
Real-Time Data through Data Hubs. Begin by adding a basic Move block, 5 rotations 75% power.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
According to the image, what is the file name? According to the image, what is the program name? Quiz Example.ev3 Falcon.
Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor.
Earth’s Rotation K. Williams, PRES. We live on Earth.
LEGO® MINDSTORMS® NXT Move Block.
ECE Project 1 Overview. Project Description The aim of this project is to design a robot that moves along a given path, from the Start point, towards.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
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.
Data Hubs and Wires. Begin by adding a basic Move block, 5 rotations 75% power.
Tutorials NXT-G / EV3 Programming. Tutorials NXT-GEV3.
The George Washington University Electrical & Computer Engineering Department Dr. S. Ahmadi Class 3.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
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.
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.
Forward Until Near Stop when near a wall.
USING SWITCHES TO PROGRAM A CANDY SORTER DESIGNED FOR USE WITH LMS EV3 PROGRAMMING AND BUILDING ENVIRONMENT.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
- Usable range of 0 to 6 feet. - Find dark or bright areas.
Line-Follower Challenge
Using the Lego Mindstorms Edu NXT Software
3D Animation: Fashion Show
Follow The Guidelines.
Programming Part 2 Mod Kit
Using Switches to Program A candy Sorter
Sensors and Logic Switches
Forward Until Touch Robot goes forward until it hits a wall.
Follow The Guidelines Light Sensor
Line Following Behavior
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
Introductory Presentation
Storing Values as Variables
Using Switches to Program A candy Sorter
Introductory Presentation
INTERMEDIATE PROGRAMMING LESSON
Debugging It doesn’t work…. What do I do????
Obstacle Detection.
Getting started with LEGO EV3 Mindstorms software
Players choose either light or dark blue blocks to play.
Implementing Variables in Your Programs
Ecology Lab Instructions
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Switch Blocks check a value and choose a path based on that value

When the program reaches the Switch Block it checks the value of the light sensor. Based on what it reports the program continues along either the top or bottom path.

Choose a Switch Block from the Flow Palette and place it on the sequence beam. The Control is set to sensor, from the Sensor drop down menu choose Light Sensor. The Switch Block shows the Light Sensor symbol.

40 The configuration panel should have the Light Sensor on Port 3 and compare it’s reading against 40.

If the light sensor shows a light reading, anything above the threshold the program will run the blocks on the bright sun side. If the light sensor shows a dark reading, anything below the threshold the program will run the blocks on the dark sun side.

Add a Move Block to the top beam to go forward for 1 Rotation.

Add a Move Block to the bottom beam to go backwards for 1 Rotation.

Download and run the program. Make sure the Light Sensor is on Port 3. Depending on the value the light sensor detects when it reaches the Switch Block the robot will either run forward or backwards.