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

Size: px
Start display at page:

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

Transcription

1 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 collected. This guide is for use with the ROBOTC programming language. Getting Started: 1. To start the program, type the Main Task function followed by an opening brace. task main() Defining Variables: 2. Declare five integer variables as seen in the code below. Beside each variable, there are two slashes (//) followed by what that variable is representing. These mark a comment. Notice that comments appear in green when code is typed into ROBOTC. Note: A comment is not part of the code that the NXT Brick will execute, but it helps the programmer by allowing the addition of notes to describe what has been done. int nvalue; int mvalue; int aposition; int bcounter; int mspeed; // light value // sonar value // servo arm position // touch sensor ball counter // motor speed 3. Type the Wait function and set it to wait 50 milliseconds to allow the robot to initialize motors and sensors. wait1msec(50); 4. Type the servo position command to initialize the position of the servo. This must be set to a value between 0 and 255, representing a position between 0 and 180. This is the servo s full range of motion. servo[servo1] = 140; 5. Type in the initial count for the variable that counts how many balls the robot has picked up with its harvester, which is zero at the beginning of the program. bcounter = 0; 6. Type in the initial motor speed. 7. Type the Wait function and set it to wait one second while the servo motor gets into position. 163

2 Extensions 8. Add an infinite While Loop to make the containing code execute forever. while(true) 9. Set the defined variables to a value and display them to the screen. a. Set the nvalue variable to the value of the light sensor and the mvalue variable to the value of the ultrasonic sensor. b. Use the NXT write to screen command to put them on the screen. This write to screen command requires three pieces of information, called parameters, in order to write both text and a variable to the screen: i. The line number. ii. The text (in quotations) which includes a display variable caller. Note: In this case, %d is the display variable caller. In the place of %d, an integer variable is displayed on the screen. iii. The variable name. This information is inside the brackets beside the command, separated by commas. 10. Below the text that is written on the screen, display a message that says Searching..." Because there is no variable being displayed, only two parameters need to be sent to the function: the line number and the text. nxtdisplaycenteredtextline(4, "Searching..."); 11. Display the bcounter variable on the NXT screen. Use the NXT write to screen command to put them on the screen. nxtdisplaytextline(6, "Ball Count: %d", bcounter); 12. The next few lines of code will decrease the motor speed as the target is being approached. Add a conditional statement so that if the ultrasonic sensor value is greater than 40, the mspeed variable will be set to 30, but if it is equal to or less than 30, the mspeed variable will be set to 15. if(sensorvalue[sonarsensor] > 40) else mspeed = 15; 164

3 Line Follower Code: 13. Add the line-following code that was created in Line Follower Extension Part 3. if(sensorvalue[lightsensor] < 60) motor[motord] = mspeed; else motor[motore] = mspeed; Grab an Object: 14. Add a conditional statement to check if the robot is within 23 cm of the object it is picking up. If the robot is within 24 cm of the object, display Found! on the robot screen and stop the motors. Add a Wait function to pause for one second to give the motors time to stop before the next action is executed. if(sensorvalue[sonarsensor] < 23) nxtdisplaycenteredtextline(4, Found! ); 15. Add a Move Servo command to move servo1 from its current position at 140 to a higher position of 25, and add a Wait function to pause for one second so that the servo has time to get into the position. servo[servo1] = 25; 165

4 Extensions 16. Add a While Loop to continue displaying the value of the light sensor and the sonar sensor until the touch sensor has been pushed by the ball. If the touch sensor has been pressed, then the value of the touch sensor, at that moment, would be 1; otherwise, the value of the touch sensor will be zero. Therefore, the condition for the While Loop statement would be to check if the touch sensor value is equal to zero in order to display the value of the light sensor and the sonar sensor on the NXT screen. To display the light and sonar sensor values to the screen, copy and paste the code in Step 9. while(sensorvalue[touch] == 0) 17. When the touch sensor is pressed, the robot breaks out of the While Loop. Increment the ball counter variable, which is bcounter, by 1. bcounter = bcounter + 1; 18. Type the Wait function to make the program pause for one second. 19. Now that the robot has obtained the ball, the robot should back up. In order to set motore and motord in the reverse direction, use the Motor function and assign a negative motor power to each motor. motor[motore] = -25; motor[motord] = -25; 20. Type the Wait function to make the program pause for 0.5 second. wait1msec(500); 21. Next, stop both motors using the Motor function. 166

5 22. Add a For Loop, which makes the arm servo move from its current position at 25 to a lower position of 140, waiting 10 milliseconds between each movement. for(aposition = 25; aposition < 140; aposition++) servo[servo1] = aposition; wait10msec(1); 23. Type the Wait function and set it to wait one second. End the Program: 24. Type a closing brace to end the conditional statement in Step Type a closing brace to end the infinite While Loop in Step Type a closing brace to end the program. Completed Code: task main() int nvalue; int mvalue; int aposition; int bcounter; int mspeed; // light value // sonar value // servo arm position // Touch sensor ball counter // Motor Speed wait1msec(50); // The program waits 50 milliseconds to initialize the light sensor. servo[servo1] = 140; // Initial startup of harvester position bcounter = 0; 167

6 Extensions Completed Code (continued): // wait for arm and gripper to get to position while(true) // Infinite loop nxtdisplaycenteredtextline(4, "Searching..."); nxtdisplaytextline(6, "Ball Count: %d", bcounter); /// Decrease speed as we approach target. if(sensorvalue[sonarsensor] > 40) else mspeed = 15; //// Line following Here; if(sensorvalue[lightsensor] < 60) // If the Light Sensor reads a value less than 60: motor[motord] = mspeed; // Motor D is run at a mspeed power level. // Motor E is run at a 0 power level. else // If the Light Sensor reads a value greater than or equal to 50: motor[motore] = mspeed; // Motor E is run at a mspeed power level. // Motor D is run at a 0 power level. //// Sonar ranging here; Stop at target distance, position gripper and arm. if(sensorvalue[sonarsensor] < 23) // Target sense distance (centimeters) 168

7 Completed Code (continued): nxtdisplaycenteredtextline(4, "Found!"); // update display // Motor E is off // Motor D is off // Pause for 1 second servo[servo1] = 25; // Raise Harvester while(sensorvalue[touch] == 0) // Wait for touch sensor to be pushed to count ball. bcounter = bcounter + 1; // increment ball count; // Back up - reverse motor[motore] = -25; motor[motord] = -25; wait1msec(500); // Motor E // Motor D // Motor E // Motor D for (aposition = 25; aposition < 140; aposition++) servo[servo1] = aposition; // Lower Harvester wait10msec(1); // wait a second for arm to come down. 169

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

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

TETRIX Getting Started Guide FTC Extension. Programming Guide (ROBOTC ) Autonomous Programming 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

More information

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

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

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

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

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

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

Colin Harman and Jonathan Kim

Colin Harman and Jonathan Kim Colin Harman and Jonathan Kim 2-6-10 Getting RobotC 1. Go to robotc.net/robofest 2. Enter coach information including Robofestteam ID 3. The coach will get an email with a link to download RobotC(90-day

More information

Getting Started in RobotC. // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run

Getting Started in RobotC. // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run Getting Started in RobotC // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run Understand Motion Learning Objectives Motors: How they work and respond. Fuses: Understand why

More information

General Syntax. Operators. Variables. Arithmetic. Comparison. Assignment. Boolean. Types. Syntax int i; float j = 1.35; int k = (int) j;

General Syntax. Operators. Variables. Arithmetic. Comparison. Assignment. Boolean. Types. Syntax int i; float j = 1.35; int k = (int) j; General Syntax Statements are the basic building block of any C program. They can assign a value to a variable, or make a comparison, or make a function call. They must be terminated by a semicolon. Every

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

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

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

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

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

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

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

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

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

MS4SSA Robotics Module:

MS4SSA Robotics Module: MS4SSA Robotics Module: Programming and Sensors Brad Miller and Kim Hollan What are we doing today? Talk about why to program robots Learn about basic RobotC programming Learn how to make the robot move

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

B - Broken Track Page 1 of 8

B - Broken Track Page 1 of 8 B - Broken Track There's a gap in the track! We need to make our robot even more intelligent so it won't get stuck, and can find the track again on its own. 2017 https://www.hamiltonbuhl.com/teacher-resources

More information

Programming in ROBOTC ROBOTC Rules

Programming in ROBOTC ROBOTC Rules Programming in ROBOTC ROBOTC Rules In this lesson, you will learn the basic rules for writing ROBOTC programs. ROBOTC is a text-based programming language Commands to the robot are first written as text

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

Getting Started in RobotC. // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run

Getting Started in RobotC. // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run Getting Started in RobotC // Comment task main() motor[] {} wait1msec() ; = Header Code Compile Download Run Learning Objectives Explore Computer Programming using by controlling a virtual robot. Understand

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

Robotics with Lego EV3 + MS Makecode. Andrea Sterbini

Robotics with Lego EV3 + MS Makecode. Andrea Sterbini Robotics with Lego Andrea Sterbini sterbini@di.uniroma1.it Microsoft Makecode.com Many development systems supported (embedded/robotics/game) micro:bit Adafruit Minecraft Lego EV3 Cue Arcade Chibi chip

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

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

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

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

C Language Reference for ActivityBot. Driving the robot a specific distance or a specific amount of turn

C Language Reference for ActivityBot. Driving the robot a specific distance or a specific amount of turn Code for Driving ActivityBot C Language Reference for ActivityBot Jeffrey La Favre - November 4, 2015 There are two types of functions for driving the robot. The first kind specifies a specific distance

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

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

RCX Tutorial. Commands Sensor Watchers Stack Controllers My Commands

RCX Tutorial. Commands Sensor Watchers Stack Controllers My Commands RCX Tutorial Commands Sensor Watchers Stack Controllers My Commands The following is a list of commands available to you for programming the robot (See advanced below) On Turns motors (connected to ports

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

Advanced Activities - Information and Ideas

Advanced Activities - Information and Ideas Advanced Activities - Information and Ideas Congratulations! You successfully created and controlled the robotic chameleon using the program developed for the chameleon project. Here you'll learn how you

More information

Robbie also includes a simple sound system, which can generate frequencies in the range 60Hz to 30,000Hz.

Robbie also includes a simple sound system, which can generate frequencies in the range 60Hz to 30,000Hz. Robbie the Robot Robbie is the entry-level model in the RUR line, offering simple mobility and a single claw for bing and carrying objects that weigh up to 10 kg. Robbie may be controlled by programs written

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

RobotC. Remote Control

RobotC. Remote Control RobotC Remote Control Learning Objectives: Focusing on Virtual World with Physical Examples Understand Real-Time Joystick Mapping Understand how to use timers Understand how to incorporate buttons into

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

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

Chapter 2: Functions and Control Structures

Chapter 2: Functions and Control Structures Chapter 2: Functions and Control Structures TRUE/FALSE 1. A function definition contains the lines of code that make up a function. T PTS: 1 REF: 75 2. Functions are placed within parentheses that follow

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

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

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

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

Application Note 44. Controlling a Lynx6 Robotic Arm. Introduction

Application Note 44. Controlling a Lynx6 Robotic Arm. Introduction Introduction Application Note 44 Controlling a Lynx6 Robotic Arm This application note describes the control of a Lynx6 robotic arm (www.lynxmotion.com) using an embedded microcontroller and the um-fpu

More information

Project Planning. Module 4: Practice Exercises. Academic Services Unit PREPARED BY. August 2012

Project Planning. Module 4: Practice Exercises. Academic Services Unit PREPARED BY. August 2012 Project Planning PREPARED BY Academic Services Unit August 2012 Applied Technology High Schools, 2012 Module Objectives Upon successful completion of this module, students should be able to: 1. Select

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

C Programming with Mini Sumo Robots

C Programming with Mini Sumo Robots C Programming with Mini Sumo Robots Editing and Compiling a Program -Open Programmer s Notepad. This will bring up a tool for editing and compiling your program: -Start Menu -> Programmers Notepad -> Programmers

More information

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 23 Introduction to Arduino- II Hi. Now, we will continue

More information

Procedure: Determine the polarity of the LED. Use the following image to help:

Procedure: Determine the polarity of the LED. Use the following image to help: Section 2: Lab Activity Section 2.1 Getting started: LED Blink Purpose: To understand how to upload a program to the Arduino and to understand the function of each line of code in a simple program. This

More information

Wireless Networked Autonomous Mobile Robot with HAWK Animated Head System. Sputnik 3. Quick Start Guide

Wireless Networked Autonomous Mobile Robot with HAWK Animated Head System. Sputnik 3. Quick Start Guide Wireless Networked Autonomous Mobile Robot with HAWK Animated Head System Sputnik 3 Quick Start Guide Copyright 2009, WARNINGS Do NOT power on the robot before reading and fully understanding the operation

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

(Refer Slide Time: 00:26)

(Refer Slide Time: 00:26) Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute Technology, Madras Module 07 Lecture 07 Contents Repetitive statements

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

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

create.tokylabs.com has a large number of blocks. They are divided into the following categories:

create.tokylabs.com has a large number of blocks. They are divided into the following categories: BLOCKS INDEX INDEX OVERVIEW Control Logic Variable Number Input Output Display IOT create.tokylabs.com has a large number of blocks. They are divided into the following categories: CONTROL The Control

More information

The Maze Runner Zumo version. Alexander Kirillov

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

More information

Repetition Structures

Repetition Structures Repetition Structures Chapter 5 Fall 2016, CSUS Introduction to Repetition Structures Chapter 5.1 1 Introduction to Repetition Structures A repetition structure causes a statement or set of statements

More information

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution.

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution. Repetition Structures Introduction to Repetition Structures Chapter 5 Spring 2016, CSUS Chapter 5.1 Introduction to Repetition Structures The Problems with Duplicate Code A repetition structure causes

More information

Advanced Computer Programming

Advanced Computer Programming Hazırlayan Yard. Doç. Dr. Mehmet Fidan WHILE, DO-WHILE and FOR LOOPS Loops are used for executing code blocks repeatedly. Decision of continuing loop is given by boolean expression. If boolean expression

More information

Robotic Systems ECE 401RB Fall 2006

Robotic Systems ECE 401RB Fall 2006 The following notes are from: Robotic Systems ECE 401RB Fall 2006 Lecture 15: Processors Part 3 Chapter 14, G. McComb, and M. Predko, Robot Builder's Bonanza, Third Edition, Mc- Graw Hill, 2006. I. Peripherals

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

Activity While Loops and If-Else Structures VEX

Activity While Loops and If-Else Structures VEX Activity 3.1.4 While Loops and If-Else Structures VEX Introduction One of the powerful attributes of a computer program is its ability to make decisions. Although it can be argued that only humans are

More information

Computer Programming I - Unit 5 Lecture page 1 of 14

Computer Programming I - Unit 5 Lecture page 1 of 14 page 1 of 14 I. The while Statement while, for, do Loops Note: Loop - a control structure that causes a sequence of statement(s) to be executed repeatedly. The while statement is one of three looping statements

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

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

Arduino Programming and Interfacing

Arduino Programming and Interfacing Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and

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

what s new with intera TM 3.2 and release notes

what s new with intera TM 3.2 and release notes what s new with intera TM 3.2 and release notes Safety Statement Complying with ISO 10218-2 requires performing a risk assessment of each application to determine the needed safety performance and safeguarding.

More information

Embedded Robotics. Software Development & Education Center

Embedded Robotics. Software Development & Education Center Software Development & Education Center Embedded Robotics Robotics Development with 8051 µc INTRODUCTION TO ROBOTICS Types of robots Legged robots Mobile robots Autonomous robots Manual robots Robotic

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

COMP 202 Recursion. CONTENTS: Recursion. COMP Recursion 1

COMP 202 Recursion. CONTENTS: Recursion. COMP Recursion 1 COMP 202 Recursion CONTENTS: Recursion COMP 202 - Recursion 1 Recursive Thinking A recursive definition is one which uses the word or concept being defined in the definition itself COMP 202 - Recursion

More information

C++ Programming Applied to Robotics, Mark Aull Lesson 2: Intro to Visual Studio, debugger Intro to C++, variables, conditionals, loops, strings

C++ Programming Applied to Robotics, Mark Aull Lesson 2: Intro to Visual Studio, debugger Intro to C++, variables, conditionals, loops, strings C++ Programming Applied to Robotics, Mark Aull Lesson 2: Intro to Visual Studio, debugger Intro to C++, variables, conditionals, loops, strings As in the first lesson, open visual studio, start a new empty

More information

All copyrights reserved - KV NAD, Aluva. Dinesh Kumar Ram PGT(CS) KV NAD Aluva

All copyrights reserved - KV NAD, Aluva. Dinesh Kumar Ram PGT(CS) KV NAD Aluva All copyrights reserved - KV NAD, Aluva Dinesh Kumar Ram PGT(CS) KV NAD Aluva Overview Looping Introduction While loops Syntax Examples Points to Observe Infinite Loops Examples using while loops do..

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

Decision Making and Loops

Decision Making and Loops Decision Making and Loops Goals of this section Continue looking at decision structures - switch control structures -if-else-if control structures Introduce looping -while loop -do-while loop -simple for

More information

C++ Programming Lecture 7 Control Structure I (Repetition) Part I

C++ Programming Lecture 7 Control Structure I (Repetition) Part I C++ Programming Lecture 7 Control Structure I (Repetition) Part I By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department while Repetition Structure I Repetition structure Programmer

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

Introduction. C provides two styles of flow control:

Introduction. C provides two styles of flow control: Introduction C provides two styles of flow control: Branching Looping Branching is deciding what actions to take and looping is deciding how many times to take a certain action. Branching constructs: if

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

Module 1 : Introduction to robotics. Lecture 3 : Industrial Manipulators & AGVs. Objectives. History of robots : Main bodies and wrists

Module 1 : Introduction to robotics. Lecture 3 : Industrial Manipulators & AGVs. Objectives. History of robots : Main bodies and wrists Module 1 : Introduction to robotics Lecture 3 : Industrial Manipulators & AGVs Objectives In this course you will learn the following History of development of robots. Main body types of manipulators with

More information

If the ball goes off either the right or left edge, turn the ball around. If x is greater than width or if x is less than zero, reverse speed.

If the ball goes off either the right or left edge, turn the ball around. If x is greater than width or if x is less than zero, reverse speed. Conditionals 75 Reversing the Polarity of a Number When we want to reverse the polarity of a number, we mean that we want a positive number to become negative and a negative number to become positive.

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT OF MATHS, MJ COLLEGE T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,

More information

Module Testing. Improve FTC Hardware/Software Cooperation Presented by: Team ToborTech

Module Testing. Improve FTC Hardware/Software Cooperation Presented by: Team ToborTech Module Testing Improve FTC Hardware/Software Cooperation Presented by: Team ToborTech Team 8610 Tobortech Veteran team, this is our 5th season Went to worlds last year So we ll be excited to share some

More information

Final Report. [Establish User Requirements] User must be able to press the run button on the robot, as well as use the NQC software.

Final Report. [Establish User Requirements] User must be able to press the run button on the robot, as well as use the NQC software. Team 3 David Letteer Greg Broadwell Kathryn della Porta BE 1200 Basic Engineering Final Report Final Report [Clarify Objectives] Design, build, and program a robot that will acknowledge the presence of

More information

YOLOP Language Reference Manual

YOLOP Language Reference Manual YOLOP Language Reference Manual Sasha McIntosh, Jonathan Liu & Lisa Li sam2270, jl3516 and ll2768 1. Introduction YOLOP (Your Octothorpean Language for Optical Processing) is an image manipulation language

More information

School of Computer Science and Engineering The Uno cial Guide to Lego Mindstorms Robots

School of Computer Science and Engineering The Uno cial Guide to Lego Mindstorms Robots Acknowledgments Programming robots with NQC This presentation borrows material from two sources: A tutorial on NQC by Mark Overmars, entitled Programming Lego Robots using NQC, Eric Martin which is available

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

The mathematical model of Brownian motion has several real-world applications. An often quoted example is stock market fluctuations.

The mathematical model of Brownian motion has several real-world applications. An often quoted example is stock market fluctuations. CISC 1110 (Science Section) Brooklyn College Professor Langsam Assignment #5 - Brownian motion 1 (AKA The Drunken Robot) Brownian motion (named after the Scottish botanist Robert Brown) is the seemingly

More information

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Dr. Marenglen Biba (C) 2010 Pearson Education, Inc. All for repetition statement do while repetition statement switch multiple-selection statement break statement continue statement Logical

More information

Creating Java Programs with Greenfoot

Creating Java Programs with Greenfoot Creating Java Programs with Greenfoot Using Loops, Variables, and Strings 1 Copyright 2012, Oracle and/or its affiliates. All rights Overview This lesson covers the following topics: Create a while loop

More information

If you note any errors, typos, etc. with this manual or our software libraries, let us know at

If you note any errors, typos, etc. with this manual or our software libraries, let us know at Oregon State University Robotics Club ORK 2011 Programming Guide Version 1.0 Updated: 10/28/2011 Note: Check back for more revisions and updates soon! If you note any errors, typos, etc. with this manual

More information