Skip to main content

The image shows a small dog, likely a Jack Russell Terrier, sitting on a doormat inside a home. The dog is looking up with a slightly tilted head, giving an inquisitive or expectant expression. In front of the dog on the mat is a coiled-up leash, suggesting the dog is waiting to go for a walk. The setting indicates a moment of anticipation, as if the dog is ready and waiting for its owner to take it outside

Event-based Programming

If your dog brings you his leash or sits by the door, he’s letting you know that he needs to go outside. In school, when your teacher asks a question and sees you raise your hand, they believe you know the answer and would like to answer the question. These behaviors are also known as “triggers.”


Your dog knows that bringing you his leash or sitting by the door is the trigger that lets you know he needs to go outside. So, when you see him sitting by the door with his leash, you react to the trigger by taking him outside. Raising your hand is the trigger that lets the teacher know you would like to answer the question. The teacher then reacts to the trigger by calling upon you.


Event-based programming in robotics is when certain robot behaviors trigger the robot to do certain things or react to certain triggers.
 

Controller: Clawbot Control


Now, you’re ready to explore the Clawbot Controller with Events example project and use the Controller to operate the Clawbot, its Arm, and its Claw, all at the same time!

The image shows an icon depicting a game controller with an image of a robot arm holding a claw positioned above it. Below the icon, the text reads
Ensure you have the hardware required and your engineering notebook. Open VEXcode V5.

Materials Required:
Quantity Materials Needed
1

Clawbot

1

Charged robot battery

1

VEX V5 Radio

1

Controller

1

Tether Cable

1

VEXcode V5

1

USB Cable (if using a computer)

1

Engineering Notebook

Before you begin the activity...

Do you have each of these items ready? The Builder should check each of the following:

  • Are all the motors and sensors plugged into the correct port?

  • Are the smart cables fully inserted into all of the motors?

  • Is the battery fully charged?

  • Is the Controller paired with the Robot Brain?