Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Trying to replicate an accelerator pedal using a differential amplifier

  1. Dec 3, 2012 #1
    I'm trying to replicate the voltages coming from an accelerator pedal, to the ECM, on 6.0 L Diesel engine. I acquired the three separate voltages using an oscilloscope. I have access to two analog output channels on the dyno. Out of the three voltages two them follow each other by a difference of 0.6 volts. Going from 1.58 to 4.26 and 1.00 to 3.64, equating to 0 to 100% throttle. I have uploaded the current schematic I'm trying to utilize to achieve this goal. V1 will always be 12v and V2 will be an analog output, going from 1.58 to 4.26. My original schematic was only utilizing one op amp as a differential amplifier, but the V-(pin 2 of U2A) was rising with V+. I was not getting a constant 0.6v difference between the two signals. So I then added two voltage follower circuits, as shown, to buffer the signals going into U2A. If I run the current schematic in my simulation software, everything works out great. I get a liner voltage out at Probe1 rising from 1.00v to 3.64, which is what I'm looking for. When I build the schematic in real life and test it I am getting a more constant voltage difference, but I'm not able to dial it in precisely. After some trouble shooting I found that I'm not getting the same voltage in as I'm getting out on probe 3 and probe 4. Instead of going from .568 v to .568 v it goes .568 to .738v. I've tried surfing for half a day on a solution and I'm not getting anywhere. Any help would be appreciated. Thanks!

    Attached Files:

  2. jcsd
  3. Dec 3, 2012 #2
    what type of op amps are you using? some have outputs that can't get lower than about .7 volts. Look for an op amp that is rail-to-rail, sometimes abbreviated R-R.

    Alternatively, you could change the resistors to make the output of U1A and U1B double the value you have now, and then halve the difference by making R5 and R3 to 3k instead of 1.5k.

    If your real life part is indeed a LM358 then, according to the datasheet, it should be able to go to as low as .005V and then i dont know what the problem is.

    For best accuracy (on the scale of ~1mV, not enough to cause .17V of error), the input pins of the op amps should have the same thevenin equivalent resistance, in this case this would be accomplished by adding a 500Ohm resistor between pin 1 and 2 of U1A.

    Don't forget to put decoupling caps on the supply pins of all of the ICs.
  4. Dec 3, 2012 #3
    U2A subtracts the 568 mV from U1A instead of adding it.
    Could you go to a +/- 6 volt power supply instead of a +12 volt power supply?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook