You can change it also by having more or fewer samples in your code.
What sort of current have you got there? You will struggle to get a capacitor that will handle a lot of ripple current.
fewer sampels= lower resoultion of the sine wave
cause I will actually uses the signals to drive an H bridge.
The current will be about 2A.
I haven't been following this thread much, but if you're trying to drive a three phase motor, you need three equally spaced phases to do it. The Arduino due will only give you two.Variable frequency drives very the frequency Of three sine wave generators. They do not actually use PWM. My advice is to change the motor to a single phase or DC motor. Or get a external Sine wave generator that will produce three Phase.Joe.
So why even bother with a sin wave anyway because the h bridge will turn that back into a square wave so you might just as well have a square wave driving your bridge.
Well I need a pwm signal to drive my h bridge.
So now you know what I mean
So as I asked before is it possible to vary the frequency of the sine waves in a better way than the index items
Not sure exactly what you're trying to do, and from what I have read not many that has responded understand it either.Joe.
I do know that PWM Voltage control is directly related to the current draw Versus the current input in the circuit. The voltage is maintained by maintaining the current input.Not directly regulating the voltage.
I hope that you understand now what I mean
But if you drive a motor @ 30 KHz with a square wave like pwm you will have losts
This is why I look for a better way to vary the frequency of the sine wave than delay or less sine items
You still have not said what range of frequency you need. I am assuming that it isn't going fast enough for you.The only other way with the technique of using a processor to do the generation is to vary the clock frequency, but you don't want to go there for many reasons. Or you could get a faster processor.It looks like using a Due is a dead end for your project.