• AVR Freaks

Hot!Mcp4725 buffering output current

Author
vettett15
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2019/09/17 07:42:43
  • Location: 0
  • Status: offline
2019/09/18 14:22:40 (permalink)
0

Mcp4725 buffering output current

Hello,

I'm working on a design to "digitize" an old analog vehicle sensor and running into some issues that I believe are tied to trying to drive the SAR ADC in the ECU.

The OEM sensor (see figure below) takes in +5V (provided by ECU) and runs that voltage through a fancy voltage divider and outputs a signal between 0.25V and 4.7V. This output voltage is sent to the ECU which has some R's and C's before it hits the SAR ADC.

I started a design which gets rid of the analog voltage divider and replaces it with a custom CCA which at its heart is a ATMEGA328P Microcontroller. The air flow sensor provides data to the microcontroller which I then use to tell how much voltage the DAC should output.

Originally I had the output of the DAC connected straight to the ECU (i.e. no OpAMP) but during my design I took some amperage measurements on the OEM sensor and saw that the sensor to ECU line had as much as ~115mA on it.... Note that I don't have a ton of confidence in this number, we measured one car and the amperage was 30mA and then measured a second car and and got 115mA... I need to verify these measurements using better equipment but either way since the DAC is only able to output 25mA max, I decided I needed to buffer the output of the DAC.

After doing some research and speaking with TI support I decided to use the TLV4111, a main reason is that I wanted to ensure I could swing close to the rails (same voltage I'm powering the Op Amp with).

I built the digital version both ways, with and without the Op Amp. On the bench, I use a potentiometer to load the output and take voltage and amperage measurements to see how they perform. As expected the one with the DAC starts to drop voltage well before 25mA while the design with the Op Amp can pull nearly 250mA before dropping voltage.

The interesting thing is that when these two devices were installed on a vehicle, it was the "no Op Amp" version that did better. Unfortunately I wasn't present during the testing and don't have any voltage/current measurements but the vehicle without the Op Amp digital design was able to drive (still ran rough) while the Op Amp design was only able to idle and you couldn't even rev up the engine.

Since I was unable to get any measurements, I decided to get some more data on the ECU (which was unfortunately an unknown at the time) and took it apart to get some data. It turns out the ADC in the ECU is a SAR ADC (Siemends 80C515) that has a 25 to 45pF capacitance. There is a flywheel circuit in front of this ADC which consists of a 38nF cap and 6.8k Ohm resistor. Thus I realized that I was greatly exceeding the capacitance load of the Op Amp (and DAC for that matter too) which is likely causing some instability issues for me. You can see the circuits in the figures attached to this request.

My question is, what are my options here? I looked at circuits to help keep the Op Amp stable, it seems the best one is to put a low value resistor on the output of the Op Amp but I can't do that because I'm trying to swing close to the rails. I started to read about a snubber circuit but I'm not sure if that is suitable here either.
#1

5 Replies Related Threads

    vettett15
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/09/17 07:42:43
    • Location: 0
    • Status: offline
    Re: Mcp4725 buffering output current 2019/09/20 12:40:51 (permalink)
    0


    multiplayer craps app
    post edited by vettett15 - 2019/09/20 12:42:04
    #2
    vettett15
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/09/17 07:42:43
    • Location: 0
    • Status: offline
    Re: Mcp4725 buffering output current 2019/09/24 17:47:03 (permalink)
    0
    Turns out my current measurements were garbage. I was originally using an inductive meter which gave me suspicious results. This time I put a meter in line with the output line of the sensor that goes to the ecu. The measurement was approx 1mA. I still think I need ti buffer the mcp4725 because the capacitive load is high. Any thoughts?
    #3
    ric
    Super Member
    • Total Posts : 23871
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Mcp4725 buffering output current 2019/09/24 18:18:54 (permalink)
    0
    Why does post#2 contain a link to an online gaming site?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    vettett15
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/09/17 07:42:43
    • Location: 0
    • Status: offline
    Re: Mcp4725 buffering output current 2019/09/24 18:20:44 (permalink)
    0
    I don't see that on my end. I'm guessing it has to do with where I hosted my pictures at. Do you see the block diagrams in post 2?
    #5
    ric
    Super Member
    • Total Posts : 23871
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Mcp4725 buffering output current 2019/09/24 18:28:21 (permalink)
    0
    It's immediately below the image. Link text is "multiplayer craps app", which links to "free online dice .com" (without the spaces).
    Sorry, have no experience with the MCP4725, so can't help with your original question.
    vettett15


    multiplayer craps app




    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5