There are many tutorials about SPWM but how can I create a PWM that represent a combination of 2 or more sine wave with different frequency and magnitude.
PWM output is a rectangular wave, 0 and Vcc only.
It is possible to vary the pulse width rapidly, so that the low pass filtered result represents a varying DC voltage. Use the TMRpcm library for that.
But we can use capacitor to generate a pure sine wave.
How can I implement that library?
-
A capacitor will not produce a pure sine wave from a PWM signal. It is impossible to completely eliminate the harmonic frequencies present in PWM signals.
-
Use your favorite search engine to find and download the TMRpcm library. It is intended for low quality sound reproduction.
How can generate combined sine waves on TMRpcm? Also I would like to use it like inverter not on music.
PS: I am new to arduino.
Calculate the values that would normally be read from a .wav file.
Try using the Forum search feature to look for "swpm inverter". There's some discussion here and here.
What frequency sine wave?
How many phases?
Why would an inverter require more than one frequency?
For example, a combination of 60hz and 120hz sine wave with the same magnitude. Only single phase.
I would like to combine sine waves with different frequency. I know I can do it using fourier series but I dont know how can I do it on PWM and on arduino.
Basically i would like to make waveform generator using sine waves and convert it to PWM to amplify the signal.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.