I have a project which uses a quadrature oscillator (dual opamp driven using positive and negative supply voltages (AC Wave) to generate a sine wave and a cosine wave 90 degrees apart). These AC waves are then used to drive dc motors in both directions. The circuit allows "tuning" through 2 pots to control "symmetry" between the two waves and frequency.
Was wondering if it would be feasible to replicate this using PWM output from an arduino. I know enough to be able to control both the frequency and duty cycle of the pwm output, but I'm a little stumped about how to get from the pwm output to bidirectional wave output and be able to "tune" waves with pots.
An hbridge would reverse the motors but I think I'd have to use 2 pwm outputs (one for the postive part of the wave and one for the negative part and keep them exactly out of phase with each other, but that seems a little dicey?
Does anyone have any experience with this type of thing? Thanks!