TETRIX Getting Started Guide FTC Extension. Programming Guide (ROBOTC ) Autonomous Programming

Size: px
Start display at page:

Download "TETRIX Getting Started Guide FTC Extension. Programming Guide (ROBOTC ) Autonomous Programming"

Transcription

1 Introduction In this guide, a TETRIX with LEGO MINDSTORMS robot with an arm and gripper extension will be programmed to move forward until it detects an object, slow down as it approaches the object, and stop to pick up the object when it is within range. The robot will indicate whether the object has been successfully grabbed using the NXT display and by playing a sound. This guide is for use with the ROBOTC programming language. Review: To review the basics of FTC programming in ROBOTC, review the Programming Guides and tutorial videos from the FTC Programming Template extension and the TeleOp Programming extension. These materials contain detailed information about how to use the FCS to run a FTC game and how to use FTC templates to create FCS compatible programs. These materials also contain information about the basics of ROBOTC. Getting Started: 1. Open the autonomous template from the FIRST Tech Challenge folder. Save the file with a new name into an appropriate directory. 2. In the initializerobot() function, set the initial servo positions. Set the gripper servo, servo1, to an initial position of 200, and the arm servo, servo2, to an initial position of 80. Add a one second wait command to allow the servos to move, settle into to their positions, and stop before continuing to the next command. void initializerobot() Place code here to initialize servos to starting positions. Sensors are automatically configured and setup by ROBOTC. They may need a brief time to stabilize. servo[servo1] = 200; servo[servo2] = 80; Initial startup gripper servo position Initial startup arm servo position Wait for arm and gripper to get to position 3. Navigate to the main() function and declare three integer variables outside the While Loop. These variables should be, mvalue, aposition and gposition, representing the sonar value, the arm servo position and the gripper servo position, respectively. These variables will be responsible for keeping a record of the sonar value and the positions of the servos connected to the arm and gripper. int mvalue; int aposition; int gposition; sonar value servo arm position gripper servo position 52

2 TETRIX Getting Started Guide FTC Extension 4. Set the motor speeds to 30 and add a wait statement to allow the motors to be initialized to that speed. motor[motord] = 30; motor[motore] = 30; 5. Inside the While Loop, type the command that stores the value of the Ultrasonic Sensor within the mvalue variable. Also add the commands that will update the NXT screen and display the value of mvalue on line 2 of the NXT Brick display. while (true) mvalue = SensorValue[SonarSensor]; nxtdisplaytextline(2, "Sonar Value: %d", mvalue); nxtdisplaycenteredtextline(4, "Searching"); nxtdisplaycenteredtextline(5, "For Target"); 6. The next step is to write the commands that will allow the robot to decrease its speed when it approaches an obstacle. If the sonar sensor value reads less than 30 cm away from an object, both drive motors should decrease their power to 15. Decrease speed as we approach target if(sensorvalue[sonarsensor] < 30) motor[motord] = 15; motor[motore] = 15; 7. Add a conditional statement that will stop the robot when it is less than 17 centimetres away from the object. Update the display to read Found! Grabbing.. and add a one second wait command as well. Sonar ranging here; Stop at target distance, position gripper and arm if(sensorvalue[sonarsensor] < 17) Target sense distance (centimeters) nxtdisplaycenteredtextline(4, "Found!"); update display nxtdisplaycenteredtextline(5, "Grabbing.."); update display motor[motore] = 0; Motor E is off motor[motord] = 0; Motor D is off Pause for 1 second 53

3 8. Once the robot is in position, add a For Loop that will lower the arm to the same position as the object. Allow 0.5 seconds after the movement has been made before continuing to the next instruction. for (aposition = 100; aposition < 190; aposition++) servo[servo2] = aposition; lower arm Pause for 1/2 second 9. Add two more For Loops to the code. The first For Loop should close the gripper once the arm has been lowered. The next For Loop should raise the arm after the object has been gripped. for (gposition = 180; gposition > 80; gposition--) servo[servo1] = gposition; close gripper Pause for 1/2 second for (aposition = 160; aposition > 25; aposition--) servo[servo2] = aposition; raise arm 10. Add a return statement that will terminate the main function, and therefore end the program, once the object has been gripped. End the Program: 11. Type a closing brace to end the conditional statement in Step 7. 54

4 TETRIX Getting Started Guide FTC Extension Completed Code: #pragma config(hubs, S1, HTMotor, HTServo, none, none) #pragma config(sensor, S2, SonarSensor, sensorsonar) #pragma config(sensor, S4, Touch, sensortouch) #pragma config(motor, mtr_s1_c1_1, motord, tmotornormal, openloop, reversed) #pragma config(motor, mtr_s1_c1_2, motore, tmotornormal, openloop) #pragma config(servo, srvo_s1_c2_1,, tservostandard) #pragma config(servo, srvo_s1_c2_2,, tservostandard) *!!Code automatically generated by 'ROBOTC' configuration wizard!!* / Autonomous Mode Code Template This file contains a template for simplified creation of an autonomous program for a TETRIX robot competition. You need to customize two functions with code unique to your specific robot. / #include "JoystickDriver.c" Include file to "handle" the Bluetooth messages. / initializerobot Prior to the start of autonomous mode, you may want to perform some initialization on your robot. Things that might be performed during initialization include: 1. Move motors and servos to a preset position. 2. Some sensor types take a short while to reach stable values during which time it is best that robot is not moving. For example, gyro sensor needs a few seconds to obtain the background "bias" value. In many cases, you may not have to add any code to this function and it will remain "empty". / void initializerobot() 55

5 Completed Code (continued): Place code here to sinitialize servos to starting positions. Sensors are automatically configured and setup by ROBOTC. They may need a brief time to stabilize. servo[servo1] = 200; servo[servo2] = 80; Initial startup gripper servo position Initial startup arm servo position wait for arm and gripper to get to position / Main Task The following is the main code for the autonomous robot operation. Customize as appropriate for your specific robot. The types of things you might do during the autonomous phase (for the FTC competition) are: 1. Have the robot follow a line on the game field until it reaches one of the puck storage areas. 2. Load pucks into the robot from the storage bin. 3. Stop the robot and wait for autonomous phase to end. This simple template does nothing except play a periodic tone every few seconds. At the end of the autonomous period, the FCS will automatically abort (stop) execution of the program. / task main() initializerobot(); waitforstart(); Wait for the beginning of autonomous phase. 56

6 TETRIX Getting Started Guide FTC Extension Completed Code (continued): / / Add your robot specific autonomous code here. / / int mvalue; int aposition; int gposition; sonar value servo arm position gripper servo position motor[motord] = 30; motor[motore] = 30; while (true) mvalue = SensorValue[SonarSensor]; nxtdisplaytextline(2, "Sonar Value: %d", mvalue); nxtdisplaycenteredtextline(4, "Searching"); nxtdisplaycenteredtextline(5, "For Target"); Decrease speed as we approach target if(sensorvalue[sonarsensor] < 30) motor[motord] = 15; motor[motore] = 15; Sonar ranging here; Stop at target distance, position gripper and arm if(sensorvalue[sonarsensor] < 17) Target sense distance (centimeters) nxtdisplaycenteredtextline(4, "Found!"); update display nxtdisplaycenteredtextline(5, "Grabbing.."); update display motor[motore] = 0; Motor B is off motor[motord] = 0; Motor C is off Pause for 1 second 57

7 Completed Code (continued): for (aposition = 100; aposition < 190; aposition++) servo[servo2] = aposition; lower arm Pause for 1/2 second for (gposition = 180; gposition > 80; gposition--) servo[servo1] = gposition; close gripper Pause for 1/2 second for (aposition = 160; aposition > 25; aposition--) servo[servo2] = aposition; raise arm 58

TETRIX Getting Started Guide FTC Extension

TETRIX Getting Started Guide FTC Extension TeleOp Programming TETRIX Getting Started Guide FTC Extension Introduction In this guide, a TETRIX with LEGO MINDSTORMS robot with an arm and gripper extension will be programmed to be controlled by a

More information

TETRIX Getting Started Guide FTC Extension

TETRIX Getting Started Guide FTC Extension Introduction In this guide, code created with the FTC templates will be explored and then run using the Field Control Software (FCS). An FTC game begins with an autonomous period where only autonomous

More information

TETRIX Getting Started Guide. Harvester and Transporter Programming Guide (ROBOTC )

TETRIX Getting Started Guide. Harvester and Transporter Programming Guide (ROBOTC ) Introduction: In this guide, the Ranger Bot will be programmed to follow a line, pick up an object using the harvester, and put the object into the transporter. It will also count the number of objects

More information

TETRIX Getting Started Guide. Launcher Programming Guide (ROBOTC )

TETRIX Getting Started Guide. Launcher Programming Guide (ROBOTC ) Introduction: In this guide, the Ranger Bot will be programmed to follow a line while carrying a ball. Upon sensing a bin with its ultrasonic sensor, it will launch the ball into the bin. This guide is

More information

RobotC Basics. FTC Team 2843 SSI Robotics October 6, 2012 Capitol College FTC Workshop

RobotC Basics. FTC Team 2843 SSI Robotics October 6, 2012 Capitol College FTC Workshop RobotC Basics FTC Team 2843 SSI Robotics October 6, 2012 Capitol College FTC Workshop Agenda The Brick Sample Setup Template Multi Click Program Cancel Configuration (Pragmas) Joystick Data (get data)

More information

//#define HTIRS2_DSP_MODE = 1200;

//#define HTIRS2_DSP_MODE = 1200; #pragma config(hubs, S1, HTMotor, HTMotor, HTMotor, HTMotor) #pragma config(hubs, S2, HTServo, none, none, none) #pragma config(sensor, S1,, sensori2cmuxcontroller) #pragma config(sensor, S2,, sensori2cmuxcontroller)

More information

Getting Started with FTC Using RobotC

Getting Started with FTC Using RobotC Oregon Robotics Tournament and Outreach Program Getting Started with FTC Using RobotC 2008 Opening doors to the worlds of science and technology for Oregon s s youth Instructors Coordinator Robot C for

More information

RobotC for VEX. By Willem Scholten Learning Access Institute

RobotC for VEX. By Willem Scholten Learning Access Institute RobotC for VEX By Willem Scholten Learning Access Institute 1 RobotCgetStarted.key - February 5, 2016 RobotC for VEX Section 1 - RobotC How to switch between VEX 2.0 Cortex and VEX IQ Section 2 - RobotC

