All-
I am using Teensy 4.1's for my static Boeing 727 simulator which uses OEM parts and have run into an issue using opamps with the Teensy.
I have designed a circuit to use the 3.3 PWM output of a Teensy 4.1 channel to modulate a -10 to +10vdc signal using an opamp. I have attached the schematic for this circuit. Using a Siglent benchtop power supply, this circuit performs flawlessly; the output is linear and it is able to cover the -10 to +10vdc rails that are necessary for this application (see red line in graph).
When I use the teensy to drive the Opamp, however, the response is very erratic in the midrange. Today I mapped out this response in 0.1vdc increments from 0 to 3.3vdc (blue line) using the siglent as well a Teensy 4.1 set to 8 bit resolution (yellow line) as well as 12 bit resolution (green line). This occurs with both the Lm358 opamp as well as the Op2134. See attached graph to observe the distortion. I am not able to obtain -1.7v at all and the rest of the mid range and the big dip at upper range are not anomalies that I can code for. Does anyone have any suggestions?
Many thanks!
Jon Weiswasser
I am using Teensy 4.1's for my static Boeing 727 simulator which uses OEM parts and have run into an issue using opamps with the Teensy.
I have designed a circuit to use the 3.3 PWM output of a Teensy 4.1 channel to modulate a -10 to +10vdc signal using an opamp. I have attached the schematic for this circuit. Using a Siglent benchtop power supply, this circuit performs flawlessly; the output is linear and it is able to cover the -10 to +10vdc rails that are necessary for this application (see red line in graph).
When I use the teensy to drive the Opamp, however, the response is very erratic in the midrange. Today I mapped out this response in 0.1vdc increments from 0 to 3.3vdc (blue line) using the siglent as well a Teensy 4.1 set to 8 bit resolution (yellow line) as well as 12 bit resolution (green line). This occurs with both the Lm358 opamp as well as the Op2134. See attached graph to observe the distortion. I am not able to obtain -1.7v at all and the rest of the mid range and the big dip at upper range are not anomalies that I can code for. Does anyone have any suggestions?
Many thanks!
Jon Weiswasser
Attachments
Last edited: