File:Sigma-delta PWM.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 500 pixels, file size: 316 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Main signals of a sigma-delta Pulse-Width Modulation (PWM). The input signal is one period of sinusoidal waveform, the error signal, the integrated signal and the final Σ−Δ PWM signal.
    Created using Maxima:
    freq : 0.05;
    stepSize : 2e-2;
    stepLim : ceiling(1/(freq*stepSize));
    hyst : 0.15;
    Xgrid : [0];
    Xaxis : makelist(k*stepSize,k,0,stepLim)$
    refSignal(t) := sin(2*%pi*freq*t);
    intSignal : [0];
    errVal : [0];
      /* this loop takes quite some time to execute */
    pwmSignal : block(x:[1],for i:1 thru stepLim step 1 do block(
        errVal : append(errVal,[refSignal(i*stepSize) - x[i]]),
        intSignal : append(intSignal,[intSignal[i]+(errVal[i]*stepSize)]),
        if (intSignal[i+1] > hyst) then 
            x : append(x, [1])
        elseif(intSignal[i+1] < (-hyst)) then 
            x : append(x, [-1])
        else
            x : append(x, [x[i]])),
        x
    )$
    Xgrid : block(x:[],for k:2 thru stepLim step 1 do 
        if(pwmSignal[k-1]#pwmSignal[k]) then 
            x : append(x,[Xaxis[k]]),
        setify(x));
    plot1 : gr2d(
        user_preamble="set format x \"\";set bmargin 0;
            set format y \"\"",
        font="Times",grid=true,xtics=Xgrid,
        points_joined=true,point_type=dot,
        points(Xaxis,errVal),yrange=[-2,2],
        color=green,explicit(refSignal(t),t,0,20),
        ytics={-2,-1,0,1,2},ylabel="Ref. and Error"
    )$
    plot2 : gr2d(
        user_preamble="set format x \"\"; set tmargin 0;
            set bmargin 0",
        font="Times",grid=true,xtics=Xgrid,
        points_joined=true,point_type=dot,
        color=magenta,points(Xaxis,intSignal),
        yrange=[-.25,.25],ytics={-.2,0,.2},
        ylabel="Integration"
    )$
    plot3 : gr2d(
        user_preamble="set format x \"\";set bmargin 1.75;
            set xlabel \"Time\" 0,1.5",
        font="Times",grid=true,xtics=Xgrid,
        points_joined=true,point_type=dot,
        points(Xaxis,pwmSignal),yrange=[-1.25,1.25],
        ytics={-1,0,1},ylabel="Sigma-Delta PWM"
    )$
    draw(terminal=svg,file_name="Sigma-delta PWM",
        plot1,plot2,plot3);
    
    Date
    Source Own work based on: Sigma delta.png by Cyril BUTTAY
    Author Krishnavedala
    SVG development
    InfoField
     The source code of this SVG is invalid due to 2 errors.
     This W3C-invalid vector image was created with Maxima.
      This file uses embedded text that can be easily translated using a text editor.
    This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: recreated in vector graphics. The original can be viewed here: Sigma delta.png: . Modifications made by Krishnavedala.

    Licensing

    Krishnavedala, the copyright holder of this work, hereby publishes it under the following licenses:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    This licensing tag was added to this file as part of the GFDL licensing update.
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    You may select the license of your choice.

    Original upload log

    This image is a derivative work of the following images:

    • Sigma delta.png licensed with Cc-by-sa-2.5,2.0,1.0, Cc-by-sa-3.0-migrated, GFDL
      • 2006-06-06T20:41:54Z CyrilB 1500x1050 (95208 Bytes) {{Information |Description=Main signals of a sigma-delta Pulse-Width Modulation (PWM) |Source=Own Work |Date=6/6/2006 |Author=Cyril BUTTAY |Permission=as licenced |other_versions= }}

    Template:Uploaded with derivativeFXs=d

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    30 May 2011

    323,357 byte

    500 pixel

    600 pixel

    image/svg+xml

    3593efe4e2bd9aa523813fcde5f09c5be0b957e9

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current19:18, 30 May 2011Thumbnail for version as of 19:18, 30 May 2011600 × 500 (316 KB)wikimediacommons>Krishnavedalaadded unicode font for sigma-delta

    There are no pages that use this file.