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.

Servo Motor

Set shaft position of servo motor

  • Library:
  • Simulink Coder Support Package for BeagleBone Blue Hardware / Actuators

Description

The Servo Motor block represents a servo motor connected to a specified motor channel on BeagleBone® Blue hardware. Set the shaft position of the servo motor from 0 to 180 degrees.

Ports

Input

expand all

The input range is between 0 and 180. For 0 input, the shaft is at 0 degrees, while for the input of 180 the shaft is at 180 degrees. Out of range values, such as -5 or 200, to the block input has the same effect as sending the minimum or maximum input values.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

Parameters

expand all

Select the motor channel or pin on the BeagleBone Blue hardware that is connected to the servo motor.

To open the pin map, click View pin map button.

Assign a unique channel number for more than one Servo Motor block within a model.

Introduced in R2018b