[Audio library] How to get PWM output 3.3 volts p-p?

Status
Not open for further replies.

Roel

Active member
Hey there!

For the synthesizer I'm building I use the PWM output of the teensy 3.1 to control the frequency of a low pass filter.
The documentation of the PWM output, however, states that the Signal range is approximately 1.55 Vp-p.
I want to increase this range, to get a better filter range.
What is a good way to do this?

By modifying the AudioOutputPWM object so the range becomes around 3.3 Vp-p?

Or would an opamp-gain circuit do a better job?
so the signal is scaled with a gain around 2.
I already tried the latter, but I didn't have good results yet.

thanks in advance!

Roel
 
By modifying the AudioOutputPWM object so the range becomes around 3.3 Vp-p?

Maybe. That code is quite complicated, and the trouble with full range is the DMA event happens at the compare match. So a full 3.3V range can put the event anywhere in the update cycle, perhaps leaving no time for the hardware + interrupt to respond.

Or would an opamp-gain circuit do a better job?

Certainly an opamp could be much simpler!

so the signal is scaled with a gain around 2.
I already tried the latter, but I didn't have good results yet.

Nobody can help without at least a photo or schematic, and key details, like the specific opamp and how it was powered.

Analog circuit design can be tricky, but it's a well worn path to simply increase the signal.
 
Status
Not open for further replies.
Back
Top