Configuring Smart Motors in VEXcode IQ

When starting to program with VEXcode IQ, Motor blocks will not appear in the Toolbox until a motor has been configured.

Here are the different options when configuring a motor:


Adding a Motor

select_devices_icon.update.png

To configure a motor, select the Devices window icon to open the Devices window

VEXcode_IQ_-_dev_6QwLpuyG4p.png

Select the generation that you are working with.

VEXcode_IQ_-_dev_v9vZZ2q9LM.png

Select “Add a device.”

VEXcode_IQ_-_dev_lbwmee6WwE.png

Select “Motor.”

VEXcode_IQ_-_dev_DTggQ6aQ8U.png

Select which port the motor is attached to on the VEX IQ Brain. Ports that are already configured for other devices will be unavailable.

VEXcode_IQ_-_dev_Ptmslm4Nhj.png

Once the motor has been configured, select “Done” to submit the device to the configuration.

Note: Selecting “Cancel” will undo any changes you have made to the device and will not be a part of the configuration.

Note: To configure the motor further, see the additional options below.


Changing a Motor’s Port Number

select_motor.png

You can change the port number for the Motor by first selecting the Motor in the Devices window.

VEXcode_IQ_-_dev_LAq4zENyAt.png

Then, select the plug icon in the top right corner of the Options screen.

VEXcode_IQ_-_dev_j7mXorMRtG.png

Select its port on the Port Selection screen, and the port number will turn green. Then select Done to submit the change. 


Naming Motor Directions

renaming_motors_and_block_changes.png

The Motor Options screen allows you to rename the directions the motor spins from their default of “forward” and “reverse”.  For example, if configuring the Arm Motor of a VEX IQ Clawbot, you can rename the directions to “Up” and “Down”. Then select Done to submit the device changes to the configuration. 


Renaming a Motor 

VEXcode_IQ_-_dev_hUhRHzpSXN.png

You can also rename the motor by changing the name in the text box at the top of the Options screen. If you select an invalid name, the text box will highlight red to indicate. Then select Done to submit the device changes to the configuration. 

VEXcode_IQ_-_dev_X2KuJX3yWj.png

If you change the name of a motor that is already being used in your project, you will need to update the motor name in the Block to the new name using the drop down.


Reversing a Motor

VEXcode_IQ_-_dev_sNfVIdXht4.png

The Options screen also allows the direction of the motors to be reversed.


Deleting a Motor

VEXcode_IQ_-_dev_kTPzEHTBGR.png

Motors can also be deleted by selecting the “Delete” option at the bottom of the screen.

Note: If you delete a motor that is already being used in your project, the project will not work until the blocks using that motor have also been deleted.