File:Pwm.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 600 × 500 pixels. Other resolutions: 288 × 240 pixels | 576 × 480 pixels | 922 × 768 pixels | 1,229 × 1,024 pixels | 2,458 × 2,048 pixels.
Original file (SVG file, nominally 600 × 500 pixels, file size: 71 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionPwm.svg |
English: Principle of the intersective pulse width modulation (PWM). Created with maxima.
Русский: Принцип перекрёстной широтно-импульсной модуляции |
Date | |
Source | Own work based on: Pwm.png by CyrilB |
Author |
Vector: |
Other versions |
|
SVG development InfoField | This W3C-invalid diagram was created with Gnuplot. This plot uses embedded text that can be easily translated using a text editor. |
Source Code
|
---|
sawtooth(t) := t - floor(t);
freq : 0.05$
sinesignal(t) := (1/2)+(499/1000)*sin(2*%pi*freq*t);
pwm(t) := if(sawtooth(t) >= sinesignal(t)) then 0 else 1;
load(draw)$
n : 1e4;kill(crossing);
crossing : (x:[0],
for i:0 while i<20*n do
if( pwm(i/n)#pwm((i+1)/n) ) /* detect edge */
then x:append(x,[(i/n)]),
setify(x));
length(crossing); /* copy the x-tics from here */
source : gr2d(
font="Times",nticks=50,
grid=true,ytics={0,1},yrange=[-.25,1.25],
user_preamble="set format x "";set xlabel "" 0,1;
set bmargin 0;set tmargin 0",
xtics= {0,0.592,0.999,1.762,1.999,2.893,2.999,3.973,
3.999,4.998,4.999,5.975,5.999,6.911,6.999,7.816,7.999,
8.698,9,9.567,10,10.432,
10.999,11.301,11.999,12.183,12.999,13.088,13.999,14.024,
14.999,15.001,15.999,16.026,16.999,17.106,17.999,18.237,
18.999,19.407,19.999},
xlabel="",ylabel="source signals",
explicit(sawtooth(x),x,0,19),
color=red,explicit(sinesignal(x),x,0,19)
)$
pwm_plot : gr2d(
font="Times",nticks=50,
grid=true,ytics={0,1},yrange=[-.25,1.25],
user_preamble="set format x "";set bmargin 2.25",
xtics= {0,0.592,0.999,1.762,1.999,2.893,2.999,3.973,
3.999,4.998,4.999,5.975,5.999,6.911,6.999,7.816,7.999,
8.698,9,9.567,10,10.432,
10.999,11.301,11.999,12.183,12.999,13.088,13.999,14.024,
14.999,15.001,15.999,16.026,16.999,17.106,17.999,18.237,
18.999,19.407,19.999},
xlabel="Time",ylabel="PWM signal",
color=magenta,explicit(pwm(x),x,0,19)
)$
draw(terminal=svg,file_name="Pwm",
source,pwm_plot);
|
I, the copyright holder of this work, hereby publish it under the following licenses:
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- 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 file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
You may select the license of your choice.
Original upload log
[edit]This image is a derivative work of the following images:
- Pwm.png licensed with Cc-by-sa-2.5,2.0,1.0, Cc-by-sa-3.0-migrated, GFDL
- 2006-03-23T08:44:47Z CyrilB 1500x1050 (87343 Bytes) Cyril BUTTAY Principle of the intersective pulse width modulation (PWM). This figure has been made using gnuplot 4.0 and the following code: # This file is used to generate a plot that explains the # principle of the inte
Uploaded with derivativeFX
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 00:44, 29 May 2011 | 600 × 500 (71 KB) | Krishnavedala (talk | contribs) | {{Information |Description=Principle of the intersective pulse width modulation (PWM). Created with following maxima code. <source lang="gnuplot"> sawtooth(t) := t - floor(t); freq : 0.05$ sinesignal(t) := (1/2)+(499/1000)*sin(2*%pi |
You cannot overwrite this file.
File usage on Commons
The following 3 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on lv.wikipedia.org
- Usage on vi.wikipedia.org
- Usage on zh.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Image title | Produced by GNUPLOT 4.5 patchlevel 0 |
---|---|
Width | 600 |
Height | 500 |