0

I'm using a 50 Ohm shunt to measure a current of about 50mA driven by a voltage of 110v 60Hz AC as a zero-crossing square-wave (with a step at the zero-crossing).

Using my oscilloscope I can see that the voltage from the supply (an inverter designed for the US caravan market) is a pretty good modified square wave but the voltage across the shunt, at the start of each cycle, rises to a sharp peak about twice the stable value to which it then falls for the rest of the positive cycle. The same overshoot happens with the negative cycle, but to a high negative peak which then falls to a stable negative value for the rest of the negative cycle.

There are similar peaks, positive and negative, when the supply returns to zero at the end of each half cycle.

This seems to be an effect of the shunt alone, since it's an extremely simple circuit and the voltage (1) across the supply shows no such peaks, but why does it happen and how can I get rid of it?

If I disconnect the load, and there's therefore no current flowing through the circuit, I still get peaks (though just one +ve and one -ve per cycle) across the shunt (ie V2) (but not across the supply - V1).

I hope that clarifies.

Basic circuit circuit

Voltage waveform 2 - across 50 Ohm shunt Voltage waveform 2 - across 50 Ohm shunt

Voltage waveform 1 - across the supply Voltage waveform 1 - across the supply

Voltage waveform 2 - across the shunt with load disconnected Voltage waveform 2 - across the shunt with load disconnected

D.Jordan
  • 1
  • 2
  • What is the load? Hit the [edit] link. – Transistor Apr 18 '20 at 10:21
  • 4
    Show the circuit and a picture of the waveform on your scope. – Andy aka Apr 18 '20 at 10:21
  • 1
    So the 120VAC source is a square wave? Is the load capacitive? Is there a full bridge diode rectifier in the load? – Justme Apr 18 '20 at 13:32
  • Here's the circuit and waveforms. – D.Jordan Apr 19 '20 at 16:11
  • Is the variable resistance your actual load or an representation of something else? – winny Apr 19 '20 at 17:02
  • The variable resistance is actually the soil. The two high resistance values are electrodes pushed into the soil (which typically have a contact resistance in the low Kohm range, in spring in the UK). But note that the voltage passing through the soil, between my electrodes, is a nice stepped square wave and doesn't have the spikes. – D.Jordan Apr 19 '20 at 17:33
  • Most probably a probing issue but your soil may have some capacitance too which you only see att high dV/dt. I do agree that the resitor is a good model otherwise. – winny Apr 20 '20 at 11:59
  • Can you be clearer about what you mean by a "probing issue"? The soil does indeed have capacitance (the measurement of which is quite interesting in itself) - but the spikes appear across the shunt even with the load detached - but it doesn't result from the supply voltage which is rather a nice modified square wave. I think our colleague Edin Fifić has diagnosed the problem correctly - it's an EMI effect from the sharply rising current. – D.Jordan Apr 20 '20 at 14:42

2 Answers2

1

it's sound like one of the 2 things:

  1. bad probing.
  2. Gibbs phenomena - due to the low bandwidth of the oscilloscope.

it will be helpful if you can share a picture of the signal on the scope and a picture of your probing method.

  • Bad probing? Can you explain? It's probably not Gibbs phenomena since the oscilloscope has a bandwidth of 60MHz - and the spike is much too sharp. – D.Jordan Apr 19 '20 at 17:56
  • if you measure the voltage across the resistor using prob's long lead with the alligator as a ground you probably introducing a big parasitic inductance to the measurement system. As a result, an oscillating voltage can be seen due to di/dt. – Daniel Alaiv Apr 20 '20 at 20:23
  • That makes sense. Thanks. – D.Jordan Apr 23 '20 at 12:27
0

It's not clear what exactly are you doing and trying to accomplish.
You really need to provide more details, and definitely a schematic, maybe a photo, screenshot of the scope signal and the purpose of your circuit if it's not clear from the schematic.
My guess is that you are driving a 110V AC load a square wave inverter, but I could be wrong because you have left plenty for us to imagine.

It seem that what you have is a "leading edge spike".
Such spike is usually easily solved with an RC integrator.

schematic

simulate this circuit – Schematic created using CircuitLab
You can experiment with the capacitor values from 1nF to 100nF, start from the lowest value and change up until the spike is gone.

EDIT: Now that you have provided images and details, it is more clear what is happening, and it is due to square wave supply as I suspected, or modified square wave, to be more precise.
The spikes are happening on, and are caused by, the rising and falling edges of the voltage supply. It is really not a mystery why this is happening, as those edges represent extremely fast transitions and are bound to cause spikes even at very low inductances such as that of a straight piece of wire. Another source of the spike could be due to the electro-chemical contact reaction between the probes and the soil, where a sudden change in voltage or current can't be conducted fast enough through such "galvanic cell" (but I could be wrong).
The spikes happening when the load is disconnected (no current) are most likely due to the wires acting as antennas for those very fast transients. Disconnecting the top lead next to the generator and then scoping across the shunt should verify this.

The wire inductance problem can be reduced by using twisted wire pair instead of just regular wires. Basically, treat the problem as if you are working with radio frequencies running through the wires.
The spikes across the shunt and the probe may be solved or reduced by placing 1nF to 100nF capacitors across them (one across the probe, another one across the shunt); start with 1nF and gradually move up until the problem is eliminated or significantly reduced.
Another solution would be to change your source voltage into a sine wave by using an LC low-pass filter (set around 60Hz) or an LC resonant circuit across the supply (set to 60Hz). This would get rid of your sharp transitions which cause the spikes.

Edin Fifić
  • 5,188
  • 7
  • 24
  • OK - but what causes the spike? – D.Jordan Apr 19 '20 at 18:00
  • Interesting. Thanks. So it's due to electromagnetic induction due to the rate of the change of current? The spikes occur even when I disconnect the load (the ground electrodes) and simply measure the voltage across the supply and across the shunt - so they can't be due to electrochemistry of the contact (although that is a fascinating subject in itself - and formed part of my PhD research). So I don't quite understand how I'm getting these spikes in voltage across the shunt, due to induction, when (almost) no current flows through the circuit since the load is disconnected. I'll think on! – D.Jordan Apr 20 '20 at 10:14
  • Thanks for the suggested solution. I'll play with the capacitors - but I have to keep the "square" wave since I need the sharp transitions. – D.Jordan Apr 20 '20 at 10:18
  • The spikes would occur when there is no current only due to the electric (electromagnetic) field generated on the voltage edges because any wires connected to a high frequency (or high rate of change) voltage would act as antennas. Try disconnecting the top lead right next to the generator, and I think that you will not see those spikes any more. – Edin Fifić Apr 20 '20 at 10:19
  • Very high frequencies and very fast transients don't limit themselves to the wires they're connected to. – Edin Fifić Apr 20 '20 at 10:20
  • OK - I'll have a go. Thanks again! – D.Jordan Apr 20 '20 at 10:20
  • Ha! So I've built a radio. Marconi would have been proud ... – D.Jordan Apr 20 '20 at 10:21
  • I have updated my answer, so if I have helped solve your problem, I would appreciate if you accept it as an answer (after verifying that my suggestions work). – Edin Fifić Apr 20 '20 at 10:36
  • I'll be happy to accept it as an answer. Is there a specific mechanism to do so? – D.Jordan Apr 20 '20 at 11:56