Controlled PWM Voltage - Model pulse-width modulated voltage source

Library

Actuators & Drivers

Description

The Controlled PWM Voltage block represents a pulse-width modulated (PWM) voltage source that depends on the reference voltage Vref across its +ref and -ref ports. The duty cycle is

where:

The value of the Output voltage amplitude parameter determines amplitude of the output voltage.

At time zero, the pulse is initialized as high, unless the duty cycle is set to zero.

Basic Assumptions and Limitations

The model is based on the following assumptions:

Dialog Box and Parameters

PWM frequency

Frequency of the PWM output signal. The default value is 1000 Hz.

Input value Vmin for 0% duty cycle

Value of the input voltage at which the PWM signal has a 0% duty cycle. The default value is 0 V.

Input value Vmax for 100% duty cycle

Value of the input voltage at which the PWM signal has a 100% duty cycle. The default value is 5 V.

Output voltage amplitude

Amplitude of the PWM signal when the output is high. The default value is 5 V.

Simulation mode

The type of output voltage can be PWM or Averaged. The default mode, PWM, produces a pulse-width modulated signal. In Averaged mode, the output is a constant whose value is equal to the average value of the PWM signal.

Ports

The block has the following ports:

+ref

Positive electrical reference voltage.

-ref

Negative electrical reference voltage.

PWM

Pulse-width modulated signal.

REF

Floating zero volt reference.

Examples

See the Linear Electrical Actuator (System-Level Model) and Linear Electrical Actuator (Implementation Model) demos.

See Also

Stepper Motor Driver

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS