Standard Servo Write
R2026bSet shaft position of standard servo motor to angle specified in degrees
Libraries:
Raspberry Pi Blockset /
Basic
Description
Use the Standard Servo Write block to control the shaft angle of a servo motor attached to a pulse width modulation (PWM) output pin on the Raspberry Pi® hardware board.
During simulations without the hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation (Simulink).
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiBasiclib/Standard Servo Write"
Example: add_block("raspberrypiBasiclib/Standard Servo Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2016b