Scribbler Movements Sec 9-3 Web Design. Objectives The student will: Understand the basic movement commands for the Scribbler Know how to create and execute.

Slides:



Advertisements
Similar presentations
Full Speed Ahead Introductory Presentation. Opening Activity Choose one of the objects to the right and in ten or more steps explain how it goes from.
Advertisements

Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Final Project Web Design. Final Project Your robot will be placed in a room with the red cone. Your robot will need to find the cone in the room and run.
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
Super Logo. Key Instructions Pendown penup Forward 50 ( this number can change) Right 90 ( this number can change as well) Now try and draw a Early finishers,
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
CS 1 with Robots Robot Sensors & Actuators Institute for Personal Robots in Education (IPRE)‏
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Intro to Robots Robots are Everywhere. Intro to Robots Various robots in use today lawnmower pet baby seal for convalescents gutter cleaner home security.
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.
Lecture 3. Review (What is Class and Object ?) The world of JAVA contains objects The world of JAVA.
CS 1 with Robots IDLE and Myro Institute for Personal Robots in Education (IPRE)‏
Intro to Robots Lab 2. Intro to Robots Defining Functions: Define a function and watch its behaviour A useful function is wait(SECONDS) that causes the.
Intro to Robots Into to Robots: Lab #1. Intro to Robots The Robot. Your robot should look like this: Scribbler: Your robot. You can download programs.
RoboMind A first impression of programming with RoboMind Arvid Halma, University of Amsterdam.
How to turn on the robot How to start Bluetooth How to connect to robot How to initialize the robot How to not break the robot Sec Getting Started.
StarLogoTNG Treasure Hunt Game Unit Lesson 1: Basic Movement.
Simple Python Loops Sec 9-7 Web Design.
Taking Pictures Sec 9-9 Web Design. Objectives The student will: Know how command the scribbler robot to take a picture. Know how to display the picture.
SuperCorners. Problem The Corners sample robot has a simple strategy: first, move into a corner of the arena, and second sweep the gun back and forth.
Image Processing & Perception Sec 9-11 Web Design.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Twyla and Jordan.  Light over black line  Runs roverbot.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Agent P, I have been hearing some rumours about a Python Turtle.
StarLogoTNG 101 Treasure Hunt Game Unit Lesson 2: Keyboard Controls.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
How to link the robot and the computer (Bluetooth) How to turn on and off How to connect the adaptor Fluke card connection Sec Getting Started How.
Section 1 Introduction National 4/5 Scratch Course.
Barclays Robot Challenge Learn how to Program Robots.
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.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Flash animation For beginners. homework Your homework is over two weeks so please write in each week of your planner for the next two weeks For homework.
Vex Robotics Program four: reversing and turning.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Rescue Robot Day 2 Exploring Computer Science Lesson 6-11.
1- How to connect the robot to the pc Sec Getting Started 3- How to move the robot Sec Scribbler movements 4- How to make a turn 11- How to.
This is what we want to create Add component and fix in place Add component and make it spin (Get propeller from the CD or use skills from previous tutorials.
My first robot programming - Simple “Go” Young Joon Kim MSRDS First Beginner Course – STEP4.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
First Meeting. Meeting Guidance  Respect the teachers and volunteers.  Respect other students and share equally.  Be kind to the laptops and the robots!
Creating and Using Modules Sec 9-6 Web Design. Objectives The student will: Know how to create and save a module in Python Know how to include your modules.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
This is what we want to produce Import sketch dimensions Label angles Set the scale Add linear dimensions.
The “Board of Education” 1 Three-position switch 0 = OFF 1 = ON / wheels OFF 2 = ON / wheels ON breadboard (for building circuits) electrical power (V.
Web Design. How to link the robot How to turn on the robot Sec Getting Started What is python Programming in python How to move the robot How to.
What you asked me to teach…
Topics Introduction to Repetition Structures
Mindstorm Robots 4th Grade Lesson 1.
Module 2 Controlling a Lego EV3 Robot
Introductory Presentation
Agent P, I have been hearing some rumours about a Python Turtle.
Loopy Motion Control.
Flash animation For beginners.
Controlling YOUR ROBOT
LESSON 03 Turning In Place. LESSON 03 Turning In Place.
Moving Sprites in Scratch
Which way does the robot have to turn to get to the charger?
My first robot programming - Simple “GoTo”
My first robot programming - Simple “Go”
Exploring Computer Science Lesson 6-11
Getting started with LEGO EV3 Mindstorms software
My first robot programming - Simple “GoTo”
My first robot programming - Simple “GoFor”
Presentation transcript:

Scribbler Movements Sec 9-3 Web Design

Objectives The student will: Understand the basic movement commands for the Scribbler Know how to create and execute a series of commands

Scribbler Movements If you look at the scribbler from the bottom you will notice that it has 3 wheels. – The small wheel is for support only – The large wheels are motorized. Each wheel has it own motor. – You can control each motor individually. motors( Left, Right) Left and Right are in ranges from -1.0 to 1.0 Negative numbers turn the motor backward 1.0 is the max speed of the motor. Think of the numbers as % of total speed

Scribbler Movements - motors() Examples: – motors(1.0, 1.0) – move forward – motors(-1.0, -1.0) - move backward – motors(1.0, 0) – tight circle to the right – motors(1.0, -1.0) – spin (turn) to the right Note the action will continue until another command (i.e. stop() ) is issued.

Scribbler Movements - motors() What do think will happen with the following commands: 1.motors(0,0) 2.motors(1, 0.5) 3.motors(1, -0.5) 4.motors(.25, -.25)

Scribbler Movements Myro also provides built in functions for the most common movements: 1.forward(speed) 2.backward(speed) 3.turnLeft(speed) 4.turnRight(speed) 5.Stop()

Scribbler Movements Another version of the commands accepts a second argument (parameter) which is the amount of time in seconds. 1.forward(SPEED, SECONDS) 2.backward(SPEED, SECONDS) 3.turnLeft(SPEED, SECONDS) 4.turnRight(SPEED, SECONDS)

Draw a Square forward(1, 1) turnLeft(1,.29) forward(1, 1) turnLeft(1,.29) forward(1, 1) turnLeft(1,.29) forward(1, 1) turnLeft(1,.29) There is no way to tell the robot to move 5 feet or to turn right 90 o For Bucky.29 works the best for the turn but that might not be right for your robot.

Translate and Rotate translate(speed) moves the robot forward or back. rotate(speed) turns the robot left. move(TRANSLATE_SPEED, ROTATE_SPEED) will perform a translate and rotate at the same time. The result will be a circle.

Executing a Series of Commands If you would like to type a series of commands and have them executed all at once then you can… 1.Open a new window: 2.Type in the commands 3.Save the file 4.Run the module:

IDLE Tips – Command History You can repeat a previous command by using IDLE's command history feature: – ALT‐p retrieves previous command – ALT‐n retrieves next – You can also click your cursor on any previous command and press ALT‐ENTER to repeat that command.

Summary Many different ways to move your robot. – motors(), forward(), backward(), turnLeft(), turnRight(), move(), stop(), etc. You can type in a series of commands, save them and then have the IDLE shell execute those commands.

Rest of Today Experiment with your robot to make a octogon: Make the side a movement of 0.5 seconds (keep the octagon small). The robot should end up roughly where it started and facing the same direction as when it started. Once you have the commands that make a octagon, show it to me. Read pages in Learning Computing with Robots.