5-3 SPIKE ARM & DISTANCE SENSOR
MONDAY - LEGO SPIKE ARM
I can program a robot arm to move objects.
I can program a robot arm to move objects.
1. You will work with a partner. The teacher will decide if you choose or the teacher chooses. Be good if you want your choice.
Go to SPIKE PRIME and go to the build page. Look for the Driving Base 2. One person will build the robot. The other person will build the stop sign, robot arm and attach the distance sensor. The person attaching the sensor is to skip steps 18-22. We will not be attaching the force sensor yet.
Go to SPIKE PRIME and go to the build page. Look for the Driving Base 2. One person will build the robot. The other person will build the stop sign, robot arm and attach the distance sensor. The person attaching the sensor is to skip steps 18-22. We will not be attaching the force sensor yet.
2. We are making adjustments to the above lessons. First we need to learn how to make the robot move and how to make the arm go up and down.
The pink blocks assume you are plugged into A and B. Which ports are your motor wheels plugged into? Set this code first.
We will want to change the speed of the motors. It it drives too fast, it will be less accurate. Also, we do not need the arm to slam down, but go down slowly.
Finally, we will make sure the robot does 1 rotation accurately each time, so we will set it to be 17.5 cm which is the circumference of the wheel (the distance around the wheel).
Code the Arm
The arm is controlled by a separate motor. Which port is this motor plugged into? This is only 1 motor so we will use a blue code block for this one. We will code this to move for .5 seconds. (code is like a circuit, if there is a break in the line, the code cannot continue and will be stuck).
We will skip the distance sensor for now.
The arm is controlled by a separate motor. Which port is this motor plugged into? This is only 1 motor so we will use a blue code block for this one. We will code this to move for .5 seconds. (code is like a circuit, if there is a break in the line, the code cannot continue and will be stuck).
We will skip the distance sensor for now.
3. After you are finished, return your tote to the cupboard and charge your robot if it needs it.
4. Exiting the classroom:
- Make sure you log off the computer. (do not turn off the computer or the monitor)
- Please stand up, push in your chair and stand behind it quietly.
- Make sure you log off the computer. (do not turn off the computer or the monitor)
- Please stand up, push in your chair and stand behind it quietly.
TUESDAY - JOURNALS
I can record my challenge in my journal.
1. Typing Club
2. My helper will pass out your journals. Everyone else will stay in their own seats today.
Take a look at the image below. This is your challenge for the week. Try to score as many points as you can in a 2 minute period. This is very similar to the First Lego League challenges, but easier.
3. Watch this video to know what to write into your journal and to understand this weeks challenge.
4. Your journals will be collected. Make sure your pencil is back in its place.
If you finished early, do some more typing. Only play games if you were rewarded free time.
Log off and line up when instructed.
WEDNESDAY - CODE THE ARM TO MOVE UP AND DOWN
I can debug a program to work correctly.
1. If you did not finish building and coding the robot from Monday, do that now.
2. Today we will not be using the instructions from the program. We will be creating our own program.
3. Write a program to try and solve each table challenge. You may test and retest by going back and forth to the tables. Please respect your classmates and do not interrupt their testing.
4. Clean up. Line up when instructed.
THURSDAY - CHALLENGE DAY
I can write code to complete a specific task.
1. Continue with the table challenges.
Rules of the Challenge.
A match lasts 2 and 1/2 minutes.
You can only touch your robot when it is in the home area, or you get a 5 point deduction from your total score.
You may not touch any objects on the table during a match, except for the items in the home area for loading or moving after being brought there.
Points will be added up at the end.
2. When you would like an "official" match scored by the teacher, raise your hand.
3. Clean up and put things away for today. Charge your robots if they need it.
4. Log off and line up when instructed.
FRIDAY - FINISH YOUR CHALLENGE AND JOURNALS
I can write code to solve a challenge.
1. Make sure you get an "official" time if you are competing against the other teams today. We will stop challenges at 8:30 today.
2. Take apart any builds that you have made. Organize the Spike Tote as it should be.
3. Complete your journals. How did you do? How many points did you earn?
3. Complete your journals. How did you do? How many points did you earn?
3. After you are all cleaned up, if there is time, you may do activities on pmaterson.net.
CSS
1B-AP-15 Test and debug (identify and fix errors) a program or algorithm to ensure it runs as intended. Subconcept: Program Development; Practice 6.1, 6.2