Skip to main content
Teacher Portal

Answer the following questions in your engineering notebook as you design your project.

  1. What do you want to program the robot to do? Explain with details.
  2. How many conditions will your project need to check in the if else statement?
    1. Remember that the LeftOrRight project only needed one more condition after a press of the screen was detected.
    2. This project uses four buttons: left upper, left lower, right upper, and right lower. How many conditions will the project need to check after detecting that the screen has been pressed? Explain with details.
    3. Hint: The project can check if the screen is pressed by using an if else statement. Then you will need to nest three if else statements within the if else statement, with some nested inside of each other.

Follow the steps below as you create your project:

Teacher Tips icon Teacher Tips

  • Before moving on to the next step of programming, have students review and evaluate their pseudocode by following the steps in the context of pressing the screen's buttons. View an example of what the pseudocode might look like for this challenge by clicking one of the following links (Google Doc/.docx/.pdf).
  • Remind students that they can use the Help feature inside of VEXcode V5 to assist them.

Teacher Toolbox icon Teacher Toolbox

  1. The objective is to program the Clawbot to open or close the claw when either of two respective buttons is pressed on the Brain's screen (i.e., one button for opening the claw and another for closing the claw). Additionally, the project should also have the Clawbot raise or lower the claw arm when either of two other buttons are pressed (one button for raising the arm and another for lowering the arm). This means that the project should create four buttons in total on the Brain's screen. Those buttons should be clearly visible to the user to improve the User Experience. So events and drawing instructions will be needed to have the buttons drawn on screen.

  2. This question is intended to get the students thinking about the conditions needed inside the if else statements. The four buttons will require three conditions to be checked after detecting that the screen has been pressed. The screen being pressed is technically the first condition checked but is not included in the tally of three conditions. The three conditions that need to be checked depend on how the programmer wants to organize the project but no matter which, both x- and y-value coordinates need to be checked. However, one axis only needs to be checked once and the other needs to be checked twice.

  1. Plan out the conditions that your project needs to check using drawings and pseudocode (Google Doc / .docx / .pdf). Also, plan for the part of your project that will draw the four buttons on the screen. Decide on their colors.
  2. Use the pseudocode you created to develop your project.
  3. Test your project often and iterate on it using what you learned from your testing.
  4. What could you add to your project to better control the Claw and Arm Motors? Explain with details.
  5. Share your final project with your teacher.

Teacher Tips icon Teacher Tips

Encourage students who are having trouble programming to review the Creating a Stop Button Example Project. They should also use their LeftOrRight projects from Play as guidance.

If you're having trouble getting started, review the following: 

  • Creating a Stop Button example projectImage of the creating a stop button example project in VEXcode V5 Python
  • Using if-else Statements in VEXcode V5 Python (Google Doc/.docx/.pdf)
  • Previous version of your LeftOrRight project