Vex Robotics Program four: reversing and turning.

Slides:



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

Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Vex Robotics Program five: using the radio control transmitter.
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.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Automation and Robotics
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Developed in collaboration with Introduction to Programming.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
Autonomy using Encoders Intro to Robotics. Goal Our new task is to navigate a labyrinth. But this time we will NOT use motor commands in conjunction with.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
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
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Getting Started! Lego Mindstorms Program NXT 2.0.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
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.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
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.
Autonomy using Encoders Intro to Robotics. Autonomy/Encoders Forward for Distance In this unit, you will learn to use the encoders to control the distance.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Vex Robotics Program six: combining autonomous and radio control.
Wall Encounter By Made easy by Dwayne Abuel.
AUTOMATION WITH ROBOTC Starting to write and troubleshoot computer code.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics 1 Data Logging (Part 2)
Data Logging (Part 1).
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
Automated Mechanisms Help. Potentiometers Potentiometer Check –Analog Port 2 How they work –Analog sensor –Measures rotation of a shaft between 0 and.
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.
Available at: – Program Functions for VEX Robots Program Functions for VEX Robots.
Using the BlueJ IDE with Mindstorms LMICSE Workshop June , 2005 Alma College.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
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.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
Bot Shop Jane Taylor Dee Wallace Robot C For Vex.
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Basic Steps in Programming
Introduction to Programming in RobotC
Introduction to Programming
Project Overview Introduction Clawbot Build Design Modification
Programming Part 2 Mod Kit
Programming - Motion Intro to Robotics.
Automation and Robotics
Forward Until Touch Robot goes forward until it hits a wall.
Line Following Behavior
Storing Values as Variables
By Sanjay and Arvind Seshan
Programming - Buttons Intro to Robotics.
Automation with RobotC
Programming - Buttons Intro to Robotics.
Automation with RobotC
Oregon Robotics Tournament and Outreach Program
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Vex Robotics Program four: reversing and turning

In this section, you will enhance the code from program three by making it back up, turn, and then continue on its way when the bumper sensor is hit, rather than just stopping.

Open your saved program three file. Select “Open Project” from the “File” menu, then click on INTRO PROGRAM THREE and click “Open”.

Before editing the code, save the code as “intro program four”.

The current programmed behavior is:  if the bump sensor is not being pressed in, the motors turn on;  when the bump sensor is pressed in, the motors turn off. We will edit this program so that instead of stopping when the bump sensor is pushed, your robot will back up, turn right, and then resume moving forward. This means that the new turn-backup code will be replacing the old stop code icons in the else statement. Start by clearing away the old code. Delete both of the Motor Module commands in the else statement. Right-click the first icon, then select delete from the menu that appears. A screen will appear asking if you are sure;

Next, we want to start building the new behavior into the else statement. Begin with the first action, backing up (the idea is to move your robot clear of the obstacle it has encountered). To do this, drag in two “Motor module” icons between the brackets of the else statement. Configure them so the robot starts moving in reverse.

Set the amount of time for the robot to move with a “Wait” icon like you did in program two (page #). Drag a “Wait” icon into the else statement under the two “Motor Module” icons. In the “Wait” configuration window, set the “Wait [msec]” to 1000 (one second.)

To make your robot turn right, drag two “Motor Module” icons below the wait icon, inside the else statement. Configure them so the robot turns right.

To specify the amount of time your robot will turn right, drag a “Wait” icon into the else statement under the two “Motor Module” icons. In the “Wait” configuration window, set the “Wait [msec]” to 500 (which is 500ms, or half a second.) This should make your robot turn approximately ninety degrees. Note: The amount of turning produced by this program will vary from robot to robot. You may have to tweak the timing for your robot to turn away from the wall.

Compile and Download your program. Refer to the programming sequence section for detailed steps on compiling and downloading.

Test your code. Your robot should drive forward until the front bump sensor is hit, at which point the robot will back up, turn right, and then resume forward motion.

Be sure to save changes to your code. Congratulations! Your robot now performs an intelligent autonomous behavior! Let your robot run for a while to see how long it can continue roaming around a room. Identify areas for improvement in the design, and construct and program an improved version.