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.

Slides:



Advertisements
Similar presentations
Once you are logged in, click through the steps below. 1. Start 2. Programs3.Microsoft4. Word Menu Office2007.
Advertisements

Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
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.
Engineering Roles We will be forming groups of 3 students
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Automation and Robotics
Developed in collaboration with Introduction to Programming.
Photos and Sensor Instructions
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
V EX C OACHES ' T RAINING October 12, Agenda for Today 9 – 10 AM : Tina Reeves and the Engineering Notebook 10 – Noon : Finish Building, Basic Robot.
Connecting VEX and ROBOTC
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
How to Use The Borland C++ Compiler Version 5
Testbed: Exercises.
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Introduction to Canvas K-5
Image Downloading Instructions General Instructions.
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.
Programming Design ROBOTC Software Principles of Engineering
Robot C and Natural Language
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.
AUTOMATION WITH ROBOTC Starting to write and troubleshoot computer code.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Photos and Sensor Instructions
Getting Started in RobotC // Comment task main() motor[] {} wait1Msec() ; = Header Code Compile Download Run Take out your notes.
Variables and Functions ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Vex Robotics Program four: reversing and turning.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
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.
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.
ROBOTC for VEX Robotics (VEX IQ) On-Line Session 2014 My name is Jason McKenna I will be leading you through these sessions Teacher for 17 years Hopewell.
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.
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.
Robot C and Natural Language. Create a folder Create a folder on your desktop to insert all your Robot C files, Here you will begin with your template.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc.Automation and Robotics VEX.
Using Zappers in a Common Learning Space A guide for tutors Created by Adam Warren Learning and Teaching Enhancement Unit.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
Basic Programming: Until Commands. The Problem with Wait States Motor Speed is affected by battery power. –If the battery is fully charged, the motors.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
After Construction Name: Per #:.
Programming Design ROBOTC Software Principles Of Engineering
Introduction to Programming in RobotC
Automation with RobotC
ClawBot Beginning Programing.
Using the Lego Mindstorms Edu NXT Software
Introduction to Programming
StartStruck in a Virtual World
Programming Scratch to Control a K’NEX Fairground Ride
Automation and Robotics
StarStruck in a Virtual World: Fantasticbot Version
Programming Design ROBOTC Software Computer Integrated Manufacturing
Programming Part 2 Mod Kit
Learning to program with Logo
Automation and Robotics
TECH 1 BAMS Technology Education
Getting Started in RobotC
Programming Design ROBOTC Software Principles Of Engineering
Automation with RobotC
Photos and Sensor Instructions
Compiled from various Internet sources Presented by Mr. Hatfield
Automation with RobotC
Programming Design ROBOTC Software Principles of Engineering
Presentation transcript:

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 program shows you to write your own similar program. Show your teacher when you’ve successfully written each program. 1) Open the BMS PLTW template file in Canvas and save your W: drive with these steps: a)In Canvas, open the Testbed Coding assignment. b)Left click on the BMS PLTW template link. c)Right click on the BMS PLTW template link and Save link as… Save it to your W: drive. d)Use this file whenever you start a new Program. Be sure your don’t save over this link, otherwise you’ll need to perform steps a-c again. 2) The software we’re using is ROBOTC for VEX Robotics 4.x. Open it now from the Start menu or Desktop and open the file from your W: drive from step 1. Save this template file with a different name (Testbed 1, Testbed 2, etc.) to your W: drive. 3) After the software opens, be sure that the following settings are correct (you may only have to do this the first time you use the software at a particular computer): a) Robot>Platform Type>Natural Language PLTW b) Robot>Platform Type>VEX 2.0 Cortex c) Robot>VEX Cortex Communication Mode>USB Only

A Typical Program Be sure to fill in all parts shown (Project Title, Team Members, etc.). Everything in green is for you and other viewers only- the software does not read this. This is know as pseudocode. (pronounced sue-doh-code). Pseudocode helps people to understand the purpose of the program. Everything in blue and red between the red curly braces is code- this is the language of the software (ROBOTC) and this is exactly what the software will tell the robot to do. Use the drag and drop method to place the appropriate command (startMotor, wait, etc.) from the left side of the screen to the proper location.

When you’re ready to test your program: 1) Save it to your W: drive with a good name (i.e. Testbed 1). 2) Plug the orange USB cord in the Testbed Cortex and into the computer. You may need to wait while an update occurs. 3) Turn on the Cortex. 4) Tell the software where all the robot sensors, motors, and LEDs are plugged in: Robot>Motors and Sensors Setup> Standard Models>pull down to GTT Testbed>Apply>OK 5) Click on “Compile Program”. If there are no errors (yellow or red X’s) then your program is ready to run. 6) Click on “Download to Robot” and, once it’s ready, click “Start” to see if it works the way you intended.

Testbed 1 Use what this sample program is teaching you to write your own similar program. Be sure to start with a new BMS PLTW template file from your W: drive. Note: Full motor speed is 127. Motors speeds must be whole numbers so round to the nearest whole number, if needed. Show Mr. Melville the program and the working Testbed when complete: Task Description: Turn the left motor counterclockwise at ½ speed for 3 seconds, wait a second, turn the right motor on counterclockwise at ½ speed for 3 seconds, wait a second, and turn both motors in opposite directions for 5 seconds.

Testbed 2 Use what this sample program is teaching you to write your own similar program. Be sure to start with a new BMS PLTW template file from your W: drive. Note: The blank lines in the code are to help show the 4 distinct parts of the program. Show Mr. Melville the program and the working Testbed when complete: Task Description: When the limit switch is pressed both motors will turn at ½ speed in opposite directions and the green LED will turn on. When the bumper switch is pressed and released the left motor will stop and the green LED will turn off. When the bumper switch is pressed and released again the right motor will turn off.

Testbed 3 Before writing your own program based on the Task Description below, open and run the program above. To do this you’ll use the same steps as #1 and #2 from the first page of this PowerPoint except you’ll use the program called Wait for Dark 5. Also, be sure to read the full Task Description above and its Notes. Task Description: Wait until the bumper switch is pressed and released, turn the motors on in opposite directions at full speed, wait until the line follower reads a level higher than (darker than) 2000, stop both motors, restart both motors at ½ speed in opposite directions for 2 seconds, speed up both motors to full speed, and stop them both once the line follower reads a level higher than (darker than) Note: you will need to use the same white paper method above.