Author Topic: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit  (Read 7476 times)

0 Members and 1 Guest are viewing this topic.

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #25 on: December 13, 2022, 03:22:07 am »
Shorting the lm358 will rule out current being driven into the output, though it will heat up the op-amp a fair bit - not all lm358s are rated for constant short at 24V (are any of them?). Typically constant short to gnd for lm358 assumes room temperature and an equal split supply I.e. only shorting about 15V to ground. I guess you would already be pushing abs max power for the package at 15V, never mind at 24V

The Circuit has resistors to allow for a short, we plan to increase the shunt resistors load.

Is there anything else to consider? We still feel that transient voltages from the local HV 45kV coil could be leaking through to the circuit, this we are trying to simulate in the lab.
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: ca
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #26 on: December 13, 2022, 05:03:24 am »
Have you run this with a capacitive load? Real world 4-20mA has a lot of cable capacitance, between the two wires as well as the shield.
I always use an emitter follower rather than a lone op-amp to drive 4-20mA but use higher compliance voltage of 24VDC rail. It's generally a catastrophe if the output shorts and goes full tilt, in most plant equipment. So I monitor the ouput voltage well to detect that fault.
 

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 8007
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #27 on: December 13, 2022, 07:03:40 am »
the temperature seems to spike just before a failure.

That might support the idea mentioned earlier by others that the circuit may be breaking up into oscillations.  You'd need to get a scope hooked up and see.  If it is, you might try increasing C1603, perhaps by quite a lot.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7183
  • Country: pl
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #28 on: December 13, 2022, 10:45:33 am »
:scared:

Do you see the weird phase dip in the closed loop response of the current sense amplifier (U1601B) near 10kHz? That's C1603 ;)
Also Cload effects are involved a little, due to the voltage follower path to "amp" node through the noninverting input of U1601B with C1603 providing unity feedback starting from a few kHz.

I don't get the point of C1603 at all.
That being said, none of it obviously looks like the whole circuit should oscillate just yet. I think.

On the other hand, C1602 could be increased.
« Last Edit: December 13, 2022, 11:08:51 am by magic »
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #29 on: December 13, 2022, 01:06:16 pm »
the temperature seems to spike just before a failure.

That might support the idea mentioned earlier by others that the circuit may be breaking up into oscillations.  You'd need to get a scope hooked up and see.  If it is, you might try increasing C1603, perhaps by quite a lot.

If I reduce C1603 will that increase the oscillations and help to validate the failure mode?
« Last Edit: December 13, 2022, 01:55:57 pm by djzulu »
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #30 on: December 13, 2022, 02:05:41 pm »
:scared:

Do you see the weird phase dip in the closed loop response of the current sense amplifier (U1601B) near 10kHz? That's C1603 ;)

I don't get the point of C1603 at all.

On the other hand, C1602 could be increased.

For our application we are really not interested in any of the frequencies that are above 1 kilohertz, there is actually a smoothing capacitor on the 5 volt input to the circuit The smooths the input to about 5 Hertz. The reason is that this is a very simple circuit that takes the output of an instrument in voltage 0 to 5V and converts it to a 4 to 20 milliamp signal for transmission.

I believe that the original intention of the capacitors was to spoothen out the output if this is causing harmonics then we need to change them I can certainly increase the value of c1602 and remove c1603.

Does this explanation help regarding the oscillations and is there a way to clamp these down so that there is no possibility of oscillations causing the LM358 failure?
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7183
  • Country: pl
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #31 on: December 13, 2022, 03:04:31 pm »
But can you see what C1603 is doing?

It decreases closed loop differential gain of U1601B, which means that U1601C is mislead to believe that transmitted AC current is lower than in reality. If you remove the filter and test with 10kHz signal, you would likely find that the regulator transmits more current than at 10Hz, for the same input amplitude.

Furthermore, it ruins AC common mode rejection. Common mode signal present at the positive end of R1613 is simply passed to the output of U1601B at unity gain, due to direct feedback through C1603. This causes all sorts of extra oddities, dependent on load reactance.

The whole thing looks like its exact behavior is needlessly difficult to predict. But no, I don't have any sim example where it clearly oscillates. The phase dip I have shown is not -90°.


