Trying to replicate an accelerator pedal using a differential amplifier

AI Thread Summary
The discussion focuses on replicating the voltage signals from an accelerator pedal for a 6.0 L Diesel engine using a differential amplifier. The user has observed a consistent voltage difference of 0.6 volts between two signals but struggles to achieve precise output in real-life testing compared to simulations. Suggestions include using rail-to-rail op amps for better voltage range and adjusting resistor values to improve output accuracy. Additionally, ensuring equal resistance at the op amp input pins and adding decoupling capacitors to the IC supply pins are recommended for better performance. The user is seeking further assistance to resolve the discrepancies in voltage readings.
jacadams
Messages
1
Reaction score
0
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!
 

Attachments

  • Schematic.JPG
    Schematic.JPG
    55.7 KB · Views: 532
Engineering news on Phys.org
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 don't 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.
 
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?
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...

Similar threads

Replies
14
Views
2K
Replies
11
Views
3K
Replies
10
Views
2K
Replies
28
Views
8K
Replies
13
Views
4K
Replies
16
Views
5K
Replies
18
Views
5K
Back
Top