I'm working on a flight simulator and need to use our Arduino Due to send -10V to +10V to a hydraulic pump that controls the pitch and roll on the simulator.
Could I achieve something like this using the DUEs built in DAC and scaling up the voltage with an op amp?
If this would work, I could really use a schematic and parts list to follow. I'm more of a programmer than an electrical engineer.
I assume you're asking for a ±10volt signal for a motor driver, not a ±10volt to drive the motor. Attached example diagram will do that. You need a bi-polar ~12volt supply, with decoupling on the opamp (not drawn). The 5k resistor can be 2*10k in parallel.
Leo..
@Wawa Your assumptions are correct. We have a PC power supply that can provide the bipolar 12V. Any recommendation on an IC I could use for the op amp?
A 741 is a >50-year old dinausaur.
Still used in many example diagrams, but yeah-nah, museum stuff.
It's sibbling, the LM358, is already heaps better.
Not sure if it can reach +10volt on a bi-polar 12volt supply.
Also depends on the 'load' (input impedance) of the motor driver you're connecting it to.
Reaching -10volt won't be a problem.
Haven't bought any modern general purpose opamps for years (still using old stock).
Maybe others have a recommendation for a GP opamp with rail2rail outputs for a ±12volt supply.
Leo..
Yes, the TL07x and TL08x (single/double/quad) J-fet opamps used to be the default GP opamp in the eighties/nineties.
Still have a few tubes of those. No rail2rail outputs though.
Leo..
For future reference, I asked an Electrical Engineer I know what OpAmp to use and he suggested the LM7322. (This meets the specific requirements of my project.)
It looks like they only have a surface mount version of it. Not ideal, but I can work with that.
I had to add a .1uf capacitor to the output of the schematic to get rid of some noise from a power supply. Does this change the offset? Because now I'm getting -7 to 12 as the range.
Although I'm not familiar with this opamp in general you should not drive a high gain amplifier straight into a capacitor especially one as high as 0.1µf.
I suggest you put a 0.1 cap from the +12V to ground and another from the -12V to ground. If you still have noise you can add resistor at the output of the amplifier of the order of 100 ohms then add a 0.01 cap. You might get by with a 0.1 after the 100 ohms but I'm not sure with this amp.
Note when I say at the output I mean after the 10k feedback resistor. If your input is low impedance the 100 ohms could be a problem but its likely you are driving a high enough impedance so the 100 ohms will not cause you an issue.