I don't think there would be much wrong with:
- removing C1603, to make U1601B work as proper differential amplifier, giving accurate (amplified) image of R1613 current, up to tens of kHz that this chip ought to be capable of
- increasing C1602 to a few nF (or more) to dumb down U1601C a little more; above a few kHz it will simply be a voltage follower, ignoring any feedback coming from U1601B
 
The following users thanked this post: djzulu

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 522
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #32 on: December 13, 2022, 03:28:26 pm »
Have you heard of Action Paks?   They are little isolated voltage converters that do conversions like this- zero to 5 to 4-20 mA is a standard function.  They are completely isolated with their own internal supplies for the low voltage input and the output. They come in old style relay packs and with a socket on the bottom that can go into a standard relay socket for screw terminations.  They're calibratable with a span and zero pot. This is the kind of thing you need- with Isolation.  There are other vendors and they're available for DIN rails too.  I think this little pump with a bare op-amp output heading out into a dirty plant driving a bunch of cable needs more than a tweak of some caps values.  We haven't talked about grounds yet, I suspect this is the real issue.  If you take your delicate little op-amp output, go through a bunch of cable and then a single ended sense resistor that is grounded at the receiver, you just negated most of purpose of 4-20 mA.  4-20 mA loops need to exist as loops with the sender floating and the return current coming back to the sender.  You can establish a ground at only one point.  This application requires isolation.  You also have your input referenced to ground which is getting pulled or pushed by the remote receiver's ground.  Grounds in a industrial environment 400m away have nothing to do with  your ground.  I suspect that there are ground imbalances that are pulling that little LM358 way out of its abs maxes.  Put in an Action Pack and call it a day- fully isolated problem solvers.  Keep this circuit as a summer intern project for the future and maybe a lesson on 4-20 mA loops that the student will never forget.

You could use a 4-20 mA to 4-20 mA to preserve this circuit on your board.  Run your 4-20 mA in and let it produce isolated 4-20 mA for the industrial run.  Cleaner probably.
« Last Edit: December 13, 2022, 06:01:52 pm by jwet »
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: ca
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #33 on: December 13, 2022, 04:40:09 pm »
It looks like OP using a PWM DAC with a 1st order LPF. What carrier frequency? I would expect a lot of HF ripple coming in to the op-amp which might aggravate things.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #34 on: December 13, 2022, 06:46:33 pm »
Have you heard of Action Paks?   They are little isolated voltage converters that do conversions like this- zero to 5 to 4-20 mA is a standard function.  They are completely isolated with their own internal supplies for the low voltage input and the output. They come in old style relay packs and with a socket on the bottom that can go into a standard relay socket for screw terminations.  They're calibratable with a span and zero pot. This is the kind of thing you need- with Isolation.  There are other vendors and they're available for DIN rails too.  I think this little pump with a bare op-amp output heading out into a dirty plant driving a bunch of cable needs more than a tweak of some caps values.  We haven't talked about grounds yet, I suspect this is the real issue.  If you take your delicate little op-amp output, go through a bunch of cable and then a single ended sense resistor that is grounded at the receiver, you just negated most of purpose of 4-20 mA.  4-20 mA loops need to exist as loops with the sender floating and the return current coming back to the sender.  You can establish a ground at only one point.  This application requires isolation.  You also have your input referenced to ground which is getting pulled or pushed by the remote receiver's ground.  Grounds in a industrial environment 400m away have nothing to do with  your ground.  I suspect that there are ground imbalances that are pulling that little LM358 way out of its abs maxes.  Put in an Action Pack and call it a day- fully isolated problem solvers.  Keep this circuit as a summer intern project for the future and maybe a lesson on 4-20 mA loops that the student will never forget.

You could use a 4-20 mA to 4-20 mA to preserve this circuit on your board.  Run your 4-20 mA in and let it produce isolated 4-20 mA for the industrial run.  Cleaner probably.

We know of IC's that perform conversion, these even have regulators built in for powering the circuit. Due to the chip shortage out PCB assembly folks cant get these and we are doing it old school. In reality I don't see why using op-amps would not work, we have this exact circuit working on a slightly different application for 3 years without any issues.
 
The following users thanked this post: jwet

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #35 on: December 13, 2022, 06:50:50 pm »
It looks like OP using a PWM DAC with a 1st order LPF. What carrier frequency? I would expect a lot of HF ripple coming in to the op-amp which might aggravate things.

