![]() Connect the Constant block to the input of the SetMotor block.Ħ. Motor Channel is the pin to which the DC motor is connected.ĥ. Drag the DC Motor block from the Actuators subsystem within the VEX Microcontroller library to your model. Drag the Terminator block from the Utilities subsystem within the VEX Microcontroller library to your model.Ĥ. Set the value of the Constant block to 127.ģ. Drag the Constant block from the Utilities subsystem within the VEX Microcontroller library to your model. ![]() In MATLAB, select HOME > New > Simulink Model.Ģ. In this task, you will create a simple Simulink model that sets a DC motor connected to pin 3 on the VEX microcontroller to rotate at maximum speed (the DC motor block accepts speeds between -127 and 127).ġ. Task 2 - Create a Model for VEX Microcontroller Review the block mask, which contains a description of the block and the Motor Channel as an input parameter. Double-click the DC Motor block in Actuators subsystem within the VEX Microcontroller library. In the Simulink model, from the Simulation tab, navigate to Library Browser > *Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller.ģ. ![]() This opens the Simulink Library Browser.Ģ. Task 1 - Review the Block Library for the ARM Cortex-based VEX Microcontroller Support Packageġ. Standard DC Motor and Motor Controller 29
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |