EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright

Slides:



Advertisements
Similar presentations
Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2.
Advertisements

EV3 Workshop Curriculum Developed by Joe DeRose, Ph.D.
1 North Alabama Robotics Team Monkey Madness FLL Intro Programming Workshop 2012 Kim Daugherty
LabView Basics.
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
NXTG Workshop for Bottle RoboSumo Lawrence Technological University.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
EV3 Software EV3 Robot Workshop 2015
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Robotics Day4.
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
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.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
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.
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.
Program ultrasonic range sensor in autonomous mode
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
Introduction to the Basic Parts of LEGO’s NXT Robotics
ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS.
Droids Robotics Workshop
This block is a : displaydisplay looploop movemove soundsound switchswitch waitwait motor.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
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.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON COLOR LINE FOLLOWER MY BLOCK WITH INPUTS: MOVE FOR DISTANCE.

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.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
EV3 Programming: Moving and Turning CONFIDENTIAL © 2014 Cymer, LLC.
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.
Introduction to LEGO Mindstorms EV3 What is in the box?
LEGO Robotics Workshop
NXT Mindstorms Kit Programming
LEGO MINDSTORMS PROGRAMMING
Exploring Computer Science Lesson 6-5
ORTOP Workshop 3 Robot Navigation & Missions
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Mindstorms EV3 Programming
Mindstorms EV3 Programming
Introduction To Programming with LEGO NXT 2
Touch Sensor.
BEGINNER PROGRAMMING LESSON
Mindstorms EV3 Programming
BEGINNER PROGRAMMING LESSON
Module F: Presentation Understanding Robot Fundamentals
BEGINNER EV3 PROGRAMMING Lesson
Robot Programming Computer Literacy S2.
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Exploring Computer Science Lesson 6-5
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Holyoke Codes LEGO ROBOTICS
BEGINNER PROGRAMMING LESSON
Lego EV3 Mindstorms SW Programming Blocks.
INTERMEDIATE PROGRAMMING LESSON
The programming page of the Brick
Compiled from various Internet sources Presented by Mr. Hatfield
Lego MINDSTORMS EV3.
Getting started with LEGO EV3 Mindstorms software
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright Assistants: Chris Parker and Matthew Ryan Lawrence Technological University

Lego EV3 robot used - SP Right Motor: C Left Motor: B Touch Sensor EV3 Computer Sonar Sensor Left Motor: B Color Sensor

Remember the connections! Left Motor connects to B Right Motor connects to C Center Color sensor connects to port no. 1 Left Color sensor connects to port no. X Sonar sensor connects to port no. 3 Touch sensor connects to port no. 4 Sound sensor connects to port no. X X: not used in this workshop

EV3 Versions Used Examples are using EV3 software Version 1.1.0 EV3 brick Firmware version: 1.60 (V1.06E.bin) All example programs in paradeWorkshop2014.ev3 (project) Free (Home Edition) version – Google search “EV3 software download” http://www.lego.com/en-us/mindstorms/downloads/software/ddsoftwaredownload/download-software/  Also need to download Ultrasonic.ev3b and select Tools> Block Import

Go straight for 2 seconds using different power levels Mission 0: Go straight for 2 seconds using different power levels launch OR LEGO MINDSTORMS Education EV3 paradeWorkshop 2014.ev3

Go forward for 2 seconds with power level 40 % Green! EV3 offers two move blocks Move Steering Block: Controls and regulates two motors with a steering input and single power level. (+) steering = right; (-) steering = left Move Tank Block: Controls two motors with a power level to each motor In this course we will use the Move Steering Block.

Let’s test it Connect the EV3 to the laptop (if this is the first time, then a “Found New Hardware” message will appear) Click on the ‘Download’ button It’s recommended to always unplug the cable from the bot before running the program Navigate through the EV3’s menu: Turn On > My Files > Software Files Then select your program and run it!

Distance traveled How many centimeters when 40% power used? How the robot is traveling when 80% power used? How to find out the current battery voltage level?

EV3 large servo motors: geared motor with built-in rotation sensor Rotation sensor gives “degrees” turned. (It can also give “rotations”) For example, if the value is 360, the motor turned one rotation.

Display the “rotations” when the bot goes forward for 2 seconds Mission 1: Display the “rotations” when the bot goes forward for 2 seconds

Display the “rotations” turned from going forward for 2 seconds Tip: After in “T” text mode, click here and select wire Program: DispRotations.ev3p

Math Review Number of rotations = degrees / 360 C = D * 3.14 Number of rotations = degrees / 360 Circumference (C) = diameter (D) * 3.14 Travel distance = number of rotations (N) * circumference of the wheel (C) Speed = distance / time

How to calculate the average speed of robot for that 2 seconds ? We can get number of rotations for 2 seconds by choosing “Measure – Rotations” If the circumference of the wheel is 17.6cm (5.6 x 3.14), what is the travel distance for 2 sec? Then what is the averaged speed of the robot for the 2 seconds? Note: RoboParade has min and max speed limits. 9 – 18 cm/sec 2) # rotation * circumference. 3) Speed = travel distance / 2

How to calculate average SPEED? If at 1pm your mom’s car is at mile marker 5,000 and at 3pm your mom’s car is at mile marker at 5,120, what is the average speed of your mom’s car? 𝑣= 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒 𝑡𝑖𝑚𝑒 120/2 = 60miles/hour distance Time 2 Time 1

Example: If the number of rotations = 2.8

Display the “speed” when the bot goes forward for 2 seconds Mission 2: Display the “speed” when the bot goes forward for 2 seconds

Display Speed for 2 Second Drive Check the port Demonstrate to create this program from scratch and ask them to do everything from scratch. Program: DispSpeed.ev3p

Ultrasonic Sensor Uses the same scientific principle as bats Can measure in centimeters or inches Large objects with hard surfaces return the best readings (a) About 20 degrees (b) About 60 cm (c) About 22 cm Data from www.ev-3.net/en/archives/844

How to get (read) sensor data When the robot is connected (USB or Bluetooth) to your computer: On the robot: Third tab –> Port View Test your Sonar Sensor and read data NOW! Tip: reconnect the cable, if it does not work

EV3 Flow Control (Orange) Wait: time, touch sensor, … Loop: endless, count, … Loop interrupt Decision making using switch

What does this program do? Let them just open “sonarTest.ev3” and test the program. Note: if not working, unplug and re-plug the connector Data driven Program: SonarTest.ev3p

EV3 Color Sensor Percent Mode: 5% = lowest dark 100% = very bright Reflected Light Mode: shines a red light; we are using this mode. The light can be turned off – detecting ambient light (surrounding light) – not used today The sensor may need to be Calibrated (see Bonus material)

Display EV3 Color Sensor value Program: DispLight.ev3p

Test & Read Your Color Sensor Data On the parade track record color sensor values On Black line: ____________ One the beige table: ___________ On the beige color masking tape: ___________

Zigzag Line following Idea Left side following Right side following

Line following using a Color Sensor Mission 3: Line following using a Color Sensor

Simple Line Following Algorithm Right side. Show the program and ask them to create Program: LineFlwZZ.ev3p Q: Right side or Left side following?

How and Where to start the robot? C On the line: OK

How and Where to start the robot? Right side of the line: OK B C

How and Where to start the robot? Lost… Left side of the line: NO! B C

Follow the Parade Route and stop when an object is sensed Mission 4: Follow the Parade Route and stop when an object is sensed

Line Following with STOP Repeat the following forever: If sonar sensor detects an object Stop!!!!! Otherwise Follow the black line

Line Following with STOP Program: paradeZZ.ev3p

Mission 5: Multiple parallel programs – RoboParade with Speed Display (every second)

RoboParade with Speed Display Program: paradeZZspd.ev3p

Parade Program Concept Concurrently Run 3 Parallel Programs 1) Repeat the following forever: If sonar sensor detects an object Stop!!!!! Otherwise Follow the black line 2) Display the average speed 3) Float operations with other motor(s)

RoboParade with all functions Mission 6: RoboParade with all functions

RoboParade with all functions Line Following With Stop Motor on Float Display Robot Speed Program: paradZZall.ev3p

Calibration of the Color Sensor Bonus Material 1: Calibration of the Color Sensor

EV3 Color Sensor Calibration Program: Calibrate.ev3p

Test & Read Your Color Sensor Data On the parade track record color sensor values On Black line: ____________ One the beige table: ___________ On the beige color masking tape: ___________ Run the calibration program on the parade track and repeat measurements One the beige color table: ______________

Little Robots, Big Missions Questions? robofest@LTU.edu