We are not interested in harmonics, only interested in having a stable constant current circuit for converting the 0-5V board signal to 4-20mA. If we are introducing harmonics it is not deliberate and should be conditioned.
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: ca
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #36 on: December 13, 2022, 08:12:33 pm »
What is the source of the analog current command? Nice steady pure DC? Circuit diagram says otherwise. It's not harmonics, it's attenuation of the PWM carrier with the LPF.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #37 on: December 13, 2022, 08:31:10 pm »
What is the source of the analog current command? Nice steady pure DC? Circuit diagram says otherwise. It's not harmonics, it's attenuation of the PWM carrier with the LPF.

The 5V is the output of an amplifier, this amplifies a signal from a Piezo sensor. It is usually stable and changes very little with time. 1663225-0

 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #38 on: December 13, 2022, 08:50:12 pm »
Have you run this with a capacitive load? Real world 4-20mA has a lot of cable capacitance, between the two wires as well as the shield.
I always use an emitter follower rather than a lone op-amp to drive 4-20mA but use higher compliance voltage of 24VDC rail. It's generally a catastrophe if the output shorts and goes full tilt, in most plant equipment. So I monitor the ouput voltage well to detect that fault.

I thought that this diagram may help to illustrate the local high voltage that we had thought was leading to a transient voltage spike.

 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: ca
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #39 on: December 13, 2022, 10:41:46 pm »
Assuming the LM2904 is oscillating (or slewing), you can upsize C1601 and see if that helps, try a different (better) op-amp, where is a decoupling cap for pin 8 VCC?
I would make sure the current command is smooth DC, not HF with noise as the active rectifier is not band-limited.

Your grounding could be a problem as well, the 'common' from the HV return is extremely noisy and full of RF. The 4-20mA cable can act as a RF return as well.
It looks like a car ignition coil, which is going to kill electronics just for fun.
How your PC board is (earth) grounded is critical. I would also check the HV wiring is not leaking/corona.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7699
  • Country: au
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #40 on: December 14, 2022, 12:49:50 am »
Simply driving 20mA DC output causes the chip to dissipate 17V·20mA = 340mW.

Are you sure it isn't oscillating at a few hundred kHz on top of that?

358s are rather fond of oscillating.

We had a radio transmitter design, where a LM358 was part of the control circuit to select various power settings.
Several power supplies failed catastrophically while the thing was set to its lowest power setting.

This was counter-intuitive, but we found that on that setting, the 358 was oscillating.
The resulting 78kHz rectangular waveform went "rail to rail" Amplitude Modulating the Tx PAs between cutoff & saturation, and
killing the PSU.
The average power meter was quite happy, however!

A 220 ohm resistor between the output pin & the controlled circuit stopped the oscillation---shame the "rent a EE's" the manufacturer used didn't include that as a precaution.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #41 on: December 14, 2022, 02:18:37 pm »
Assuming the LM2904 is oscillating (or slewing), you can upsize C1601 and see if that helps, try a different (better) op-amp, where is a decoupling cap for pin 8 VCC?
I would make sure the current command is smooth DC, not HF with noise as the active rectifier is not band-limited.

The 5V on the pre amp is well decoupled, the 24V VCC on pin 8 does not have decoupling. We are going to add decoupling to the PCB.

Your grounding could be a problem as well, the 'common' from the HV return is extremely noisy and full of RF. The 4-20mA cable can act as a RF return as well.
It looks like a car ignition coil, which is going to kill electronics just for fun.
How your PC board is (earth) grounded is critical. I would also check the HV wiring is not leaking/corona.

The Coil is an ignition coil with an internal switching circuit, I does create a lot of corona, we have been trying to make the coil fail the LM348 to no avail, I have even sparked to the ground pin of the LM348 and it has not failed. That being said the components all need TVS diodes for protection.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #42 on: December 14, 2022, 02:25:11 pm »
Simply driving 20mA DC output causes the chip to dissipate 17V·20mA = 340mW.

Are you sure it isn't oscillating at a few hundred kHz on top of that?

358s are rather fond of oscillating.

We had a radio transmitter design, where a LM358 was part of the control circuit to select various power settings.
Several power supplies failed catastrophically while the thing was set to its lowest power setting.

This was counter-intuitive, but we found that on that setting, the 358 was oscillating.
The resulting 78kHz rectangular waveform went "rail to rail" Amplitude Modulating the Tx PAs between cutoff & saturation, and
killing the PSU.
The average power meter was quite happy, however!

