Designed to introduce students to programming, logical thinking, teamwork, and project-based learning.

Slides:



Advertisements
Similar presentations
Gears, Gears and More Gears
Advertisements

Teacher Professional Development Spring, 2002
Exception Handling – illustrated by Java mMIC-SFT November 2003 Anders P. Ravn Aalborg University.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Gears, Gears and More Gears
Robotics Invention System 2.0
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
Bridge and Rov Group 2 Mike, John, Savannah, Nick & V.
LEGO Robotics Lecture 1: Getting acquainted with your robotic environment.
Exceptions Three categories of errors: Syntax errors Runtime errors Logic errors Syntax errors: rules of the language have not been followed. Runtime error:
Engineering H193 - Team Project Gateway Engineering Education Coalition P. 1 Spring Quarter 2007 Individual Competition Week 8 Day 2.
Right Face Introductory Presentation. Opening Activity How can you use this to make a right turn program? This is your program from Full Speed Ahead to.
16-Aug-15 Java Puzzlers From the book Java Puzzlers by Joshua Bloch and Neal Gafter.
NASA SENSORS: Build A Sturdy Car/Rover Lynne Hehr, John Hehr, Cindy Cardwell, Mary Alice Mixon Center for Math and Science Education Arkansas NASA Educator.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
NXT Development Tutorial Part 2: Sensor/ Motor Collaboration NTHU CS Freshman Camp Shu-Ting Wang.
Why do robots need to move?
Intro to OOP with Java, C. Thomas Wu
Programming Progamz pls. Importance VERY IMPORTANT.
Introduction to Testing 1. Testing  testing code is a vital part of the development process  the goal of testing is to find defects in your code  Program.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Sound, Touch Sensor, and Motors. Wheeled Vehicles Using the Pilot class: –Constructor Pilot(float wheelDiameter, float trackWidth,Motor leftMotor, Motor.
WeDo Get Started With Me Ms. Clayton Technology Apps.
Exception Handling in JAVA. Introduction Exception is an abnormal condition that arises when executing a program. In the languages that do not support.
Gears, Gears and More Gears. What is a gear? A gear is a wheel with teeth that mesh together with other gears. Gears change the speed torque (rot. force)
Gears and Speed/Power.
ILM Proprietary and Confidential -
Robot Report Group 7. Outline Introduction Introduction Robot Construction Robot Construction Design Specifications Design Specifications Design Process.
NXT A computer controlled brick and the “brain” of your robot that controls the motors and sensors.
Mobile Robots Why do robots need to move?. What defines a robot? Sense – a robot has to take in information about its environment Plan – a robot has to.
JAVA COURSE LESSON2 BY OMPUTER ENGINEEING ASSOCIATION.
1. True or False: All these pieces are connector pegs. A. True B. False.
CSE 1341 Honors Professor Mark Fontenot Southern Methodist University Note Set 11.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Identifiers.
Software Construction and Evolution - CSSE 375 Making Method Calls Simpler Shawn and Steve Below – “Be the character!” The late acting teacher Lee Strasberg.
CreatingClasses-SlideShow-part31 Creating Classes part 3 Barb Ericson Georgia Institute of Technology Dec 2009.
Programming and Problem Solving With Java Copyright 1999, James M. Slack Exceptions Handling Exceptions with try and catch The finally-block The throws.
Belts and gears Consider 2 wheels of the same mass but different radius connected by a belt or chain Little left Wheel Choose Big right wheel II V at aV.
BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Team Work. Why we need team work Steps in Team Work 10 steps.
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
Science 801 Robotics The Final Project. Task Your team will create a robot that will complete a number of challenges as it moves through a series of tasks.
My first robot programming - Simple “Go” Young Joon Kim MSRDS First Beginner Course – STEP4.
Lecture 2: Object Oriented Programming Object Oriented Programming Java Lecture 2: Object Oriented Programming.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
Question of the Day completes starts  What word completes the 1 st word & starts the 2 nd one: DON???CAR.
Lesson 1: Motors and Sound Programming Solutions.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Exception and Exception Handling. Exception An abnormal event that is likely to happen during program is execution Computer could run out of memory Calling.
Throw, Throws & Try-Catch Statements Explanations and Pictures from: Reference:
Exceptions and Error Handling. Exceptions Errors that occur during program execution We should try to ‘gracefully’ deal with the error Not like this.
Beginning Chassis Build Season. Parts List Structure 2x20 Beam (2) 2x16 Beam (4) 2x10 Beam (2) Large Chassis Connector (20) 1x1 Connector Pin.
RoverBot Assembly The following pages show assembly plans for the RoverBot using the Consumer MindStorms or School Team Challenge Lego kit. Assemble the.
Georgia Institute of Technology More on Creating Classes Barb Ericson Georgia Institute of Technology June 2006.
Half Turns and Quarter Turns.
8/30/2004 RoverBot Assembly The following pages show assembly plans for the RoverBot using the Consumer MindStorms or School Team Challenge Lego kit. Assemble.
Small Parts Inventory NXT.
Gears, Gears and More Gears
Controlling YOUR ROBOT
Final Oral Report Name: Brian Flatley
Exercise 11.1 Write a code fragment that performs the same function as the statement below without using the crash method Toolbox.crash(amount < 0,
Lego Mindstorms Unit By Devin O’Brien
class PrintOnetoTen { public static void main(String args[]) {
Which way does the robot have to turn to get to the charger?
Gears, Gears and More Gears
Robotics Week 4 Functions and reusable code
Methods/Functions.
LEGO Mindstorms Robot and Java
Presentation transcript:

Designed to introduce students to programming, logical thinking, teamwork, and project-based learning

Choose your robot design from the following list: Hank Minerva Mushi Mushi 7 Trusty TankBot

1.Choose a partner to work together as a team. 2.Choose your robot design. 3.Establish team member roles. 4.Inventory Mind Storm tackle box parts placement. 5.Create your robot according to the design plan. Steps:

6.Examine Course Rules 7.Program Mind Storm Robot to run course. 8.Complete test run of course. 9.Finalize Mind Storm Robot programming.

Peg Connector (J)

Full Bushing 24 tooth gear wheel

2x8 plate with holes 1x4 Plate 2x4 plate w/holes

Gear Motor 2x2 brick 2x8 plate w/holes 24 tooth gear wheel

RCX Connector Pegs 1.5 Connection Pegs 1x8 brick

Rims Full Bushings 16 tooth gear wheel Connecting leads Caterpillar Belts

The key to programming your Robot is to determine how to solve the problem followed by writing down the logical steps to accomplish your goal.

import josx.platform.rcx.*; public class Robot { ///////////// fields ////////////// private Motor leftMotor = Motor.A; private Motor rightMotor = Motor.C; private int powerLevel = 7; ///////////// Constructor //////// /** Constructor take takes no * arguments */ public Robot() {} /** * Constructor that takes the left * motor and right motor left the left motor right the right motor */ public Robot(Motor left, Motor right) { leftMotor = left; rightMotor = right; }

Method to make the robot go forward for the passed amount of time (in milliseconds) public void forward(int numMillisecs) throws Exception { leftMotor.setPower(powerLevel); rightMotor.setPower(powerLevel); leftMotor.forward(); rightMotor.forward(); Thread.sleep(numMillisecs); leftMotor.flt(); rightMotor.flt(); }

Method to make the robot go backward for the passed amount of time (in milli- seconds) public void backward(int numMillisecs) throws Exception { leftMotor.setPower(powerLevel); rightMotor.setPower(powerLevel); leftMotor.backward(); rightMotor.backward(); Thread.sleep(numMillisecs); leftMotor.flt(); rightMotor.flt(); }

public void turnRight(int numMillisecs) throws Exception { leftMotor.setPower(powerLevel); leftMotor.forward(); rightMotor.stop(); Thread.sleep(numMillisecs); leftMotor.flt(); } Method to turn the robot to the right for the passed number of parm numMillisecs the number of milliseconds to turn

Method to spin the robot numMills the number of milliseconds public void spinRight(int numMills) throws Exception { leftMotor.setPower(powerLevel); leftMotor.forward(); rightMotor.setPower(powerLevel); rightMotor.backward(); Thread.sleep(numMills); rightMotor.flt(); leftMotor.flt(); }

Method to spin the robot numMills the number of milliseconds public void spinLeft(int numMills) throws Exception { rightMotor.setPower(powerLevel); rightMotor.forward(); leftMotor.setPower(powerLevel); leftMotor.backward(); Thread.sleep(numMills); rightMotor.flt(); leftMotor.flt(); }

public void turnLeft(int numMillisecs) throws Exception { rightMotor.setPower(powerLevel); rightMotor.forward(); leftMotor.stop(); Thread.sleep(numMillisecs); rightMotor.flt(); } Method to turn the robot to the left for the passed number of param numMillisecs the number of milliseconds

Method to zig- zag the robot turn left and then numMills the number milliseconds public void zigZag(int numMills) throws Exception { leftMotor.setPower(powerLevel); rightMotor.setPower(powerLevel); leftMotor.forward(); Thread.sleep(numMills); rightMotor.forward(); Thread.sleep(numMills); leftMotor.flt(); rightMotor.flt(); }

public static void main(String[] args) { try { Robot robot = new Robot(); robot.forward(3000); robot.spinLeft(3000); TextLCD.print("done"); } catch (Exception ex) { TextLCD.print ("error"); } }

Infra-Red receiver must face IR Tower