Quantcast
Channel: User periblepsis - Electrical Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 1465

Answer by periblepsis for Simulating Near Sine Wave PWM

$
0
0

In LTspice, perhaps an adaptation of something like this:

enter image description here

Above, v is the output voltage you want. f is the sinusoidal frequency. And r is an integer to use for oversampling of f. I set it to 25, but feel free to set it to 100, or something else. There's some flexibility here.

The Schmitt parameters may need adjustment depending on the speed of things. Here, I decided to make them constants. But they may need, instead, to be a function of the chosen frequency, like other items in the schematic already are. I just didn't want to spend the extra time on fine-tuning that. Just wanted to get across an approach with specific devices shown.


Viewing all articles
Browse latest Browse all 1465

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>