Sphero Lightning Lab Cheat Sheet

Similar documents
EV3 Programming Workshop for FLL Coaches

Study Guide and Review - Chapter 10

Study Guide and Review - Chapter 10

An object in 3D space

Marker Based Localization of a Quadrotor. Akshat Agarwal & Siddharth Tanwar

9 Degrees of Freedom Inertial Measurement Unit with AHRS [RKI-1430]

LME Software Block Quick Reference 1. Common Palette

Product information. Hi-Tech Electronics Pte Ltd

Learning Objectives. Math Prerequisites. Technology Prerequisites. Materials. Math Objectives. Technology Objectives

Example 1: Give the coordinates of the points on the graph.

Part A: Monitoring the Rotational Sensors of the Motor

Unit 6 Quadratic Functions

Position Analysis

How do you roll? Fig. 1 - Capstone screen showing graph areas and menus

Collaboration is encouraged among small groups (e.g., 2-3 students).

ArtecRobo Bluetooth Controller User Guide. Published 2015/04/01 Revised 2017/01/16

Image Composition System Using Multiple Mobile Robot Cameras

1 in = 25.4 mm 1 m = ft g = 9.81 m/s 2

Camera Drones Lecture 2 Control and Sensors

Navigational Aids 1 st Semester/2007/TF 7:30 PM -9:00 PM

INSPIRE 1 Release Notes

2.Simplification & Approximation

Sphero. Draw your name using the Sphero Robot.

Projectile Trajectory Scenarios

This was written by a designer of inertial guidance machines, & is correct. **********************************************************************

Program your face off

Lab 4 Projectile Motion

Lesson 1: Arithmetic Review

Software Nodes Card. If the value satisfies the condition, the node will output yes ; otherwise, it will output no.

Mini-Lesson 1. Section 1.1: Order of Operations PEMDAS

AA Simulation: Firing Range

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

ITP 342 Mobile App Dev. Accelerometer Gyroscope

This overview summarizes topics described in detail later in this chapter.

Outline Sensors. EE Sensors. H.I. Bozma. Electric Electronic Engineering Bogazici University. December 13, 2017

Description. 2.8 Robot Motion. Floor-mounting. Dimensions apply to IRB 6400/ Shelf-mounting

Studuino Programming Environment Manual

Evaluating the Performance of a Vehicle Pose Measurement System

Rev Name Date. . Round-off error is the answer to the question How wrong is the rounded answer?

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s

Solving Equations with Inverse Operations

Exam in DD2426 Robotics and Autonomous Systems

Studuino Block Programming Environment Guide

Figure 2.1: High level diagram of system.

E80. Experimental Engineering. Lecture 9 Inertial Measurement

CAMERA GIMBAL PERFORMANCE IMPROVEMENT WITH SPINNING-MASS MECHANICAL GYROSCOPES

Studuino Programming Environment Manual

CS184: Using Quaternions to Represent Rotation

Rational Numbers on the Coordinate Plane. 6.NS.C.6c

BCC Particle System Generator

Summer Packet 7 th into 8 th grade. Name. Integer Operations = 2. (-7)(6)(-4) = = = = 6.

Lesson 18 Automatic door

Robotics II. Module 2: Application of Data Programming Blocks

Inspire 2 Release Notes

CS283: Robotics Fall 2016: Sensors

A Simple Introduction to Omni Roller Robots (3rd April 2015)

Estimation of Altitude and Vertical Velocity for Multirotor Aerial Vehicle using Kalman Filter

Aircraft Smooth Motion Controls with Intel Perceptual Computing SDK. Cédric Andreolli - Intel

TABLE OF CONTENTS. Page 2 35

PreCalculus Unit 1: Unit Circle Trig Quiz Review (Day 9)

Lab 3: Acceleration of Gravity

Lab 1: Introductory Project to Breadware

To Measure a Constant Velocity. Enter.

DYNAMIC POSITIONING CONFERENCE September 16-17, Sensors

Chapter 4 Section 2 Operations on Decimals

Robotics 2c. The Programming Interface

micro:bit Lesson 1. Using the Built-in Sensors

Read, write compare and order numbers beyond 1000 in numerals and words Read Roman numerals to 100 and understand how they have changed through time

3-axis Gyro & Flight Stabilizer for fixed-wing

sin30 = sin60 = cos30 = cos60 = tan30 = tan60 =

Autonomous Navigation for Flying Robots

Plotting Points. By Francine Wolfe Professor Susan Rodger Duke University June 2010

Be able to properly use the following terminology:

A triangle that has three acute angles Example:

Motion Graphs. Plotting position against time can tell you a lot about motion. Let's look at the axes:

Programming-By-Example Gesture Recognition Kevin Gabayan, Steven Lansel December 15, 2006

I can use number bonds and matching subtraction facts up to 20.

Year 6 programme of study

INSPIRE 1 Release Notes

Section A Arithmetic ( 5) Exercise A

Ronin Release Notes. What s New?

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

Arduino Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol

BCC 3D Extruded Image Shatter Filter

Math 8 SOL Review

SH-2 Reference Manual

DE2.3 Electronics 2. Lab Experiment 3: IMU and OLED Display

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a.

Tutorial for Response Spectrum Analysis using CAEPIPE

Name Period. (b) Now measure the distances from each student to the starting point. Write those 3 distances here. (diagonal part) R measured =

Sphero Shell Commands. document revision 1.0

Motion I. Goals and Introduction

Simplified Orientation Determination in Ski Jumping using Inertial Sensor Data

Programming with the NXT using the touch and ultrasonic sensors. To be used with the activity of the How do Human Sensors Work?

Preliminary Design Report January 28 th, 2012

Year 7 Set 1 : Unit 1 : Number 1. Learning Objectives: Level 5

= = = -1

SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing

ME 105 Homework 4 A Movie Stunt Simulation with Graphical User Interface

MEAM 620: HW 1. Sachin Chitta Assigned: January 10, 2007 Due: January 22, January 10, 2007

Transcription:

Actions Tool Description Variables Ranges Roll Combines heading, speed and time variables to make the robot roll. Duration Speed Heading (0 to 999999 seconds) (degrees 0-359) Set Speed Sets the speed of the robot on a scale from 0 to 255. Each robot translates the value differently into a real world speed. For example, Ollie is almost three times faster than Sphero! Speed Set Heading Sets the direction at which the robot rolls. 0 degrees heading is straight forward, 90 degrees is a right turn, 270 is a left turn, and 180 degrees is straight backwards. Heading (degrees 0-359) Stop Sets the speed to zero on the robot and halts all movement. The rest of the program continues to run as normal. Stabilization Turns robot stabilization system on or off for a duration. Stabilization is normally on and enables the robot s upright position. When it is turned off the robot will not remain upright, enabling unstable behaviors like jumping or wobbling. Boolean (on or off)

Tool Description Variables Ranges Raw Motor Controls the power of the left and right motors independently on a scale from 0 to 4095. If you set both motors to full power the robot will jump off the ground. Robot stabilization is disabled for the duration of this unpredictable movement is possible. Left Motor Power Right Motor Power Duration (-4095 to 4095) (-4095 to 4095) (0 to 999999 seconds) Spin Spins the robot for a given number of degrees over time. 360 degrees is a single revolution. Degrees Duration (-999999 to 999999) (0 to 999999 seconds) Set Color Changes the color of the main LED lights. Set this using the color wheel and brightness slider, or the exact RGB (red, green, blue) values on a scale from 0 255. Red Green Blue Brightness Back LED Sets the brightnes of the back aiming LED (which is limited to blue only) on a scale from 0 to 255. Brightness Fade Strobe Changes from one color to another over specific time period, measured in seconds. Blinks the main LED lights for a period (time that includes light ON and OFF) for a count of cycles. A short period will produce a fast blink whereas a long period will produce a slow blink. From Color Red Green Blue Brightness Duration To Color Red Green Blue Brightness Red Green Blue Brightness Period Count (0-999999 seconds) (0-999999) (0-65535)

Controls Tool Description Variables Ranges Delay Continues to run active blocks until a given amount of time passes. Delay (0-999999 seconds) Loop (Bracket) Repeats the bocks contained within it for the number of loops specified, with a minimum of 1. Count (0-65535) Loop Forever (Bracket) Repeats the blocks contained within it forever. Loop Until (Bracket) Performs the blocks contained within it until a condition is met. (Condition) (true or false) If Then (Bracket) Performs the blocks contained within it only if the given condition is true. (Condition) (true or false) If Then Else (Bracket) Performs the blocks contained within then if the given condition is true. Otherwise performs the alternate else blocks instead. (Condition) (true or false)

Tool Description Variables Ranges Exit Program Stops all code on the canvas from executing on the robot, ending the program.

Operators Tool Description Variables Range Set Assigns a value to a given sensor or variable. Set is the only block in the Operators section. All other tools are to be used within the Set block. Add Adds two values together. Subtract Subtracts one value from the other. Multiply Multiplies two values together. Divide Divides one value from the other. Exponent Multiplies a value within itself a specific number of times.

Tool Description Variables Range Square Root Returns the square root of a value. Round Rounds a value to the nearest integer value. Floor Rounds a value down to the nearest integer value. Ceiling Rounds a value up to the nearest integer value. Absolute Returns the magnitude of a value, removing its sign. Sign Returns +1 for positive values, -1 for negative values, and 0 for zero. Modulo Returns the remainder after division of one value by another.

Tool Description Variables Range Minimum Returns the lesser of two values. Use this to set a lower bound on a value. Maximum Returns the greater of two values. Use this to set an upper bound on a value. Random Generates a random value within the given minimum and maximum. Minimum Maximum

Comparators Comparators are used within Conditions Tool Description Variable Range Equal Requires the left value to be equal to the right value for this condition to be true. Not Equal Requires the left value to be unequal to the right value for this condition to be true. Less Than Requires the left value to be less than the right value for this condition to be true. Less Than or Equal Requires the left value to be less than or equal to the right value for this condition to be true. Greater Than Requires the left value to be greater than the right value for this condition to be true. Greater Than or Equal Requires the left value to be greater than or equal to the right value for this condition to be true.

Tool Description Variable Range And Requires the left and right comparisons to be true for this condition to be true. (condition) (condition) (true or false) (true or false) Or Requires the left or right comparison to be true for this condition to be true. (condition) (condition) (true or false) (true or false)

Variables Create a variable that can be reused throughout a program to limit redundant logic. You can modify the value of a variable by using a set operator block. Tool Description Variables Range Add New Create a variable that can be reused throughout a program to limit redundant logic. Variable Name Default Edit Shows Delete and Edit icons over existing variables. Edit Allows user to edit variable name and default value. Delete Deletes variable.

Sensors Sensors are variables that tell the program what is going on in the Sphero. These can be used in comparators and with the Set operator. Tool Description Reading Heading Reads or writes the real-time heading measurement as a value. Heading is the direction in which the robot rolls. 0 degrees heading is straight forward, 90 degrees is a right turn, 270 is a left turn, and 180 degrees is straight back. Location Speed Location of the robot in relation to the origin at the start of the program in meters. This sensor reads the location to use as a value. Reads or writes the real-time speed measurement as a value. Speed is how fast the robot rolls on a scale from 0 to 255. X-Axis - X location of the robot in relation to the origin at the start of the program. X-axis positive is right of the robot at 90 degrees. This sensor reads the X-axis displacement to use as a value. Y-Axis - Y location of the robot in relation to the origin at the start of the program. Y-axis positive is straight in front of robot at 0 degrees. This sensor reads the Y-axis displacement to use as a value. Velocity Estimated speed along a given axis in meters per second. This sensor reads the speed to use as a value. Combined - Estimated speed in meters per second of the combined X and Y axis velocity. This sensor reads the speed to use as a value. X-Axis - Estimated speed along the X-axis in meters per second. This sensor reads the X- axis speed to use as a value. Y-Axis - Estimated speed along the Y-axis in meters per second. This sensor reads the Y- axis speed to use as a value.

Tool Description Reading Orientation The tilt angle of the robot along a given axis. This sensor reads the angle to use as a value. Pitch - The forward or backward tilt angle of the robot on a scale from -180 to 180 degrees; imagine an airplane ascending or descending. This sensor reads the pitch angle to use as a value. Roll - The left or right tilt angle of the robot on a scale from -90 to 90 degrees; imagine an airplane rolling to the left or right. This sensor reads the roll angle to use as a value. Accelerometer Gyroscope Motion detection on a scale from -8 to 8 G s. This sensor reads the acceleration along a given axis to use as a value. The rate of rotation around a given axis in degrees per second with a range of -2,000 to 2,000. This sensor reads the rate to use as a value. Yaw The spin angle of the robot on a scale from -180 to 180 degrees; imagine a plane turning left or right. This sensor reads the yaw angle to use as a value. Combined - Total acceleration of the robot combining all three axes on a scale of 0 to 14 G s. This sensor reads the total acceleration to use as a value. X-Axis - Lateral motion detection on a scale of -8 to 8 G s. This sensor reads the X-axis accelerometer reading to use as a value. Y-Axis - Forward motion detection on a scale of -8 to 8 G s. This sensor reads the Y-axis accelerometer reading to use as a value. Z-Axis - Vertical motion detection on a scale of -8 to 8 G s. This sensor reads the Z-axis accelerometer reading to use as a value. Pitch - The forward or backward tilt angle of the robot on a scale from -180 to 180 degrees; imagine an airplane ascending or descending. This sensor reads the pitch angle to use as a value. Roll - The left or right tilt angle of the robot on a scale from -90 to 90 degrees; imagine an airplane rolling to the left or right. This sensor reads the roll angle to use as a value. Yaw The spin angle of the robot on a scale from -180 to 180 degrees; imagine a plane turning left or right. This sensor reads the yaw angle to use as a value.

Tool Description Reading Vertical Acceleration Acceleration up and down on a scale of -8 to 8 G s, regardless of the robot s orientation. This sensor reads the vertical acceleration to use as a value. Color Color channel of the main LED lights on a scale from 0 255. This sensor writes the red, green or blue channel of the color. Red - Red channel of the main LED lights on a scale from 0 255. This sensor writes the red channel of the color. Green - Green channel of the main LED lights on a scale from 0 255. This sensor writes the green channel of the color. Blue - Blue channel of the main LED lights on a scale from 0 255. This sensor writes the blue channel of the color.

Events Event On Start Program Description Blocks within this event activate when Start is pressed in the Lightning Lab app. On Collision Conditional logic performed when the robot collides with an object. On Freefall Conditional logic performed when the robot falls through the air, defined by an accelerometer reading of <0.1 G for a duration of >= 0.1 seconds. Remember that 1 G is resting. On Land Conditional logic performed when the robot lands after an On Freefall event. On Gyro Max Conditional logic performed when the robot reaches the upper limit of rotational velocity. Gyro max can be triggered by spinning the robot extremely fast.

Functions Tool Description Variable Range Add New Creates a new Function. Opens Function screen which allows user to define parameters and add blocks of code. Function Name Edit Shows Delete and Edit icons over existing functions. Edit Allows user to edit function. Delete Deletes function

Parameters (only shows up in the Function screen) Tool Description Variable Range Add New Creates a new Parameter. Parameter Name Edit Shows Delete and Edit icons over existing parameters Edit Allows user to rename parameter. Delete Deletes Parameter