I wrote a program in order to use Pulse Width Modulation to simulate a sinusoidal signal.
Added a low pass filter to get rid of the noise and the traces of it being a discrete signal.
Added a half wave rectifier in order to delete the negative part of the signal, however it only deleted 20% of it instead of the intended 50%.
Questions:
Why is this happening, how do I get rid of the other 30%? Does it have something to do with the high frequency of the PWM?
What could I do to increase the output AC voltage from 3V to 10V or 100V? (I do know voltage multipliers) but I'm looking for another way.
Can this be used to power up circuits without damaging them?
How can I add 10A of current to my final AC output?