Skip to main content
Teacher Portal

Alternate Coding Methods

This STEM Lab Unit is written for use with the Coder and Coder cards.  However, you can adapt the Labs in this Unit to use VEXcode 123 or Touch buttons for the coding activities. This flexibility can help you meet the individual needs of your students. For example, if your students are familiar with VEXcode 123, they can complete all the coding activities with VEXcode 123. The Summary section of each Lab contains additional information that can help you modify the individual Lab. 

VEXcode 123 Adaptation

If using VEXcode 123 with this Unit, students can use the following blocks to drive the 123 Robot in the coding activities. For more information on how to work with VEXcode 123, see the VEXcode 123 Section of the STEM Library.

VEXcode 123 Block Behavior
A Drive for VEXcode 123 block that reads Drive forward for 1 step.

The [Drive for] block moves the 123 Robot forward or in reverse a given distance. 

Set how far the 123 Robot will move by entering a value into the oval.

A Turn for VEXcode 123 step that reads Turn right for 90 degrees. The [Turn for] block turns the 123 Robot in place to the left or right for a specified number of degrees.
  • Students can build the same projects using the Drivetrain blocks in VEXcode 123. To fix the bug in the project, they can adjust the parameters of the blocks, like the example shown here.A Turn for VEXcode 123 block with the direction parameter open and left selected. The block reads Turn left for 90 degrees.
  • To recreate the projects for Play Part 1 of Lab 1, the VEXcode 123 projects could look like this:A side by side image of the Bugged and Debugged Project. The bugged project reads When started, drive forward for 2 steps, turn left for 90 degrees, drive forward for 1 step. The Debugged project reads When started, drive forward for 2 steps, turn right for 90 degrees, drive forward for 1 step.
  • To recreate the projects for Play Part 2 of Lab 1 and Play Part 1 of Lab 2, the VEXcode 123 projects could look like this:A side by side image of the bugged and debugged projects. To the left, the bugged project reads When started, drive forward for 2 steps, turn right for 90 degrees, drive forward for 1 step. To the right, the debugged project reads When started, drive forward for 1 step, turn right for 90 degrees, drive forward for 1 step.
  • In Lab 2, students will use the Step feature as part of the debugging process, to help them more easily find a bug in their project. To learn more about stepping through a project in VEXcode 123, see this STEM Library article. To recreate the projects for Play Part 2 of Lab 2, the VEXcode 123 projects could look like this: A side by side image of the bugged and debugged projects. To the left, the bugged project reads When started, drive forward for 2 steps, turn right for 90 degrees, drive forward for 1 step. To the right, the debugged project reads When started, drive forward for 2 steps, turn left for 90 degrees, drive forward for 1 step.

Touch Adaptation

  • Students can also use the Touch buttons on the 123 Robot to complete the debugging activities in this Unit. If using Touch, you may find it useful to give students VEX 123 Printables, like the printable touch buttons or the fill in project and motion planning printables, so that they have a visual representation of their project to aid in debugging. 
  • For more information about coding using the Touch buttons on the 123 Robot, see the Coding with the Touch Buttons on the 123 Robot STEM Library article.
  • To recreate the projects for Play Part 1 of Lab 1 with Touch buttons, the sequences could look like this: Two touch button sequences are shown one above the other in a table, representing the bugged project on top and the debugged project below. The bugged project shows a sequence of Drive, Drive, Left, Drive. The debugged project has a different 3rd button press, to be Drive, Drive, Right, Drive.
  • To recreate the projects for Play Part 2 of Lab 1 and Play Part 1 of Lab 2 with Touch buttons, the sequences could look like this: Two touch button sequences are shown one above the other in a table, representing the bugged project on top and the debugged project below. The bugged project shows a sequence of Drive, Drive, Right, Drive. The debugged project has only 3 button presses - Drive, Right, Drive.
  • To recreate the projects for Play Part 2 of Lab 2 with Touch buttons, the sequences could look like this: Two touch button sequences are shown one above the other in a table, representing the bugged project on top and the debugged project below. The bugged project shows a sequence of Drive, Drive, Right, Drive. The debugged project has a different 3rd button press, to be Drive, Drive, Left, Drive.