ACTIVITY:
Begin preparing for Unit 3 by building test beds with new VEX V5 kits.
Review the VEX V5 system and all the sensors/motors and ports they get plugged into.
Test Bed Build Instructions - Build your test bed. Be sure to use both the Distance AND Optical sensor on your test bed.
Once you have fully assembled your test bed, log-in to your PLTW account and complete Activity 3.1.1 Inputs and Outputs (VEX V5).
Answer all the questions throughout the activity.
All groups will complete both sensor explorations in step 18.
When finished, answer the conclusion questions at the end of the activity.
HW:
ACTIVITY:
If you need to finish building your test bed, do that now.
Once you have finished building your test bed, log in to your PLTW account, go to Activity 3.1.1 VEX Inputs and Outputs (V5) and begin testing your test bed starting at procedure #4. Be sure to do both the Distance and Optical Sensors found in Step 18, Sensor Exploration section.
When you are finished with the activity, answer the conclusion questions INDIVIDUALLY and submit to classroom.
Activity 3.1.2 Basic Outputs Programming
Begin by reviewing "Motor and Sensor Setup" and "Program Design".
Once you have setup all your motors and sensors, and understand the differences between basic, simple, and complex movements, begin working through the activity and completing all the exercises. Do NOT skip any steps as these lessons are teaching you how to program and use the VEX V5 system.
HW:
ACTIVITY:
If more time is needed, finish Activity 3.1.2 Basic Outputs Programming
Begin by reviewing "Motor and Sensor Setup" and "Program Design".
Once you have setup all your motors and sensors, and understand the differences between basic, simple, and complex movements, begin working through the activity and completing all the exercises. Do NOT skip any steps as these lessons are teaching you how to program and use the VEX V5 system.
Begin Activity 3.1.3 Basic Inputs Programming.
Complete each of the activities listed under "Team A" in procedure #4. There is no "Team B", you are all completing the "Team A" activities.
HW:
ACTIVITY:
For those that need additional time, Log in to PLTW and finish Activity 3.1.3 Basic Inputs Programming.
Copy and paste your code and submit to google classroom as a google doc.
Review Activity 3.1.4 While Loops and If-Else Structures as a class, then students get started on the activity.
Complete all the examples in the activity and test them with your test bed. Note any changes you made to the code. When you get to Part 5, complete ALL of the additional practice exercises. SAVE YOUR CODE for each exercise and show Mr. Tackett when you have successfully completed each one.
When you have finished the activity, answer these questions and submit to Google Classroom.
HW:
ACTIVITY:
Review 3.1.5 Presentation on Variables and Functions.
Begin working on Activity 3.1.5 Variables and Functions
Include comments wherever there are none in this activity.
Save the code you create for this activity. Copy and paste all of the code you write into a google document and turn in to the classroom.
When finished, begin Activity 3.1.6 Open and Closed Loop Systems.
For this assignment make sure to create TWO different files for each of the tasks you are asked to complete. Be sure to include Pseudocode and Comments for each task.
Copy and Paste your code into a google doc and submit to Google Classroom.
HW:
ACTIVITY:
If you finished Activity 3.1.6, complete the task below using an ENCODER:
TASK:
Use the built-in encoders in the motors to control how much each motor rotates. Write a program that rotates the LEFT motor 2 complete clockwise rotations, AND the RIGHT motor 2 complete counter-clockwise rotations, both at the same time. Each motor should rotate at 75% power.
Now, incorporate the potentiometer into the program, such that if its value is >60%, the right motor rotates. If its value is <36%, the left motor rotates.
Now create a function for each motor so that it runs the above code. Call each function in a while loop that runs 5 times. Hint: Create a variable called "count", and increase the count by 1 each time the loop runs.
Create a program that uses the functions you created for each motor in a loop that calls the functions only when the distance sensor senses an object is within 20 cm.
Create a program that uses the functions you created for each motor, however, this time you will have different conditions that must be met in order to call each function. For example, if the bump switch is pressed, call the function for right motor, and if the color sensor sees red, call the function for the left motor.
I'll leave it up to use to decide what you want to use as the input for your conditional, but the obvious options would be to use the color sensor, distance sensor, potentiometer values, bump and limit switches. Whatever sensors you use for your inputs, the condition of those sensors must be checked continuously.
Conclusion Questions:
Explain the difference between an open and a closed loop system in code? What are the advantages of running closed loops vs open loops?
Describe one application where encoders could be used to control a machine.
What is the advantage to using functions in your code?
Copy and paste your code for each task above, WITH COMMENTS, into a google doc and turn in to classroom with the answers to the questions above?
Begin working on your Activity 3.1.7 Machine Control Design
HW:
ACTIVITY:
Continue working on your Activity 3.1.7 Machine Control Design.
HW:
ACTIVITY:
Continue working on your Activity 3.1.7 Machine Control Design.
HW:
ACTIVITY:
Continue working on your Activity 3.1.7 Machine Control Design.
HW:
ACTIVITY:
Continue working on your Activity 3.1.7 Machine Control Design.
HW: