フィルターのクリア

How to generate the proper PWM Signal to control the Simscape RC Servo Block

10 ビュー (過去 30 日間)
Clemens Herrmann
Clemens Herrmann 2021 年 11 月 20 日
回答済み: Rick Hyde 2022 年 2 月 24 日
I want to use the Simscape RC Servo Block in my simulation. For real life servos, there is usually a cycle time (e.g. 20ms) and a pulse width (e.g. 0.5-4ms) specified.
But in the documentation of the RC Servo Block there is no Cylce time specified.
Question 1: Is it correct that for the RC Servo Block the cycle time is always double the current Pulse with?
Question2: What's the best way to generate the right signal? I need a system that takes in the desired servo angle and spits out the correct pwm signal.
Thanks.

採用された回答

Rick Hyde
Rick Hyde 2022 年 2 月 24 日
An RC Servo contains its own controller that sets the output angle. The angle set set by the pulse period of the voltage applied to its control input; the longer the pulse, the higher the commanded angle. To drive an RC Servo you need a controlled PWM signal generator. Simscape has a block that does exactly this: Controlled PWM Voltage. You can configure this block to be drive either by a voltage difference (default), or a PS signal input.
Hope that helps
Rick

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePulse width modulation (PWM) についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by