A 220 ohm resistor between the output pin & the controlled circuit stopped the oscillation---shame the "rent a EE's" the manufacturer used didn't include that as a precaution.

I will do my best to change C1602 and C1603 to eliminate any change of oscillation. My Experience with oscillations is that its not a matter of throwing components at the problem, but rather simulating changes and then testing the board.

Any idea what I should use for C1602 and C1603 instead of the 470pf capacitors?
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #43 on: December 14, 2022, 02:28:46 pm »
But can you see what C1603 is doing?

It decreases closed loop differential gain of U1601B, which means that U1601C is mislead to believe that transmitted AC current is lower than in reality. If you remove the filter and test with 10kHz signal, you would likely find that the regulator transmits more current than at 10Hz, for the same input amplitude.

Furthermore, it ruins AC common mode rejection. Common mode signal present at the positive end of R1613 is simply passed to the output of U1601B at unity gain, due to direct feedback through C1603. This causes all sorts of extra oddities, dependent on load reactance.

The whole thing looks like its exact behavior is needlessly difficult to predict. But no, I don't have any sim example where it clearly oscillates. The phase dip I have shown is not -90°.


I don't think there would be much wrong with:
- removing C1603, to make U1601B work as proper differential amplifier, giving accurate (amplified) image of R1613 current, up to tens of kHz that this chip ought to be capable of
- increasing C1602 to a few nF (or more) to dumb down U1601C a little more; above a few kHz it will simply be a voltage follower, ignoring any feedback coming from U1601B

I ran your LTSpice model and noticed the Oscillation, I tried to change the values of C1602 and C1603 and could not  smooth out the ripple.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #44 on: December 16, 2022, 03:16:49 pm »
358s are rather fond of oscillating.

Should I remove the two 470pf capacitors ?
 

Offline RogerThat

  • Regular Contributor
  • *
  • Posts: 86
  • Country: se
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #45 on: December 16, 2022, 04:11:52 pm »
I would suggest the following.

Groupe R1604 and R1606 in to one 1.2M...reduce BOM.
Remove: D1705
Move: D1706 to be in parallel to C1601. Most likely you can remove this one also, not needed due the high input resistance.
Add( isolation) resistors on both op amp outputs, 25-1000ohm, to avoid oscillations. some op amp don't like to directly drive capacitors. If you don't wont to add isolation resistors you could remove c1602,c1612 for testing.

A trick to greatly improve ESD tolerance is to put small resistor on all inputs/outputs to your chips. Resistors in the size of 10-100ohm helps a lot. In your circuit all inputs/outputs all ready have resistors in front of them except the powersupply...I would investigate the power supply further.

It's not clear from your schematics(where does +MA go? I hope it doesn't go, thru a uninterrupted cable, 400m to the receiver) but make sure you have isolation between the circuit and the line driver...
« Last Edit: December 16, 2022, 04:39:54 pm by RogerThat »
 

Offline RogerThat

  • Regular Contributor
  • *
  • Posts: 86
  • Country: se
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #46 on: December 16, 2022, 04:31:06 pm »
The SMBJ24A have a maximum clamping voltage of 38.9V, I would choose a SMBJ18A instead and adjust supply voltage accordingly. Maximum voltage for the lm358 is 32V. LM2904 is 26V maximum.
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #47 on: December 20, 2022, 10:26:31 pm »
It's not clear from your schematics(where does +MA go? I hope it doesn't go, thru a uninterrupted cable, 400m to the receiver) but make sure you have isolation between the circuit and the line driver...

The 4-20mA is connected to a ~400 Foot (can be meters) cable to a shunt resistor where we monitor the volt drop over a resistor. The cable is powered by the op-amp.

How would I add Isolation between the circuit and the driver?
 

Offline djzuluTopic starter

  • Contributor
  • Posts: 26
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #48 on: December 20, 2022, 10:29:25 pm »
Maximum voltage for the lm358 is 32V. LM2904 is 26V maximum.

We are using the onsemi LM2904, this has a max voltage of 32V.

https://datasheet.lcsc.com/lcsc/1811012110_onsemi-LM2904DR2G_C18229.pdf
 

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 522
  • Country: us
Re: LM358 failed after 30 minutes and gets hot in 4-20mA pump circuit
« Reply #49 on: December 21, 2022, 02:53:37 am »
Look back to post 32- this is what I was talking about.  This is your problem.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf