Programming.

Slides:



Advertisements
Similar presentations
Intermediate Robotics Getting to the Next Level Guiding Question: How might I move the robot consistently, accurately, and predictably? –Review basics.
Advertisements

08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
RobotC Programming for LEGO Mindstorms NXT Carnegie Mellon Dacta Lego Timothy Friez Miha Štajdohar SOURCES:
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System One-Way Communication.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Robotics Enrichment class Mr. Bosworth. Goals of Class Learn how to build a basic robot that performs various functions Learn how to program robot to.
Loops and Switches. 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.
What Is a Program?. What Is a Program? Pre-Quiz 1. What is a program? 2. What is an algorithm? Give an example. 2.
Computer Science Lego Robotics Lab 07 Page 51. CS Lego Robotics Lab 07 (Updated ) Objectives: 1.Extend the Lego robot with three sensors. 2.Program.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
Navigating a Maze. Navigating a Maze Pre-Quiz 2 1. What is the difference between a program and an algorithm? 2. About how many inches does an NXT move.
Getting Started! Lego Mindstorms Program NXT 2.0.
Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
Minds and Computers 3.1 Preview Spin left motor Spin right motor Wait until the motors have spun two rotations Stop left motor Stop right motor What five.
GIRLS Robotics Objective of today Review last Saturday’s Lesson Create our 1 st robot.
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Title Slide Progress Report Name. Goal Goal Statement – ex. design/create/fabricate … - should be clear and short Needs/Problems – clear and short Space.
Find the Mindstorms Icon on the computer.. To start a new program click go.
LEGO® MINDSTORMS® NXT Move Block.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Vex Robotics Program four: reversing and turning.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Mindstorm NXT-G Introduction Towson University Robotics.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Lego League. What is the Lego League? What we will be doing for the next few weeks The AIM of the next few weeks is to gain knowledge into programming,
Forward Until Near Stop when near a wall.
Bot Shop Jane Taylor Dee Wallace Robot C For Vex.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
Robotics Starter: Quiz Review
How Do You Make a Program Wait?
NXT Mindstorms Kit Programming
LEGO MINDSTORMS PROGRAMMING
NXT Kit Overview U1C3.
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
Mindstorm Robots 4th Grade Lesson 1.
Mindstorms EV3 Programming
What Is a Program? What Is a Program? lesson > TeachEngineering.org
Introduction To Programming with LEGO NXT 2
Introductory Presentation
Navigating a Maze.
BEGINNER PROGRAMMING LESSON
Introduction to NXT.
Introductory Presentation
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Module F: Presentation Understanding Robot Fundamentals
Forward Until Touch Robot goes forward until it hits a wall.
Controlling your quadcopter
BEGINNER PROGRAMMING LESSON
Holyoke Codes LEGO ROBOTICS
Storing Values as Variables
INTERMEDIATE PROGRAMMING LESSON
Using a Drawing Robot to Make Angles (Using Rotations)
BEGINNER PROGRAMMING LESSON
Using Waits, Loops and Switches
RobotC Programming for LEGO Mindstorms NXT
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Using a Drawing Robot to Make Angles (Using Rotations)
Lego MINDSTORMS EV3.
U3L4 Using Simple Commands
Controlling your quadcopter
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Programming

Give Instructions A robot will follow the instructions exactly as you give it. Such as go forward and stop. The robot will not go forward, but rather stop, since there was no time interval given for how long to go forward. You must give it a time interval. So that it becomes go forward for 2 seconds and stop.

Programming Structure Plan Pseudo Code – Fake Code Think from a robot’s point of you. It cannot figure things out, it needs to be told exactly every little detail what to do. Go forward 10 inches Turn right 90 Degrees Think about how it knows if it moved or turned a certain amount?

Turn Pseudo Code into Real Code We will be programming the NXT using LEGO MindStorms which uses a Block metaphor for programming the NXT nxtOSEK can be used to program the NXT with C/C++ There is also More details

Display Display Images. You can use the Tools, Image Editor to draw your own images. Text Drawing Data Hub

Wait Command

Animation Use the Display & Wait Commands to make things move or change on the display.

Motors Direction Steering Power – Important for moving objects with the robot. Duration Braking vs Coasting

Commenting Use the comment tool, to add comments to your code. Comments help other you or programmers read your code. For your assignments, you MUST place some general comments to explain what the program does. As the term goes on and the projects become more complex, you will be asked to give more detailed comments at various sections of your programs.

Example