Robot Specific Blocks#

Looks#

Robot Looks#

Glow#

The Glow block is used to set the glow color of the indicator light in the center of the 123 Robot.

This is a non-waiting block and allows any subsequent blocks to execute without delay.

Glow block for 123 Robot, setting indicator light color; example shows green glow for 3 seconds before turning off.

Select which color to glow or to turn off the glow.

Glow block for the 123 Robot, setting the indicator light color, demonstrating green glow for 3 seconds.

In this example, the 123 Robot will glow green for 3 seconds before the glow turns off.

123 Robot glowing green for 3 seconds, demonstrating the Glow block in action.

Monitor Looks#

The virtual 123 Robot also has access to all standard VR Looks blocks. Go here to access documentation for the VEXcode VR Looks blocks.

Sound#

Play sound#

The Play sound block is used to play the sound effect that is selected.

This is a non-waiting block and allows any subsequent blocks to execute without delay.

Play sound block for the 123 Robot, used to select and play sound effects without waiting other actions.

Select which sound effect to play.

Image of the Play Sound block used in VEXcode VR to select and play sound effects for the 123 Robot.

In this example, the 123 Robot will play a doorbell sound.

Image of a 123 Robot playing a doorbell sound using the Play Sound block in a programming environment.

Actions#

Act#

The Act block is used to act sad, happy, or crazy by having the 123 Robot perform a sequence of drive, turn, and sound behaviors.

This is a non-waiting block and allows any subsequent blocks to execute without delay.

Image of a 123 Robot glow block, used to set the indicator light's glow color for various robot actions.

Select which emotion to perform.

  • Sad: The 123 Robot will drive in reverse, turn left, then right, play an ‘uh oh’ sound, and then will drive forward to mimic a sad behavior.

  • Happy: The 123 Robot will turn right 360 degrees and play a laughing sound to mimic a happy behavior.

  • Crazy: The 123 Robot will turn left in a circle, and then turn right in a circle, all while playing a ‘loopy’ sound to mimic a crazy behavior.

Image of the Glow block used to set the robot's indicator light color in VEXcode VR programming.

In this example, the 123 Robot will act crazy.

123 Robot glowing green for 3 seconds as part of a programming example using the Glow block in VEXcode VR.

Sensing#

The virtual 123 Robot has access to the standard Brain and Drivetrain Sensing blocks.

Eye Sensing#

Found object#

The Found object block is used to report if the Front Eye Sensor detects an object within approximately 40 millimeters (mm) or 1.5 inches.

Image of the Found Object block used in robot programming to detect nearby objects with the Front Eye Sensor.

The Found object block reports True when the Front Eye Sensor detects an object within approximately 40 millimeters (mm) or 1.5 inches.

The Found object block reports False when an object is not within approximately 40 millimeters (mm) or 1.5 inches.

The Found object block is used in blocks with hexagonal (six-sided) spaces.

In this example, the robot will check if its Front Eye Sensor has detected an object and print if it has or hasn’t detected anything.

123 Robot using the Found object block to detect an object within 40 mm with its Front Eye Sensor.

Detects color#

The Detects color block is used to report if the Front Eye Sensor detects the specified color of an object.

Diagram illustrating the Detects color" block for the 123 Robot's Front Eye Sensor functionality.

Select which color to detect.

Image illustrating the Detects color" block used by the 123 Robot to identify specific colors with its Front Eye Sensor.

The Detects color block reports True when the Eye Sensor detects the specified color of an object.

The Detects color block reports False when the Eye Sensor does not detect the specified color of an object.

The Detects color block is used in blocks with hexagonal (six-sided) spaces.

In this example, the robot will check if its Front Eye Sensor has detected a Blue object and print if it has detected one.

Image showing the 123 Robot detecting a blue object using its Front Eye Sensor in a programming context.

Hue of#

The Hue of block is used to report the hue value of the color detected by the Eye Sensor.

Image showing the Brightness of block used by the 123 Robot to report the brightness of detected objects.

The Hue of block provides a hue value between 0 to 359 degrees. This provides a more precise measurement of color.

Color wheel showcasing various hues for robot glow settings in programming blocks.

The Hue of block is used in blocks with circular spaces.

In this example, the robot will print the current hue of an object. Since there is no object in front of the sensor, it will print a 0.

Hue value representation from the Eye Sensor of the 123 Robot, indicating a detected color measurement.

Eye detects bright object#

The Eye detects bright object block is used to report if the Eye Sensor senses a bright or dark value.

Illustration of the Eye detects bright object block, showing the robot's ability to sense brightness levels.

The Eye detects bright object block reports True when the Eye Sensor senses a brightness value greater than 70%.

The Eye detects bright object block reports False when the Eye Sensor senses a brightness less than or equal to 70%.

The Eye detects bright object block is used in blocks with hexagonal (six-sided) spaces.

In this example, the robot will only drive forward when there is a dark brightness value (below 70%) in front of it.

Image showing a robot detecting a bright object with its eye sensor, indicating brightness above 70%.

Brightness of#

The Brightness of block is used to report the brightness of the object detected by the Eye Sensor.

Image showing the Brightness of block used by the 123 Robot to report the brightness of detected objects.

The Brightness of block is used in blocks with circular spaces.

In this example, the robot will print the current brightness of an object. Since there is no object in front of the sensor, it will print a 0.

Image showing the 123 Robot glowing green for 3 seconds as part of a programming example using the Glow block.

Gyro Sensing#

Detected crash?#

The Detected crash? block is used to report if the robot has come in contact with a wall or other object.

Image of a block labeled Detected crash?" used to determine if a robot has collided with an object or wall.

The Detected crash? block reports True if the robot comes in contact with a wall or other object.

The Detected crash? block reports False if the robot does NOT come in contact with a wall or other object.

The Detected crash? block is used in blocks with hexagonal (six-sided) spaces.

In this example, the robot will drive forward until it has crashed, then it will stop moving.

Image of a robot detecting a crash after coming into contact with a wall or object, indicating a collision event.