Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
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);
Cita come
Michael Wunder (2026). PWM Signal from SoundCard (https://it.mathworks.com/matlabcentral/fileexchange/9366-pwm-signal-from-soundcard), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.0.0.0 (1,46 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
Community
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.0.0.0 |
