Python PWM to LT-Spice

Python Script to generate a PWL file for LT Spice voltage sources.

Getting Started

Get the repo.

git clone git@github.com:t-xigit/pyt-lt_spice-sin-pwl.git

Warning: This project does not work in a virutal enviornment. The matplot library seems to be the problem

Prerequisites

Install required modules

pip3 install -r .\requirements.txt

Theory

(https://www.engineersgarage.com/embedded/pic-microcontroller-projects/sine-wave-generator-using-pwm-with-pic-microcontroller)

https://web.csulb.edu/~hill/ee470/Lab%202d%20-%20Sine_Wave_Generator.pdf

Give the example

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo