Unit 4: Lego EV3 Robot
Reference: EV3 User Guide
Reference: Build Instructions
Tutorial: Basic EV3 Brick Operation
Reference Tutorial: Image Creator
Reference Image: EV3 Display Pixels and Array
Assignment: Story Time
Directions: In your Group Write a program that will do the following.
Program: Write a story that uses the following
Minimum 3 sounds
Minimum 3 images
Minimum 1 loop
Start Button
Time for minimum of 5 seconds
Be sure to time out your project I.E Sounds with images. May use download or created sounds and images. Make sure your sounds and images are school appropriate.
Submission: Email Teacher Project File that includes Tutorial(s) Program and Assignment Program
Assignment: Build Riley Robot Riley Robot
NOTE: Build Guide shows possible locations of sensors
Topic 1: Motors and Steering
Before Starting Topic 2
Assignment: Build Riley Robot Riley Robot
NOTE: Build Guide shows possible locations of sensors. This section will not need any sensors.
The Large Motors are designed to move parts of a robot. We will be using them to power our wheels. However, the motors could be used to move a robotic arm, create a rotating structure (I.E Radar Station), etc.
Outline: Steering Motors Outline
Tutorial(s): Large Motor Tank and Steering Command
Steering Command: Applies the same amount of power to both motors; creating a movement that is linear in nature. Print Copy of Tutorial staple to lab report (Write Tutorial on printout)
Tank Command: User can assign a different amount of power to each of the motors; creating a movement that is like a tracked vehicle. The vehicle can create sharper turns than that of the steering command. Print Copy of Tutorial to turn in staple to lab report (Write Tutorial on printout)
Lab Report and Assignments: Large Motors Steering Commands
Program 1: Line Follow
Select Project Make It Move > Tab Tank Assignment
Write a Program that will follow the black taped line, keeping your robot centered on the line between the front forks, provided by the teacher. Have your Robot stop at the end of the tape. Use any combination of Steering and Tank Commands
Submission for Programs
Email the following to jourdem@brightonk12.com
EV3 Labview Code
Video Showing the Robot Completing the Tasks
Answer the following questions on Lab Report
What type of Movement (s) commands did you use to follow the line?
How many movements did you need to incorporate in your program?
How long did it take for your robot to complete the course?
How did you figure out how to keep your robot closest to the line
Did you robot stray off the course? If Yes How did you correct it?
Reference Video: Line Follow Example
Program 2: Picture Draw
Select Project Make It Move > Tab Tank Assignment
Design a holder with the Medium Motor to your robot that will hold a predefined marker
Draw a picture that uses a minimum of 8 lines/arcs. Be sure the image is school appropriate.
Marker Must be Picked up and Replaced minimum of 1 time
Submission for Lab
Email/Share Google Drive
- Shoot a Video of Program
- Email Code
CoderZ Units
Cyber Robotics 101: Object Detection 1
Cyber Robotics 102: Touch, Avoid, Repeat
Topic 2: Touch Sensor
Tutorial: Touch Sensor
Assignment: Lab Report
Assignment: I am Stuck
Speed Range: -25 to 25
1. Setup a Start Button to run the program: Maybe a button on the EV3 Brick
2. Modify the robot to include a touch sensor (s). Consider the following
- Placement of touch sensor (s) or attachments in relation to Robot (Wheels, Brick, etc.)
- May modify the robot as needed
- May add more than 1 Touch Sensor
3. Move around an obstacle (wood block(s)) making adjustments as needed using Steering or Tank movements. NOTE: Blocks will be in one continuous parallel line or 90 Degree Corners. (Think of an S Shape Maze)
4. Consider the following
- After backing up how far to back up
- Turning left or right how far should the robot move (Keep moving the same way once choice of Left or Right is made)
- Sensing the wall
- Speed of Robot Driving up to the wall.
- What if half of the robot senses the wall and the other half does not.
5. Obstacle is Sensed the Robot will
- Stop
- Make the Noise File:Detected sound from the EV3 Brick
- Display Image: NO GO image on the screen that the robot has found an obstacle
- Reverse course
- Turn Off sound and Remove image from screen (May add another sound or image for all clear of obstacles)
- Make the Turn (Right or Left) to shift robot over to see if barrier is in front
- Pause before moving forward
- Stop robot after exiting the it does not sense an obstacle for 4 seconds. Use variable setting to stop the robot.
- Play a sound that shows success or completion and place a message in the center of the screen that says COMPLETE
6. Robot May NOT make contact with the walls except for the Touch Sensor or attachment to the front of the sensor.
- Includes Wires, Wheels, Frame, etc.
- Knock over any of the wall segments
Before Starting Topic 3
CoderZ Units
Cyber Robotics 101: Object Detection 2
Topic 3: Ultrasonic Sensor
Tutorial: Ultrasonic
Lab Report: Ultrasonic
Program 1: Reverse
Objective: Control the distance of backing up based on the Size of the Tire and the Ultrasonic Distance (Threshold) to Barrier
Task 1: Add a Touch Sensor as your starting switch. Meaning, when you download the program, the robot will not run until the touch sensor is pressed. Use a Wait Statement set to Touch Sensor when Pressed at the beginning of the program
Task 2: Distance for Reverse: Modify the Tutorial by adding a Mathematical statement that has the program double the threshold distance and then converts that distance into rotations (Hint: 2xThreshold distance / circumference of the wheel) of the wheel moving the robot in reverse this calculated value and then stops the robot (HINT: Stopping: Adjust Loop Statement from Unlimited to Ultrasonic Sensor). Test at least 3 thresholds (Each threshold must be measured at least three times) and measure the distance (Choose your Units) between the robot ultrasonic sensor and the barrier (Mark your units). To find distance value, display the final distance on the Bricks Screen.
Choose 3 Different Thresholds and test each 3 times. Write results down in Lab Report
NOTE: Threshold Distances must be a minimum of 5 units apart.
Task 3: After Reverse, have the robot turn right 90 degrees > Wait > Sense > Movement after sensing (see below) > Robot will move in one of two directions
Forward until another obstacle is sensed and then stop.
Opposite movement If the sensor sees an obstacle less than 3 inches away; turn 180 degrees (front of robot pointing opposite, of start direction) (NOTE: Turning radius must be as close to 0 and possible) move forward for 2 seconds at the power of 25 then stop
Program 2: Arena
Task 1: Touch Sensor to Start Robot
Task 2: Mount your Touch and Ultrasonic Sensor where you would like.
Task 3: Program a Clockwise motion around the Arena
Robot should not come closer than 2 inches of any wall from the front of the robot including the wheels and sensors. NOTE: No part of the robot should touch any walls including tires, wires, brick, etc.
Complete 3 Laps around the Arena > Stopping the Robot at the original start point and orientation (Stop the robot in the direction it as originally set in)
Task 4: Display ultrasonic data distances at the dead center of the brick (NOTE: Will have to find x and y coordinates for this).
Before Starting Topic 24
CoderZ Units
Cyber Robotics 101: Color Detection
Extra Credit:Cyber Robotics 102: Colorful Code
Topic 4: Color Sensor
Unit Outline: Color Sensor
Lab Report: Color Sensor
Riley Robot Build Instructions: Color Sensor Mount
Reference Information Color Sensor: Be sure to keep the color sensor within 1/8-3/16 of inch.
Errors in Mounting
Too Close: Does not allow enough time for the signal to go out from the sensor and come back
Too Far: The Sensing area increases and the robot will sense more colors than originally intended.
Task: Add the Color Sensor to your Robot
Attach a Color Sensor to your robot using one of two options
Option 1:Follow the instruction manual listed below
Option 2: Group may design their own mount to the robot.
Tutorial 1: Color Sensor Basics
Reference: Color Palette for Measures (Printouts on Teacher's Desk)
Assignment 1: Multiple Line Stop
Write a program that will do the following
Environment: Five pieces of tape will be laid out on a table/board
- Use Touch Sensor to Start your robot
- User will have the robot start at one end and move the robot to each colored line and stop for 1 second
- Once the robot as move past all five taped lines the robot will reverse course and end up where it started at.
Tutorial and Assignment 2:Color Sensor: Line Madness w/Variables
Adds on from Assignment 1. Objective to Calculate the distance between black lines
Program 2: Line Madness with Variables
Modify Tutorial 2’s code to do the following
Move forward after the first line is sensed
Move past all five lines from Program 1
Reverse course and finish where you started
Add a variables that will that will show how many rotations the robot took between each line.
Display all five outputs on the screen at one time. Provide a title for each line that is displayed
I.E Line 1=
Line 2=
Line 3=
Tutorial 3: Color Sensor: Follow a Line: Using Variables
Program 3: Smooth Line Follow: Stop at the end of a Line
- Modify Tutorial 3 to have the Robot move smoothly while following the line > See Board Located in Lab
- Modify your Program to Make the Robot Stop if line is not in a complete loop. Test and explain your results.
Assignment: Complete Lab Report
Extra Credit: Programs: Don't Fall Off the Table
Write a Program that will do the following
Use Touch Sensor to Start your robot
Design a program that will have the robot move around a table without falling off
Use reverse and turns to check for the edge of the table.
Robot must run and move around the table continuously for 10 seconds without falling off the table. (Table will be class table)
Robot must sense a minimum of 3 Different Edges on the table
Submission for All Programs
Show Teacher or Shoot a Video > Share with Teacher of Final Run
Email Program Code to teacher
Answer the following questions
Unit 4: Application
Topic 1: Gears: Ping Pong Ball Launch
Powerpoint: Gears
Assignment: Powerpoint Worksheet
Assignment: Ratios
Assignment: Ping Pong Ball Launch
Goal: Launch a Ping Pong Ball as far as possible in the air.
Design a launching mechanism with the following criteria
Build a stationary robot that can launch a Ping Ping Ball as far as possible.
(NOTE: Robot can be on wheels, but motor(s) will not be activated to move the robot)
a. Robot will have the following
1. Access to place the ping pong ball in the launcher
2. Minimum of 1 Touch Sensor to activate the launch of the Ping Pong Ball.
NOTE: Touch Sensor does not need to be attached to the base of the robot; maybe attached with a long wire to keep hands away from
the launch area.
2. Minimum of 2 Gears to launch or load/reload the Ping Pong Ball
3. Total Robot with accessories cannot exceed a max of 12" square area around the robot
4. ONLY EV3 Kit pieces maybe used and 1 EV3 Brick. (NOTE: more than 1 motor maybe used)
5. No restrictions on how the Ping Pong Ball is held or launched
6. Reset Arm Using your program to reset the arm to the starting position to reload and launch Ping Pong Ball (Launcher May not be Manually Reset)
Optional: Add an attachment that can hold more than one Ping Pong Ball and auto load the launcher
Topic 2: Cargo Carry
Part: Cargo Carry
NOTE: User may use any combination of sensors needed. If more sensors are needed see the teacher (I.E using to color sensors.
Program Details: Cargo Carry
Build a Cargo Holder using Only EV3 Components
Reference Front End Loader: Build Instructions
Note: May adjust the front end loader to make it easier to pick item up.
Reference Gripper Picker: Build Instructions
Note: May adjust the front end loader to make it easier to pick item up.
Extra Credit:Output time for the following on the brick screen
Start to object
Object to end
Total elapsed Time (NOTE: will include pickup and drop off time.)
Completed the Final Program.
Video of Final Program
Email Teacher
Video
Programs Code
Topic 3: Bowling
Design a Robot to do the following
Objective: Create a robot that will navigate a predefined course and is able to deliver a tennis ball at 6 Bowling Pins
1. Place Robot in starting area
2. Use Touch Sensor to start the program
3. Navigate using any of the three sensors (Touch, Ultrasonic, Color) the course
4. DO NOT MAKE CONTACT with any of the Walls
5. Stop at Predefined Tape
6. May Adjust Robot as Needed Once Stopped
7. Make a Sound when the ball is released
8. After tennis ball has been bowled. Operator will use a Touch Sensor to Record Number of Pins Knocked Down
9. Display
a. Display # of Pins Knocked Down = (Display #Pins;Number of times Touch Sensor was pressed)
10. Make a Sound and Image If
a. Strike
b. Left Pins Standing
Topic 4: Integrated Systems (Final Exam)