More information

LEGO Mindstorm EV3 Robots

LEGO Mindstorm EV3 Robots LEGO Mindstorm EV3 Robots Jian-Jia Chen Informatik 12 TU Dortmund Germany LEGO Mindstorm EV3 Robot - 2 - LEGO Mindstorm EV3 Components - 3 - LEGO Mindstorm EV3 Components motor 4 input ports (1, 2, 3,

More information

LabVIEW for FTC Release Notes

LabVIEW for FTC Release Notes LabVIEW for FTC Release Notes FTC 2010 Contents These release notes contain system requirements and installation instructions for LabVIEW for FTC. LabVIEW for FTC includes LabVIEW 2009 Student Edition

More information

16-311: Getting Started with ROBOTC and the. LEGO Mindstorms NXT. Aurora Qian, Billy Zhu

16-311: Getting Started with ROBOTC and the. LEGO Mindstorms NXT. Aurora Qian, Billy Zhu 16-311: Getting Started with ROBOTC and the LEGO Mindstorms NXT Aurora Qian, Billy Zhu May, 2016 Table of Contents 1. Download and Install 2. License Activation 3. Wireless Connection 4. Running Programs

More information

Introduction to Robotics using Lego Mindstorms EV3

Introduction to Robotics using Lego Mindstorms EV3 Introduction to Robotics using Lego Mindstorms EV3 Facebook.com/roboticsgateway @roboticsgateway Robotics using EV3 Are we ready to go Roboticists? Does each group have at least one laptop? Do you have

More information

Robotics II. Module 2: Application of Data Programming Blocks

Robotics II. Module 2: Application of Data Programming Blocks Robotics II Module 2: Application of Data Programming Blocks PREPARED BY Academic Services Unit December 2011 Applied Technology High Schools, 2011 Module 2: Application of Data Programming Blocks Module

More information

Robotics Study Material School Level 1 Semester 2

Robotics Study Material School Level 1 Semester 2 Robotics Study Material School Level 1 Semester 2 Contents UNIT-3... 4 NXT-PROGRAMMING... 4 CHAPTER-1... 5 NXT- PROGRAMMING... 5 CHAPTER-2... 6 NXT-BRICK PROGRAMMING... 6 A. Multiple choice questions:...

More information

Part A: Monitoring the Touch Sensor and Ultrasonic Sensor

Part A: Monitoring the Touch Sensor and Ultrasonic Sensor LEGO MINDSTORMS NXT Lab 2 This lab introduces the touch sensor and ultrasonic sensor which are part of the Lego Mindstorms NXT kit. The ultrasonic sensor will be inspected to gain an understanding of its

More information

Unit 03 Tutorial 3: Sensors: Touch Sensor Brighton H.S Engineering By: Matthew Jourden

Unit 03 Tutorial 3: Sensors: Touch Sensor Brighton H.S Engineering By: Matthew Jourden Unit 03 Tutorial 3: Sensors: Touch Sensor Brighton H.S Engineering By: Matthew Jourden Robots have a variety of sensors that help the machine sense the world around it. We will be looking at four different

More information

Advanced RobotC. Sensors and Autonomous Coding Teams 5233 Vector and 5293 Rexbotics

Advanced RobotC. Sensors and Autonomous Coding Teams 5233 Vector and 5293 Rexbotics Advanced RobotC Sensors and Autonomous Coding Teams 5233 Vector and 5293 Rexbotics jcagle@chapelgateacademy.org Setup Select platform NXT + TETRIX/MATRIX Create New Autonomous Configure Robot with your

More information

K Force The Kristin Robotics Team Introductory Programming Tutorial 2014 For use with the teams squarebot training robots.

K Force The Kristin Robotics Team Introductory Programming Tutorial 2014 For use with the teams squarebot training robots. K Force The Kristin Robotics Team Introductory Programming Tutorial 2014 For use with the teams squarebot training robots. K Force Squarebot Programming Course - 2014 Robot moves forward for two seconds

More information

EEL 5666C FALL Robot Name: DogBot. Author: Valerie Serluco. Date: December 08, Instructor(s): Dr. Arroyo. Dr. Schwartz. TA(s): Andrew Gray

EEL 5666C FALL Robot Name: DogBot. Author: Valerie Serluco. Date: December 08, Instructor(s): Dr. Arroyo. Dr. Schwartz. TA(s): Andrew Gray EEL 5666C FALL 2015 Robot Name: DogBot Author: Valerie Serluco Date: December 08, 2015 Instructor(s): Dr. Arroyo Dr. Schwartz TA(s): Andrew Gray Jacob Easterling INTRODUCTION ABSTRACT One of the fun things

More information

Activity Basic Inputs Programming VEX

Activity Basic Inputs Programming VEX Activity 3.1.3 Basic Inputs Programming VEX Introduction Inputs are devices which provide a processor with environmental information to make decisions. These devices have the capacity to sense the environment

More information

Activity Basic Inputs Programming VEX

Activity Basic Inputs Programming VEX Activity 3.1.3 Basic Inputs Programming VEX Introduction Inputs are devices which provide a processor with environmental information to make decisions. These devices have the capacity to sense the environment

More information

2. Within your four student group, form a two student team known as Team A and a two student team known as Team B.

2. Within your four student group, form a two student team known as Team A and a two student team known as Team B. Introduction Inputs are devices which provide a processor with environmental information to make decisions. These devices have the capacity to sense the environment in a variety of ways such as physical

More information

Activity Basic Inputs Programming Answer Key (VEX)

Activity Basic Inputs Programming Answer Key (VEX) Activity 1.2.4 Basic Inputs Programming Answer Key (VEX) Introduction Inputs are devices which provide a processor with environmental information to make decisions. These devices have the capacity to sense

More information

Chapter 19 Assembly Modeling with the TETRIX by Pitsco Building System Autodesk Inventor

Chapter 19 Assembly Modeling with the TETRIX by Pitsco Building System Autodesk Inventor Tools for Design Using AutoCAD and Autodesk Inventor 19-1 Chapter 19 Assembly Modeling with the TETRIX by Pitsco Building System Autodesk Inventor Create and Use Subassemblies in Assemblies Creating an

More information

Activity Basic Outputs Programming VEX

Activity Basic Outputs Programming VEX Activity 3.1.2 Basic Outputs Programming VEX Introduction Computer programs are used in many applications in our daily life. Devices that are controlled by a processor are called outputs. These devices

More information

G. Tardiani RoboCup Rescue. EV3 Workshop Part 1 Introduction to RobotC

G. Tardiani RoboCup Rescue. EV3 Workshop Part 1 Introduction to RobotC RoboCup Rescue EV3 Workshop Part 1 Introduction to RobotC Why use RobotC? RobotC is a more traditional text based programming language The more compact coding editor allows for large programs to be easily

More information

Introduction to Lab 2

Introduction to Lab 2 Introduction to Lab 2 Programming LEGO Mindstorms NXT using Ada Jakaria Abdullah 12 September 2016 Jakaria Abdullah Lab 2: LEGO 12 September 2016 1 / 25 Lab 2: Programming LEGO Mindstorms using Ada Lab

More information

Activity Basic Inputs Programming - VEX Clawbot

Activity Basic Inputs Programming - VEX Clawbot Activity 3.1.3 Basic Inputs Programming - VEX Clawbot Introduction Inputs are devices which provide a processor with environmental information to make decisions. These devices have the capacity to sense

More information

Fun with Java Technology on Lego Mindstorms

Fun with Java Technology on Lego Mindstorms Speaker logo centered below photo Fun with Java Technology on Lego Mindstorms Roger Glassey University of California, Berkeley Andy Shaw Sun Microsystems LEGO, the LEGO logo, MINDSTORMS, the Brick and

More information

Autonomous Parking. LEGOeducation.com/MINDSTORMS. Duration Minutes. Learning Objectives Students will: Di culty Beginner

Autonomous Parking. LEGOeducation.com/MINDSTORMS. Duration Minutes. Learning Objectives Students will: Di culty Beginner Autonomous Parking Design cars that can park themselves safely without driver intervention. Learning Objectives Students will: Understand that algorithms are capable of carrying out a series of instructions

More information

BEGINNER PROGRAMMING LESSON

BEGINNER PROGRAMMING LESSON Introduction to the NXT Brick and Software By Sanjay and Arvind Seshan BEGINNER PROGRAMMING LESSON LESSON OBJECTIVES 1. Learn how the NXT brick operates 2. Learn about the main components of the EV3 software

More information

Activity Basic Outputs Programming Answer Key (VEX) Introduction

Activity Basic Outputs Programming Answer Key (VEX) Introduction Activity 1.2.3 Basic Outputs Programming Answer Key (VEX) Introduction Computer programs are used in many applications in our daily life. Devices that are controlled by a processor are called outputs.

More information

2

2 1 2 3 4 5 6 7 8 9 Robot C Settings for Programming in VEX IQ Text Mode Setup the software for Vex IQ: Platform Tab: Platform Type [Vex Robotics] [VEX IQ] Quick

More information

INTRODUCTION LEGO MINDSTORMS NXT AND LABVIEW 8.6

INTRODUCTION LEGO MINDSTORMS NXT AND LABVIEW 8.6 INTRODUCTION LEGO MINDSTORMS NXT AND LABVIEW 8.6 Prof. Dr.-Ing. Dahlkemper Fabian Schwartau Patrick Voigt 1 NXT DIRECT COMMANDS There are two different kinds of programming Lego Mindstorms NXT with LabVIEW:

More information

WIZ-PRO2 CURRICULUM HIGHLIGHTS

WIZ-PRO2 CURRICULUM HIGHLIGHTS WIZ-PRO2 CURRICULUM HIGHLIGHTS STEM Learning and Advanced Robotics (ages 9-11) Develop more advanced programming skills, create programs using lines of code in Scratch, use more powerful robotics components

More information

Next Gen Platform: Team & Mentor Guide

Next Gen Platform: Team & Mentor Guide Next Gen Platform: Team & Mentor Guide 1 Introduction For the 2015-2016 season, the FIRST Tech Challenge (FTC) will be adopting a new controller for its robot competitions. The new platform, which will

More information

Activity Basic Outputs Programming VEX

Activity Basic Outputs Programming VEX Activity 3.1.2 Basic Outputs Programming VEX Introduction Computer programs are used in many applications in our daily life. Devices that are controlled by a processor are called outputs. These devices

More information

MS4SSA Robotics Module:

MS4SSA Robotics Module: Robotics Module: Programming and Sensors Kim Hollan Why Program a Robot? Building a robot teaches many valuable skills; however, the learning doesn t stop there Programming also teaches valuable life skills

More information

Introduction to Lab 2

Introduction to Lab 2 Introduction to Lab 2 Programming LEGO Mindstorms NXT using Ada Jakaria Abdullah 19 September 2017 Jakaria Abdullah Lab 2: LEGO 19 September 2017 1 / 24 Lab 2: Programming LEGO NXTs using Ada Lab goals:

More information

LEGO mindstorm robots

LEGO mindstorm robots LEGO mindstorm robots Peter Marwedel Informatik 12 TU Dortmund Germany Lego Mindstorm components motor 3 output ports (A, B, C) 1 USB port for software upload 4 input ports (1, 2, 3, 4) for connecting

More information

Lab 2 Programming LEGO Mindstorms NXT. Jakaria Abdullah 19 September 2018

Lab 2 Programming LEGO Mindstorms NXT. Jakaria Abdullah 19 September 2018 Lab 2 Programming LEGO Mindstorms NXT Jakaria Abdullah 19 September 2018 Lab Overview Lab goals Real-time programming on an embedded device Problem solving using real-time tasks Schedule Slot 1: 20.9.18

More information

INTRODUCTION TO ARTIFICIAL INTELLIGENCE

INTRODUCTION TO ARTIFICIAL INTELLIGENCE DATA15001 INTRODUCTION TO ARTIFICIAL INTELLIGENCE THE FINAL EPISODE (11): ROBOTICS TODAY S MENU 1. "GRAND CHALLENGE" 2. LEGO MIND- STORMS 3. ROBO WORKSHOPS ROBOTICS AS A "GRAND CHALLENGE" OF AI actuators:

More information

Project from Real-Time Systems Lego Mindstorms EV3

Project from Real-Time Systems Lego Mindstorms EV3 Project from Real-Time Systems March 13, 2017 Lego Mindstorms manufactured by LEGO, http://mindstorms.lego.com extension of LEGO Technic line history: RCX, 1998 NXT, 2006; NXT 2.0, 2009 EV3, 2013 why LEGO?

More information

EV3 Programming Workshop for FLL Coaches

EV3 Programming Workshop for FLL Coaches EV3 Programming Workshop for FLL Coaches Tony Ayad 2017 Outline This workshop is intended for FLL coaches who are interested in learning about Mindstorms EV3 programming language. Programming EV3 Controller

More information

How to Use EV3Lessons

How to Use EV3Lessons How to Use EV3Lessons By Sanjay and Arvind Seshan BEGINNER PROGRAMMING LESSON SITE OVERVIEW EV3Lessons.com provides the building blocks for successfully learning to program the LEGO MINDSTORMS EV3 We also

More information

Why robotics in Education? DEI The University of Padova

Why robotics in Education? DEI The University of Padova Why robotics in Education? DEI The University of Padova Why robotics in Education? A Picture Is Worth A Thousand Words Why robotics in Education? Emotional engagement Interaction with physical devices

More information

Getting Started with the FTC SDK. Jaxon Brown August 5, 2017

Getting Started with the FTC SDK. Jaxon Brown August 5, 2017 Getting Started with the FTC SDK Jaxon Brown August 5, 2017 Goals Install the Software Development Kit (SDK) Learn the Java basics How is the FTC SDK structured? Creating a basic Teleop Program Creating

More information

Robotics II. Module 1: Introduction to Data & Advanced Programming Blocks

Robotics II. Module 1: Introduction to Data & Advanced Programming Blocks Robotics II Module 1: Introduction to Data & Advanced Programming Blocks PREPARED BY Academic Services Unit December 2011 Applied Technology High Schools, 2011 Module 1: Introduction to Data & Advanced

More information

These instructions use a standard Robot Configuration based on the PushBot tutorial from FIRST. The Robot setup is as follows:

These instructions use a standard Robot Configuration based on the PushBot tutorial from FIRST. The Robot setup is as follows: Introduction to Robotics and Engineering Marist School Resource: FTC_Android_Programming Description: These instructions will take you through downloading and setting up the Android Studio and FTC Robot

More information

Autonomous Programming FTC Challenge Workshops VCU School of Engineering September 24, 2016 Presented by: Team 8297 Geared UP!

Autonomous Programming FTC Challenge Workshops VCU School of Engineering September 24, 2016 Presented by: Team 8297 Geared UP! Autonomous Programming 2016-2017 FTC Challenge Workshops VCU School of Engineering September 24, 2016 Presented by: Team 8297 Geared UP! Autonomous in VELOCITY VORTEX The Match starts with a 30 second

More information

Exercise 3. Task Programs EXERCISE OBJECTIVE

Exercise 3. Task Programs EXERCISE OBJECTIVE Exercise 3 Task Programs EXERCISE OBJECTIVE In this exercise, you will be introduced to task programs and task commands available in Robotics. You will also be introduced to the Task Editor window in Robotics.

More information

INDEX. Tasks 1-9. Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks

INDEX. Tasks 1-9. Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks Tasks TASKS INDEX Pages 1-2 Sensors 3 Rotation Sensor ( Motor ) 4 NXT Desktop 5 Rotation Sensor ( Motor ) 6 Common Palette 7-8 Inputs and outputs - Common Palette 9 Complete Palette 10-13 Inputs and outputs

More information

Activity Variables and Functions VEX

Activity Variables and Functions VEX Activity 3.1.5 Variables and Functions VEX Introduction A program can accomplish a given task in any number of ways. Programs can quickly grow to an unmanageable size so variables and functions provide

More information

contents in detail introduction...xxi 1 LEGO and robots: a great combination the EV3 programming environment... 5

contents in detail introduction...xxi 1 LEGO and robots: a great combination the EV3 programming environment... 5 contents in detail introduction...xxi who this book is for...xxi prerequisites...xxi what to expect from this book...xxi how best to use this book...xxiii 1 LEGO and robots: a great combination... 1 LEGO

More information

Tutorial: Making Legobot Move Steering Command Brighton H.S Engineering By: Matthew Jourden

Tutorial: Making Legobot Move Steering Command Brighton H.S Engineering By: Matthew Jourden Tutorial: Making Legobot Move Steering Command Brighton H.S Engineering By: Matthew Jourden 1. Build Bas Robot. See Build Manual in the Lego Core Set Kit for details or Build Instructions Base Robot File

More information

LME Software Block Quick Reference 1. Common Palette

LME Software Block Quick Reference 1. Common Palette LME Software Block Quick Reference Common Palette Move Block Use this block to set your robot to go forwards or backwards in a straight line or to turn by following a curve. Define how far your robot will

More information

Robotics II. Module 3: Dealing with Files

Robotics II. Module 3: Dealing with Files Robotics II PREPARED BY Academic Services Unit December 2011 Applied Technology High Schools, 2011 Module 2: Dealing with Files Module Objectives Upon successful completion of this module, students should

More information

Variables and Functions. ROBOTC Software

Variables and Functions. ROBOTC Software Variables and Functions ROBOTC Software Variables A variable is a space in your robots memory where data can be stored, including whole numbers, decimal numbers, and words Variable names follow the same

More information

school robotics On the path to success with Brault & Bouthillier Education

school robotics On the path to success with Brault & Bouthillier Education On the path to success with school robotics Robotics has been used in schools as a teaching tool for several years now. And right from the start, has always believed this innovative project could motivate,

More information

Controlling LEGO R EV3 robots with Prolog

Controlling LEGO R EV3 robots with Prolog Controlling LEGO R EV3 robots with Prolog Sibylle Schwarz, Mario Wenzel Hochschule für Technik, Wirtschaft und Kultur Leipzig Fakultät für Informatik, Mathematik und Naturwissenschaften {sibylle.schwarz,mario.wenzel}@htwk-leipzig.de

More information

Some call it a robot. EV3 Programming APP Available March Locally operated globally connected. Freecall:

Some call it a robot. EV3 Programming APP Available March Locally operated globally connected. Freecall: Some call it a robot We call it a MOTIVATOR EV3 Programming APP Available March 2015 Computer science Science Technology Engineering Maths Locally operated globally connected Freecall: 1800 684 068 www.mooreed.com.au

More information

USB. Bluetooth. Display. IO connectors. Sound. Main CPU Atmel ARM7 JTAG. IO Processor Atmel AVR JTAG. Introduction to the Lego NXT

USB. Bluetooth. Display. IO connectors. Sound. Main CPU Atmel ARM7 JTAG. IO Processor Atmel AVR JTAG. Introduction to the Lego NXT Introduction to the Lego NXT What is Lego Mindstorm? Andreas Sandberg A kit containing: A Lego NXT computer 3 motors Touch sensor Light sensor Sound sensor Ultrasonic range

More information

Download Program. Setup ROBOTC. task main() { motor[motorc] = 100; wait1msec(3000);

Download Program. Setup ROBOTC. task main() { motor[motorc] = 100; wait1msec(3000); Your robot is ready to go! All that s left is for you to tell it what to do by sending it a program. A program is a set of commands that tell the robot what to do and how to react to its environment. Once

More information

Programming Preset Heights in ROBOTC for VEX Robotics By George Gillard

Programming Preset Heights in ROBOTC for VEX Robotics By George Gillard Programming Preset Heights in ROBOTC for VEX Robotics By George Gillard Introduction Programming a button that lifts an arm (or other mechanism for that matter) to a specific preprogrammed point can be

More information

robotics/ openel.h File Reference Macros Macro Definition Documentation Typedefs Functions

robotics/ openel.h File Reference Macros Macro Definition Documentation Typedefs Functions openel.h File Reference Macros #define EL_TRUE 1 #define EL_FALSE 0 #define EL_NXT_PORT_A 0 #define EL_NXT_PORT_B 1 #define EL_NXT_PORT_C 2 #define EL_NXT_PORT_S1 0 #define EL_NXT_PORT_S2 1 #define EL_NXT_PORT_S3

More information

Marble Sorter Project

Marble Sorter Project Marble Sorter Project Ryan Stewart Jinsung Jeon Kenneth Accos Angela Colmenero Principles of Engineering Mckinney High School 02/16/16 Table of Contents Brainstorming Ideas.2-5 Decision Matrix..6 Gantt

More information

Intro to Android Studio

Intro to Android Studio Intro to Android Studio Presenters Knut Peterson, Project Manager, Robo Raiders Jamari Morrison, Programming Lead, Robo Raiders Learning Goals How component mapping works Combining flow charting with programming

More information

Chapter 18 Assembly Modeling with the LEGO MINDSTORMS NXT Set Autodesk Inventor

Chapter 18 Assembly Modeling with the LEGO MINDSTORMS NXT Set Autodesk Inventor Tools for Design Using AutoCAD and Autodesk Inventor 18-1 Chapter 18 Assembly Modeling with the LEGO MINDSTORMS NXT Set Autodesk Inventor Creating an Assembly Using Parts from the LEGO MINDSTORMS NXT Set

More information

RobotC primer. Alexander Kirillov

RobotC primer. Alexander Kirillov RobotC primer version 1.1, September 2013 Alexander Kirillov IslandBots robotic club URL: http://islandbots.org/robotc/ E-mail address: shurik179@gmail.com This work is licensed under the Creative Commons

More information

Exercise 2-2. Programming, Using the Teach Pendant EXERCISE OBJECTIVE

Exercise 2-2. Programming, Using the Teach Pendant EXERCISE OBJECTIVE Exercise 2-2 Programming, Using the Teach Pendant EXERCISE OBJECTIVE In this exercise, you will learn new terms used in the robotics field. You will learn how to record points and use them to edit a robot

More information

Introduction to Lab 2

Introduction to Lab 2 Introduction to Lab 2 Programming in RTOS on LEGO Mindstorms Jakaria Abdullah 9 September 2015 Jakaria Abdullah Lab 2: LEGO 9 September 2015 1 / 21 Lab 2: Programming in RTOS using LEGO Mindstorms Lab

More information

LEGO MINDSTORMS NXT Lab 4

LEGO MINDSTORMS NXT Lab 4 LEGO MINDSTORMS NXT Lab 4 This lab session is an introduction to wireless communication using the Lego Mindstorm NXT software. Two Tribots will speak to each other using a machine language or protocol

More information

Movement using Shaft Encoders

Movement using Shaft Encoders Movement using Shaft Encoders Configure (Motors and Sensors Setup) We will look at the following in this section SensorValue[] while Conditions (, =,!=, ==) Quadrature/Shaft/Rotation Encoder 360

More information

Design and Implementation of a Real-Time Autonomous Navigation System Applied to Lego Robots

Design and Implementation of a Real-Time Autonomous Navigation System Applied to Lego Robots ThBT1.4 Design and Implementation of a Real-Time Autonomous Navigation System Applied to Lego Robots Thi Thoa Mac, Cosmin Copot Clara M. Ionescu Dynamical Systems and Control Research Group, Department

More information

Agreement. Objectives. General Guidelines for Labs. Reading Assignment

Agreement. Objectives. General Guidelines for Labs. Reading Assignment 1 CMPSC 111 Introduction to Computer Science I Fall 2016 Janyl Jumadinova Lab 9 for Section 1 17 November 2016 Due: 1 December, by 2:30 pm This is a team-based assignment. You have to work in teams of

More information

In groups take a Mindstorms kit and decide on what sort of chassis will work best.

In groups take a Mindstorms kit and decide on what sort of chassis will work best. Robotics 2b Lego Mindstorm EV3 Body Building What we re going to do in the session. Build our robot s chassis Test it with some basic programming blocks Modify the chassis if necessary Designing a Chassis

More information

ROBOTC Basic Programming

ROBOTC Basic Programming ROBOTC Basic Programming Open ROBOTC and create a new file Check Compiler Target If you plan to download code to a robot, select the Physical Robot opbon. If you plan to download code to a virtual robot,

More information

Intro to Programming the Lego Robots

Intro to Programming the Lego Robots Intro to Programming the Lego Robots Hello Byng Roboticists! I'm writing this introductory guide will teach you the basic commands to control your Lego NXT Robots. Keep in mind there are many more commands

More information

Command and Control Tutorial

Command and Control Tutorial Command and Control Tutorial Introduction Command and Control is a new LabVIEW template added for the 2016 season which organizes robot code into commands and controllers for a collection of robot-specific

More information

Winning LEGO MINDSTORMS programming

Winning LEGO MINDSTORMS programming Technology in Action Winning LEGO MINDSTORMS Programming Rock-solid reliable programming for fun and competition James J. Trobaugh and Mannie Lowe For your convenience Apress has placed some of the front

More information

the robot not only to go forward, backwards, and turn, but also to straffe from side to side.

the robot not only to go forward, backwards, and turn, but also to straffe from side to side. Programming This will be the second year for FTC to have the new Android control system. Our team loves it. Java was very similar to RobotC, but also opens up a lot of possibilities for us to stretch further

More information

Programming with the NXT using the touch and ultrasonic sensors. To be used with the activity of the How do Human Sensors Work?

Programming with the NXT using the touch and ultrasonic sensors. To be used with the activity of the How do Human Sensors Work? Programming with the NXT using the touch and ultrasonic sensors To be used with the activity of the How do Human Sensors Work? lesson How do you incorporate sensors into your programs? What you know: You

More information

Ch Mindstorms Package User s Guide

Ch Mindstorms Package User s Guide Ch Mindstorms Package User s Guide Version 0.9.5 Most engaging to learn math Simplest to program a robot Easiest to control multiple robots Integration Engineering Laboratory University of California,

More information

Lego MINDSTORMS NXT Problem Solving with Robots [PRSOCO601]

Lego MINDSTORMS NXT Problem Solving with Robots [PRSOCO601] Lego MINDSTORMS NXT Problem Solving with Robots [PRSOCO601] Thomas Devine http://noucamp thomas.devine@lyit.ie January 29, 2008 1 Contents 1 A Brief History of MINDSTORMS 4 2 Discovering the MINDSTORMS

More information

COMMAND BASED PROGRAMMING

COMMAND BASED PROGRAMMING COMMAND BASED PROGRAMMING Last Updated: 09-11-2016 Table of Contents Command based programming...4 What is Command based programming?...5 Creating a command based robot project in C++... 10 Installing

More information

Prototype Prolog API for Mindstorms NXT

Prototype Prolog API for Mindstorms NXT Prototype Prolog API for Mindstorms NXT Grzegorz J. Nalepa 1 Institute of Automatics, AGH University of Science and Technology, Al. Mickiewicza 30, 30-059 Kraków, Poland gjn@agh.edu.pl Abstract. The paper

More information

Part A: Monitoring the Rotational Sensors of the Motor

Part A: Monitoring the Rotational Sensors of the Motor LEGO MINDSTORMS NXT Lab 1 This lab session is an introduction to the use of motors and rotational sensors for the Lego Mindstorm NXT. The first few parts of this exercise will introduce the use of the

More information

Robotics: Science and Systems II

Robotics: Science and Systems II Robotics: Science and Systems II 6.189/2.994/16.401 September 7th, 2005 Last Semester Motor Control Visual Servoing Range Processing Planning Manipulation Lab Progression 1. Schematics: Layout and Components

More information

FTC Control Systems + Java The Gifted Gears

FTC Control Systems + Java The Gifted Gears FTC Control Systems + Java 101 Outline Control Systems REV Modern Robotics Phones and Phone Setup Programming Options and Setup Navigating Android Studios Java! OpModes Basics Actuators Teleop What Am

More information

Introduction to Lab 2

Introduction to Lab 2 Introduction to Lab 2 Programming in RTOS on LEGO Mindstorms Martin Stigge 15. September 2010 Martin Stigge Lab 2: LEGO 15. September 2010 1 / 20 Lab 2:

More information

COPYRIGHTED MATERIAL. Introducing LEGO CHAPTER. Did you get a box that looks like the one shown in Figure 1-1?

COPYRIGHTED MATERIAL. Introducing LEGO CHAPTER. Did you get a box that looks like the one shown in Figure 1-1? CHAPTER 1 Introducing LEGO MINDSTORMS EV3 Did you get a box that looks like the one shown in Figure 1-1? COPYRIGHTED MATERIAL Figure 1-1: The LEGO MINDSTORMS EV3 set, item number 31313 1 2 Exploring LEGO

More information

Activity Inputs and Outputs VEX

Activity Inputs and Outputs VEX Activity 3.1.1 Inputs and Outputs VEX Introduction Robots are similar to humans if you consider that both use inputs and outputs to sense and react to the world. Most humans use five senses to perceive

More information

2Control NXT FAQ For the latest version of this document please go to > support

2Control NXT FAQ For the latest version of this document please go to  > support 2Control NXT FAQ For the latest version of this document please go to www.2simple.com > support Common Questions Q: Can I connect 2Control to the NXT brick without using a USB cable? A: No, 2Control requires

More information

MaSH Environment nxt. Contents

MaSH Environment nxt. Contents MaSH Environment nxt Andrew Rock School of Information and Communication Technology Griffith University Nathan, Queensland, 4111, Australia a.rock@griffith.edu.au January 2, 2016 Contents 1 Purpose 3 2

More information

Hands-on Lab. Lego Programming BricxCC Basics

Hands-on Lab. Lego Programming BricxCC Basics Hands-on Lab Lego Programming BricxCC Basics This lab reviews the installation of BricxCC and introduces a C-like programming environment (called NXC) for the Lego NXT system. Specific concepts include:

More information

Activity Inputs and Outputs VEX

Activity Inputs and Outputs VEX Activity 3.1.1 Inputs and Outputs VEX Introduction Robots are similar to humans if you consider that both use inputs and outputs to sense and react to the world. Most humans use five senses to perceive

More information

Loops and Switches Pre-Quiz

Loops and Switches Pre-Quiz Loops and Switches Loops and Switches Pre-Quiz 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 an example of a program

More information

ME 3200 Mechatronics Laboratory FALL 2002 Lab Exercise 7: Ultrasonic Sensors

ME 3200 Mechatronics Laboratory FALL 2002 Lab Exercise 7: Ultrasonic Sensors ME 3200 Mechatronics Laboratory FALL 2002 Lab Exercise 7: Ultrasonic Sensors The objective of this lab is to provide you with the experience of using an ultrasonic sensor. Ultrasonic sensors, or sonar

More information

The Maze Runner. Alexander Kirillov

The Maze Runner. Alexander Kirillov The Maze Runner URL: http://sigmacamp.org/mazerunner E-mail address: shurik179@gmail.com Alexander Kirillov This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.

More information

Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher

Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher A digital system that students can program: create an algorithm accept user input store

More information