|
|
| File Information |
| Description |
PWM Signals are used in a wide area of applications. Examples are a servos used for positioning in electromechanical control design (mechatronic). Here is a simple function that allows to create a pwm signal with a standard soundcard. Parameters are: pulsewidth and time between pulse-starts.
One restriction is that the approach allows duty cycles up to 50% only.
All you need is to add at the output of the soundcard is a resistor as load (1k) and a diode (1N4001). The image enclosed shows the output I got for:
>> PWMSound(1.5e-3,10e-3); |
| Required Products |
Data Acquisition Toolbox
|
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
| Other requirements |
standard soundcard, should work on older releases |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 04 Apr 2007 |
Oscar Campo
|
|
|
| 19 Apr 2007 |
essalhi adil
|
|
|
| 02 Jun 2008 |
oldokh tsendayush
|
|
|
| 06 Aug 2008 |
shanthanu chakravarthy
|
|
|
|
Contact us at files@mathworks.com