Main Content

Servo Motor

Set shaft position of servo motor

  • Servo Motor block

Libraries:
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.

Version History

Introduced in R2018b