Robotics Week 2 Getting Started Using the Display

Slides:



Advertisements
Similar presentations
Game with US Beginner Tutorial. Welcome!! Who I am What is Processing? Basic Coding Input Methods Images Classes Arrays.
Advertisements

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.
Developed in collaboration with Introduction to Programming.
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
POWERPOINT TRICKS April 7, IMAGE IN A SHAPE.
Autodesk Inventor: Part 1 Creating a Part Inventor is used to design 3D models of the parts we design and allows us visualize what the robot will look.
Testbed: Exercises.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #002 (January 17, 2015)
4th Grade Book Publishing Project: Animal ABC Book
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
Java Programming The Ponytail Posse - FTC #8808 9/12/15.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #001 (January 17, 2015)
Chapter 2 part #1 C++ Program Structure
Java Methods Methods contain a group of instructions that together perform a single task. For example if I want to perform the task of “making a pizza”,
Recursion Pepper. Another way to loop Call yourself repeatedly until you say to stop. Example: add up 10 numbers using addUp. -- Input – number to count.
Lesson 1: Writing a program. Java Java is a programming language Computer cannot understand it, though it can be translated ( compiled ) so a computer.
Getting Started in RobotC // Comment task main() motor[] {} wait1Msec() ; = Header Code Compile Download Run Take out your notes.
BBC Microbit Getting set up and making your first program.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
ROBOTC Software EV3 Robot Workshop
Processing Variables. Variables Processing gives us several variables to play with These variables are always being updated and you can assume they have.
 Linking to a school website page  Linking to a class blog  Linking to student writing  Giving instructions to students.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
Programming Basics - RobotC Introduction to Robotics.
Decision Making: while loops and Boolean Logic. While Loops A while loop is a structure within ROBOTC which allows a section of code to be repeated as.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Publisher CREATING A NEWSLETTER. Finished Product.
Introduction to Programming in RobotC
INTRODUCTION TO ROBOTICS Part 5: Programming
Exploring Computer Science Lesson 6-5
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
Branching Error (a.k.a. the VM Program Instruction Break Error)
Bbc microbit Lesson 3 – Temperature hot medium.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Intro to the Robotics Introducing the IC Discuss.
Introduction to Programming
Mrs. DeVaults Note Taking Instruction
ROBOTC for VEX Robotics (VEX IQ) On-Line Session 2016 Friday - Day 5
Automation and Robotics
Objective of the lesson
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Automation and Robotics
Mr. Smith’s Schedule 1st Period Computer Science I
How to Run a Java Program
Exploring Computer Science Lesson 6-5
Getting Started in RobotC
Programming Basics - RobotC
Chapter 2 Graphics Programming with C++ and the Dark GDK Library
Automation with RobotC
Creating the First Program
Robotics Week 3 beginning wheel control
Robotics Week 6 line follower
Robotics Week 4 Functions and reusable code
Compiled from various Internet sources Presented by Mr. Hatfield
Scripts In Matlab.
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Automation with RobotC
Compiled from various Internet sources Presented by Mr. Hatfield
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Getting started with LEGO EV3 Mindstorms software
Agenda for Unit 5: Control Structures
Chapter 2 part #1 C++ Program Structure
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

Robotics Week 2 Getting Started Using the Display Compiled from various Internet sources Presented by Mr. Hatfield Robotics Week 2 Getting Started Using the Display

Getting Started With task() All programs are run within a function called task main(). The code between the curly braces is the main portion of the program and can do everything. Though not recommended. //All programs use task() to be the start of the program task main(); { //Program code goes here… }

The Display on the EV3 Specs on the Display on the EV3 Pixels - 178 X 128 Regular Text – 16 Lines (0 through 15) Big Text – 8 lines but numbered such as: Line0 Line2 Line4…

Common Display Commands //Displays ROBOTC on line 3 in normal text displayTextLine(3, "ROBOTC"); //Displays ROBOTC on line 3 in big text displayBigTextLine(3, "ROBOTC"); //Displays ROBOTC on line 3 centered and in normal text displayCenteredTextLine(2, "ROBOTC"); //Displays ROBOTC on line 3 centered and in big text displayCenteredBigTextLine(2, "ROBOTC"); Notice how commands end with a semicolon… ;

Are There More Commands? For more commands see the list of commands in ROBOTC and for more usage do a google search for the command followed by ‘ROBOTC’

Using a Variable in the Display //Displays ROBOTC on line 3 in normal text, will display a number variable also int x = 3; displayTextLine(3, “I am %d years old."); sleep (3000); //Displays ‘I am 3 years old.’ on the 3rd line for 3 seconds (3000 milliseconds)

You Can Draw on the EV3 and erase the display //Draws an ellipse with a left coordinate of 5, top coordinate of 10, //right coordinate of 15, and bottom coordinate of 20. drawEllipse(5, 10, 15, 20); and erase the display //Erase the entire LCD display eraseDisplay();

Hello World! (Putting it together) //This program will display ‘Hello World!!!’ centered in big text on line 1 and a simple drawing for 5 seconds. task main() { eraseDisplay(); displayCenteredBigTextLine(1, "Hello World!!!"); drawEllipse(64, 50, 114, 100); drawEllipse(77, 80, 87, 90); drawEllipse(91, 80, 101, 90); drawEllipse(74, 60, 104, 70); sleep(5000); } Now it is your turn…

Download and Start Once you are done with the program press the ‘Download to Robot’ button And then the ‘Start’ button Watch the EV3 display!!!

Congratulations!!! I am assuming that you have a functioning EV3 with ROBOTC I am assuming that you were able to communicate with your EV3 I am assuming that you were able to get your EV3 to display ‘Hello World!!!’