What you asked me to teach…

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
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 Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
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)‏
Intro to Robots Robots are Everywhere. Intro to Robots Various robots in use today lawnmower pet baby seal for convalescents gutter cleaner home security.
CSC Intro. to Computing Lecture 17: Even More Robotran!
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.
Learning to Program with Python Sec 9-1 Web Design.
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.
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.
Web Design. How to set up the robot How to link to robot How not to break my robot Sec Getting Started How to make it move How to control speed.
Image Processing & Perception Sec 9-11 Web Design.
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.
Getting Started Sec 9-2 Web Design. Objectives The student will: Know to establish a Bluetooth link to the Scribbler robot. Know to start IDLE (the Python.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Agent P, I have been hearing some rumours about a Python Turtle.
Week 11. Picture Taking Functions  takePicture(“color” | “gray”) Returns a picture object  Show(picture object) Will show the picture that was taken.
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.
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.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
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.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
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.
My first robot programming - Simple “Go” Young Joon Kim MSRDS First Beginner Course – STEP4.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
First Meeting. Meeting Guidance  Respect the teachers and volunteers.  Respect other students and share equally.  Be kind to the laptops and the robots!
Vex Robotics program three: using motors and sensors together.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Learning to Program with Python Sec 9-1 Web Design.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
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.
LEGO Robotics Workshop
Create a Halloween Computer Game in Scratch
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Intro to the Robotics Introducing the IC Discuss.
In the beginning… software
Understanding Communication with a Robot? Activity (60 minutes)
Learning to Program with Python
Topics Introduction to Repetition Structures
Image Processing & Perception
Mindstorm Robots 4th Grade Lesson 1.
Module 2 Controlling a Lego EV3 Robot
Getting Started Sec 9-2 Web Design.
Topics Introduction to Repetition Structures
Agent P, I have been hearing some rumours about a Python Turtle.
Loopy Motion Control.
Sasha Popov November 16, 2018 iRobot Create.
Flash animation For beginners.
Graph Paper Programming
Controlling YOUR ROBOT
Moving Sprites in Scratch
Python 19 Mr. Husch.
My first robot programming - Simple “GoTo”
Robotics Week 4 Functions and reusable code
Topics Introduction to Repetition Structures
My first robot programming - Simple “Go”
Creating a Simple Game in Scratch
Getting started with LEGO EV3 Mindstorms software
My first robot programming - Simple “GoTo”
Presentation transcript:

What you asked me to teach… How to link the robot and the computer (Bluetooth) How to turn on and off How to connect the adaptor Fluke card connection Sec 9-2 - Getting Started How to make the robot move How to turn How to stop Control the speed Sec 9-3 - Scribbler movements How to create functions and methods How to program in Python Sec 9-4 - Simple Functions (names) Sec 9-5 - Functions with Parameters and Return Values Sec 9-6 - Creating and Using Modules Sec 9-7 - Simple Python Loops How to use the sensors Sec 9-8 - Variables

What you asked me to teach… How to take a picture Sec 9-9 - Taking Pictures How to know when you lost target How to find colors How to sense when you hit something Sec 9-10 - Making Decisions in Python Sec 9-11 - Image Processing and Perception

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: motors(0,0) motors(1, 0.5) motors(1, -0.5) motors(.25, -.25)

Scribbler Movements Myro also provides built in functions for the most common movements: forward(speed) backward(speed) turnLeft(speed) turnRight(speed) Stop()

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

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

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… Open a new window: Type in the commands Save the file (add a .py) 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.

First Assignment 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 21-26 in Learning Computing with Robots.