This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Modeling

Prepare model for hardware connection

Topics

Open Block Library for ARM Cortex-Based VEX Microcontroller

Open Block Library for ARM Cortex-based VEX Microcontroller

Blocks

expand all

DC MotorRepresent connected DC motor and set motor speed
Digital OutputRepresent one pin as digital output and set logical value
Servo MotorRepresent connected servo motor and set angular position value
Competition SwitchRead switch positions of VEXnet Competition Switch and provide logical values for Autonomous and Driver modes
Gamepad AccelerometerRead analog value from VEX gamepad accelerometer
Gamepad ButtonRepresent one button on VEX gamepad and read logical value
Gamepad JoystickRepresent one control axis on x-yanalog VEX gamepad joystick and read values
LCD ButtonRead logical state of selected push button on LCD Display Module
LCD ScreenDisplay text and numerical value on specified line of LCD screen
Analog InputRead the value of a sensor attached to an analog input pin
Digital InputRead the digital value of an input pin
GyroscopeMeasure yaw rotation in degrees
Integrated Encoder ModuleMeasure the rotation of a motor in ticks
Optical Shaft EncoderMeasure the rotation of a motor in ticks
Ultrasonic SensorMeasure the distance to an object: 0.02 to 2.0 meters (m)
Arcade ModuleGet the right and left wheel speed values of a robot in an Arcade configuration
Field SimulatorView the simulation speed values of a two-wheel robot
Gamepad SimulatorGet the simulation value of a VEX gamepad using Logitech F310 or XBOX Controller
Gear TransmissionSet a scalar value (1 to 4) based on input values
LatchLatch the logical value based on the change in the input signal
Real TimeSlow down simulation time close to real time

Topics

Model Configuration Parameters for ARM Cortex-based VEX Microcontroller

Parameter and configuration options for creating and running applications on the target hardware

Getting Started with VEX Microcontroller Support Package

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to run a Simulink® model on a VEX microcontroller.

Tank Robot Control using VEXnet Gamepad

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to control 2-wheeled tank robot using a VEX wireless controller.

Parameter Tuning and Signal Logging with Serial External Mode

This example shows how to perform parameter tuning and data logging with a Simulink® model running in External mode on ARM Cortex-based VEX Microcontroller targets.

Autonomous mode and Driver mode with the VEX Microcontroller

This example shows how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to implement both Autonomous mode and Driver mode in the same Simulink model.

Obstacle Detection using Ultrasonic Sensor with the VEX Microcontroller

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX microcontroller to interface the VEX ultrasonic sensor to the VEX Microcontroller and use the sensor data to control a 4-wheeled robot.

Servo Control using a Gamepad Button

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to control a servo motor using a digital button on the VEXnet Joystick.

Line Follower with Arm and Claw Position Control using Line Tracker, Potentiometer and Encoder

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to create a line follower robot with a robotic arm and claw control using the VEX Clawbot.

Turn Robot using LCD Button Press and Display Gyroscope Reading on LCD Screen

This example shows you how to use Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller to create an application in which a 4-wheeled robot turns by a degree of angle chosen by the user from the options displayed on an LCD screen.