How to design, build, and program a LEGO robot!

Slides:



Advertisements
Similar presentations
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Advertisements

Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Robotics Day4.
EducateNXT NXT... an introduction The Kit and the Software.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
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.
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.
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.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Introduction to the Basic Parts of LEGO’s NXT Robotics
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
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.
Find the Mindstorms Icon on the computer.. To start a new program click go.
EV3 Software EV3 Robot Workshop
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
ROBOTICS Jason Bell Brad Carlson
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
Introduction to Robotics using Lego Mindstorms EV3 Shreya Reddy & Kiran Raja RoboAvatars Robotics.
LOGICFUSION’S HANDS-ON ROBOTICS EV3 LEVEL 2! Welcome to.
How Do You Make a Program Wait?
Introduction to LEGO Mindstorms EV3 What is in the box?
LEGO Robotics Workshop
Introduction to Programming in RobotC
NXT Mindstorms Kit Programming
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
LEGO MINDSTORMS PROGRAMMING
Exploring Computer Science Lesson 6-5
Line-Follower Challenge
BEGINNER PROGRAMMING LESSON
Deriving Consistency from LEGOs
Mindstorms EV3 Programming
Java on the LEGO Mindstorms EV3
Understanding Communication with a Robot? Activity (60 minutes)
By Sanjay and Arvind Seshan
Mindstorms EV3 Programming
Touch Sensor.
Programming Part 2 Mod Kit
Basics for Robotics Programming
BEGINNER PROGRAMMING LESSON
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
BEGINNER PROGRAMMING LESSON
Music by Touch Music by Touch Presentation > TeachEngineering.org
Sensors Training.
Automation and Robotics
Robot Programming Computer Literacy S2.
BEGINNER EV3 PROGRAMMING Lesson
Exploring Computer Science Lesson 6-5
An Introduction to VEX IQ Programming with Modkit
Beginner Programming Lesson
Holyoke Codes LEGO ROBOTICS
SENSORS.
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
BEGINNER EV3 PROGRAMMING Lesson
Compiled from various Internet sources Presented by Mr. Hatfield
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Creating a Simple Game in Scratch
Lego MINDSTORMS EV3.
Getting started with LEGO EV3 Mindstorms software
Downloading to the NXT requires the correct hardware setup
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

How to design, build, and program a LEGO robot! LEGO Mindstorms EV3 How to design, build, and program a LEGO robot!

Class Basics Instructor: Karen Mayes Lead instructor in Marquette’s Engineering Outreach program Former Executive Vice President of an Environmental Technologies Company Former Chemist Former Physics Teacher at Oak Creek High School, 10 years teaching grades 6-12 Mentor for a community-based FIRST Robotics Team: “MORE ROBOTICS, Team1714” in South Milwaukee Mom to 11-year old twins.  Assistant(s) introduce yourselves! Class schedule: 9am to Noon OR 1PM to 4PM

Ground Rules! “1, 2, 3, LEGO!” means, “Stop what you’re doing and listen.”  We will take a restroom and walking break, but if you need to leave the room, let an adult know. Kits are expensive. Respect the equipment! Kits are ORGANIZED. Please keep your own kit completely separate from everyone else’s.

What are YOUR responsibilities? Be respectful. Remember… kits are expensive Classmates have feelings Instructors expect cooperation Be a team member. Listen. Give opinions in a thoughtful way. Share. Stay on task Fun is GOOD… but make it productive fun! Use tools appropriately. Follow the progress chart as a guide!

What will we do today? Get our brains warmed up! Learn about hardware and software Learn “Lego Lingo” Modify your robot to perform different tasks Write your own programs Complete some robot challenges!

Do you already have Lego experience? GREAT! If you know how to build with “Technic” Legos OR If you have used the last version of Lego Mindstorms (the NXT), then… You are a JUNIOR TEACHER! You can help classmates who are new to these topics! Here’s your chance to be a leader – not a show-off.

Computer The “Brick” The brain of your robot Stores programs Sends and receives signals Connection to the computer’s USB port Motor Ports are labeled with LETTERS. Sensor Ports are labeled with NUMBERS. EV3 Control Panel

Brick Buttons Top left button means NO or STOP or BACK Display’s EV3 Menus Center button means YES or GO Light gray buttons are arrow up, down, left and right.

Chassis Lego Technic parts – We’ll talk more about these later!

Drive Train – Motors! Large motors can turn wheels The red circle spins Be careful – turning them manually can damage motors! On the TOP of the brick Motor Ports are labeled with LETTERS.

Electronics Cables Power Cord

Automation/Programming Mindstorms EV3 Programming More later!!

Manipulator You can add parts to your robot! The EV3 comes with a “Medium Motor” It is designed to allow your robot to move things other than wheels!

The Brick Menus Recently File Used Menu Programs

Basics Getting started… (Video!) The programming blocks are drag-and-drop Each program block corresponds to part of the robot Each program block has places to customize the instructions NOTE: “Download” is probably better than “Download and run” Download Download and Run

Introduction to the EV3 Program To start a new program click here Intro Screen has some helpful links at the bottom

Programs and Projects You can have several programs associated with a single project. A program is a set of specific instructions A project can contain several programs To create a new project, click the TOP “+” tab. To create a new program, click the BOTTOM “+” tab. New Project New Program

The motor blocks Today, we’ll only use the large motors. Three ways to move: Single motor Steering Tank NOTE: A positive speed goes FORWARD. A negative speed goes BACKWARD.

Display text, shapes and sounds Lego provides a library of graphics and sounds with the EV3. Use the display blocks to see or hear them. The controls for these blocks is in the upper right corner. Put a Wait block after the display functions, or they will flash across the screen before you can see them!

Sensor Blocks: Waiting for input You can program your robot to wait for something It can do other things while it’s waiting Use the hourglass and then customize it The block will look different once you’ve customized it! Default: Waits a certain amount of time Customize it to wait for the touch sensor

“Compare” vs. “Change” When you tell a sensor to “Compare” two values, it will look for those ACTUAL numbers. Telling the Ultrasonic Sensor to “compare” using the “less than” operator with a value of 3cm means… “I will alert when there is something less than 3cm in front of me.” When you tell a sensor to sense a “Change” in two values, it will look for the DIFFERENCE between them. Telling the Ultrasonic Sensor to sense a “change” using the “less than” operator with a value of 3cm means… “I will look ahead of me and send alerts as long as the distance between me and the object has changed less than 3 cm.” This will be very important if you program the gyro.

The Light Sensor The Light Sensor can “see” We will primarily use it to see Colors Reflected light Stop on a black line using reflected light:

The Ultrasonic Sensor The Ultrasonic Sensor uses light waves that we can’t see to determine if there’s an object in front of it. It can also tell how far away the object is.

The Gyro The Gyro helps the robot turn EXACTLY in the direction you want. Much easier than guessing how long it takes to make a turn!

Gyro Programming Just like the other sensors, use the WAIT command after your motor block. Turn the motors ON (steering mode) and select the direction as 100 Grab a wait command and change the clock to the GyroChange Angle Enter how many degrees you want to turn. Before every turn, add a “reset” block

Using Loops I can use a LOOP to make the robot perform an action multiple times. This program will make the touch-sensor program run twice. Change to “Count” Number of loop repeats

Using a “Switch” Command A switch allows the EV3 to choose several options The EV3 makes this decision instantaneously A simple example using the color sensor The EV3 will measure which color it’s seeing, then If it’s WHITE, it will go forward a little and stop. If it’s BLACK, it will go backwards a little and stop.

Using “Loop” and “Switch” A switch makes the EV3 make an instant decision, once. What if you want the EV3 to make that decision over and over? Use a loop! Here, the EV3 makes the “black or white?” decision, THEN moves forward or backward for One second, THEN makes the decision again!

Tips on using a “Loop/Switch” The slower the robot, the more time it has to measure The more often you have it make the decision, the more accurate it will be. Example: if I changed the previous program to only move forward or backwards for 0.1 seconds, it will be less likely to miss a line!

Your first program Example: Read your program like a sentence! Make your robot move until the touch sensor hits something and Then back up and Then stop Read your program like a sentence!

BREAK! Restroom Hand washing Tour of the building Snacks?

Challenges! Choose any of the four challenges to start with. When you complete the challenge, have an adult give you a star for that activity You can earn more stars if you complete the challenges using more advanced programs!

Try new things! If you aren’t sure something will work… Try it! If you get stuck, ask for help! If an instructor isn’t immediately available, try a classmate.  Lend help if you are asked and are able to!

Robot Challenges… “KICK THE CANS” Write a program (with or without sensors) to push as many cups/cans outside the circle as possible. “STOP FOR PEDESTRIANS” Program your robot to stop before hitting the little LEGO figures Bonus points if you can have it slow down in the yellow zone first. “STAY INSIDE THE LINES” Use the light sensor to keep your robot from leaving the area surrounded by black lines “WEAVE THROUGH TRAFFIC” Have your robot use the ultrasonic sensor to weave through a line of boxes

Clean Up! Please try to return Legos from where you found them. (Do your best!) Check the floor! Make sure all boxes are closed tightly THANK YOU!!