Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Current sense amplifier with Peak Detect & Hold (using Op Amps) .....is it OK?

Status
Not open for further replies.
T

treez

Guest
Hello,

Please can you say if my peak detector circuit is OK?…..I wondered if in real-life it may succumb to op amp horrors such as instability, inaccuracy, offset voltage, etc etc.?

Heres the schematic of the current sense and peak detect and hold…….

Schematic:
https://i47.tinypic.com/6q9y15.jpg


…..So, I must sense current in a LED lamp to see how much current is being drawn by the luninaire.

The current might be 1A, or 2A, or 3A…..up to 10A. (depends on which luminaire is connected).

The current is often PWM dimmed, and when it is, I am not interested in the average current, but just in the peak current level…..(i.e. that current that flows during the PWM dim ON interval)

The problem is, a simple current sense amplifier would have zero output during PWM dimming OFF intervals……-and then the microcontroller may unfortunately read the current during one of these zero current intervals and “think” there’s no current……….so I want to capture and hold the peak current…………

I cant use a simple diode detector, because the diode Vf introduces an error, and in any case, when the current is just 1A, the amplified sense voltage is just 100mV, and this is not enough to forward bias a diode.



Do you think this circuit (above) will be ok in real life?…it works allright on the simulator (LTspice)

The left hand side opamp will be an OPA335 in the real circuit, but I was thinking that for the right hand side opamp, I can get away with a cheap LM258…..Do you agree?


OPA335 OPAMP datasheet:
https://www.ti.com/lit/ds/symlink/opa335.pdf

LM258 opamp datasheet:
https://www.ti.com/lit/ds/symlink/lm258.pdf
 

Re: Current sense amplifier with Peak Detect & Hold (using Op Amps) .....is it OK?

Your first OP amp feedback has a time constant of 100 usec. So make sure the PWM dimming never goes below 500 usec. of ON time to get 5 time constants of settling to capture the peak. Also I don't think you have VOUT labeled properly. The peak detector output is on C3, right?
 
  • Like
Reactions: treez

    T

    Points: 2
    Helpful Answer Positive Rating
Re: Current sense amplifier with Peak Detect & Hold (using Op Amps) .....is it OK?

Thanks Tunnelabguy,

You are correct on both counts.

At one point the RHS opamp was oscillating at its output (the actual op amp output).......it was adding the 1K before C3 that stopped it oscillating.........any takers for explaining why this happened?
Also, i'd appreciate if you see any other problems
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top