5-6 EV3 SENSORS
MONDAY - LEGO MINDSTORMS
I can build a robot from instructions.
I can build a robot from instructions.
1. Build this puzzle
2. Self driving cars are here and being improved every day. In order to understand the challenges they face in building these cars, you need to know about how programming works. This week we will explore the Lego Mindstorms EV3 robots with some of their sensors.
You will work with a partner to build the educator model of this robot. If your robot is built quickly, please take the time to organize your tote and look for missing or extra parts you may have.
You will work with a partner to build the educator model of this robot. If your robot is built quickly, please take the time to organize your tote and look for missing or extra parts you may have.
Rules for using the robots:
- Always carry the tote with 2 hands, keep the tote as organized as much as possible.
- Always carry the robot with 2 hands. One hand on the top and one on the bottom.
- Plug and unplug cords gently. Never yank them out of the robot or computer.
- Take turns when using the robot. Don't grab if from someone, wait for it to be handed to you or set down on a table first.
3. Bring your completed robot to the back shelf by my desk. Use a power cord to plug it in and get it charged for tomorrow.
4. If we have extra time, please get some wipes and start cleaning the lab. Your computers, the tables, etc.
Please log off all computers. Sit quietly at your seat until we are ready to line up. We exit in reverse seat order. Number 28 down to 1.
Please log off all computers. Sit quietly at your seat until we are ready to line up. We exit in reverse seat order. Number 28 down to 1.
TUESDAY - LEGO MINDSTORMS
I can compare algorithms.
I can compare algorithms.
1. Watch this video of an EV3 robot solving challenges.
2. Driving your EV3 robot. Today you will test out different programs. After each program you are to think about the questions and be able to answer them.
Open the Lego Mindstorms program from the desktop. Go to file save, and name the program with your first names. You will create two different programs and test them. Then we will discuss the questions that follow.
PROGRAM: Call it GO
GO 2
What did each program have the robot do? How are the program similar and different?
3. Now write a program that will drive your robot in a square. Think about the path it will need to take. Add a new file and call it SQUARE
Follow along as we work out this program together. We will do tests as we go along. Then you will finish the code with your partner to test it out.
Click here only if you need a hint.
Click here only if you need a hint.
5. Clean Up. Save your program. Put the cords and any loose pieces back into the tote. Log off the computer you were using.
One of you return the tote and the other will return the robot. Take turns so it does not get crowed behind my desk.
Log off the computer you were using. Then return to your own seats and sit quietly to be dismissed or participate in the class discussion.
WEDNESDAY - TOUCH SENSOR
I can use a sensor to control my robot.
Hour of Code
1. How to add the touch sensor to your robot.
2. How to add the touch sensor to your robot. Open this file and follow the directions to attach this sensor. You can add additional parts to the end of the sensor to make the button bigger. Insert an axle and then a gear on the end of it and it will have a much larger surface to touch.
3. Add this program to your robot and test it out. Call it TOUCH. What happens when you run this program?
4. Now create this program. Call it TOUCH 2. What does it do?
4 Challenge: can you write a program that will keep your robot moving non-stop on the table even after it hits a wall? Give it a try. Call it TOUCH 3
5. Clean Up. Save your program. Put the cords and any loose pieces back into the tote. Log off the computer you were using.
One of you return the tote and the other will return the robot. Take turns so it does not get crowed behind my desk.
Log off the computer you were using. Then return to your own seats and sit quietly to be dismissed or participate in the class discussion.
5. Clean Up. Save your program. Put the cords and any loose pieces back into the tote. Log off the computer you were using.
One of you return the tote and the other will return the robot. Take turns so it does not get crowed behind my desk.
Log off the computer you were using. Then return to your own seats and sit quietly to be dismissed or participate in the class discussion.
THURSDAY - ULTRA SONIC SENSOR
I can use a sensor to control my robot.
1. Replace the touch sensor with the Ultra Sonic Sensor for today.
2. Instead of waiting to touch an object and then stop, this sensor can detect an object before hitting it.
Write the following program. Name it 4A.
Write the following program. Name it 4A.
The first and last block of code start the motor and turn off the motor. Figure out what the middle block is doing? Notice the 4, this means they plugged the sensor into port 4. Either change the code, or change your cord so the program works.
After completing this task, be ready to share your thoughts of what it means.
After completing this task, be ready to share your thoughts of what it means.
3. CHALLENGE: Write a program that will continue to drive around the table and never hit a wall or object. Give it a try. Name it SONIC. Raise your hand to share if you get it completed today.
4. Clean Up. Save your program. Put the cords and any loose pieces back into the tote. Log off the computer you were using.
One of you return the tote and the other will return the robot. Take turns so it does not get crowed behind my desk.
Log off the computer you were using. Then return to your own seats and sit quietly to be dismissed or participate in the class discussion.
One of you return the tote and the other will return the robot. Take turns so it does not get crowed behind my desk.
Log off the computer you were using. Then return to your own seats and sit quietly to be dismissed or participate in the class discussion.
FRIDAY - SHARE YOUR ROBOT PROGRAMMING
I can disassemble my robot and put the pieces away where they belong.
1. Finish your robot program of having the robot drive the table without hitting anything.
2. We will share what you have accomplished and any extra fun things you can make your robot do.
3. Time to clean up. I would like all the robots returned to the base model and your tote organized. If your robot needs to be charged, please plug it in. Return all the totes and robots before having any free time.
4. You may have Fun Friday time by doing activities from pmasterson.net.
I can disassemble my robot and put the pieces away where they belong.
1. Finish your robot program of having the robot drive the table without hitting anything.
2. We will share what you have accomplished and any extra fun things you can make your robot do.
3. Time to clean up. I would like all the robots returned to the base model and your tote organized. If your robot needs to be charged, please plug it in. Return all the totes and robots before having any free time.
4. You may have Fun Friday time by doing activities from pmasterson.net.
If you are not working with a partner on the EV3, please do these programming games instead.
CSS
1B-AP-08 Compare and refine multiple algorithms for the same task and determine which is the most appropriate. Subconcept: Algorithms; Practice 6.3, 3.3
1B-AP-10 Create programs that include sequences, events, loops, and conditionals. Subconcept: Control; Practice 5.2
1B-AP-08 Compare and refine multiple algorithms for the same task and determine which is the most appropriate. Subconcept: Algorithms; Practice 6.3, 3.3
1B-AP-10 Create programs that include sequences, events, loops, and conditionals. Subconcept: Control; Practice 5.2