EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: jule553648 on May 16, 2015, 04:59:56 pm

Title: uCurrent Gold and a lot of noise on oscilloscope
Post by: jule553648 on May 16, 2015, 04:59:56 pm
Hello guys!

I was reading this forum for a long time, but now I have a question, so this is my first post.

I am dealing with AVR microcontroller and NRF24L01 RF transmitter.

And I would like to measure its consumption.

The peak transmitting  consumption of the whole circuit should be about 20mA, idling currents are sub mA.

I have a test circuit on breadboard and I am sending a packet every second.
 
But I have a lot of noise when measuring with uCurrent and scope - see the attachment.

Yellow line is output from uCurrent, blue is trigger signal from uC.

One is raw signal, other one is digitally filtered - the consumption footprint is corect.

I suspect the scope ground is giving me headaches.

I have uCurrent set on 1mV/mA.

If I measure uCurrent output with DMM (without scope attached) it shows like 0.2mV (of course it cannot detect transmitting pulses). This is correct measurement of idle current.

But when I connect probe positive end on Voltage output (+) on the uCurrent and scope ground on the (-), the DMM shows -11mV (negative!) If I connect just probe end or ground on  Voltage output (+) it says -6mV or -16mV. So the connection disturbs the uCurrent output
Whatever scope probe end I hookup to Voltage output (-) on uCurrent it is still OK. DMM shows 0.2mA.

So the problem is in Voltage output (+) pin of uCurrent.

Something on the scope disturbs the output. Not just the ground, because also just the probe end disturbs it.

The circuit is powered through AC adapter with transformer, so it is isolated from scope ground.
What could it be?

If I have to explain further, just say it.  :D I sometimes overcomplicate my descriptions.

thanks
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: VK5RC on May 16, 2015, 11:00:08 pm
What does a straight piece of wire do when connected to the uCurrent terminals,  you have rf floating around,  it is notorious for 'getting into places' . 
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: bson on May 17, 2015, 10:09:32 am
Don't!  The uCurrent (-) output isn't grounded.  You can't probe it directly but need a differential probe, or use two scope channels as A-B.  (With either ground clip attached to a real ground point in your circuit.)  Connecting the scope ground to the uCurrent (-) terminal will short it and can damage either the uCurrent or the scope!  You're likely seeing some oscillating artifact of connecting one half of a differential amplifier to ground!
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: PSR B1257 on May 17, 2015, 11:18:32 am
Quote
Don't!  The uCurrent (-) output isn't grounded
The µCurrent is battery powered and therefore floating.

Quote
You can't probe it directly but need a differential probe
No, you don't.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: jule553648 on May 17, 2015, 03:55:36 pm
I tried differential, but it didnt work, (CH1-CH2) is still as noisy as before.

I am attaching my wiring.

uCurrent has both negative leads wired together  internally. I showed that on schematic.

Weird thing is, that the scope probe disturbs the (+) output of uCurrent. My DMM(Agilent) shows that there is an 10mV increase of the uCurrent output voltage(noise) after i hookup scope lead on the uCurrent. So the scope is somehow messing things up. I tried using 10X probe, but it is still the same problem.

I don't have scope on isolation transformer since I don't have it, but I doubt it would help, because the circuit power supply is isolated from ground.


@VK5RC
RF emission isn't the problem, because I transmit for only 1.75 milliseconds every second. Then the  RF module is at sleep.  But the noise is everpresent when scope is hooked up. I tried hooking 0.5 metre wire on (+) output of the uCurrent, but it doesn't disturb the DMM measurement. Only scope disturbs it.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: bson on May 17, 2015, 07:07:11 pm
I took a closer look since I had simply observed the (+) output is not ground referenced.  What seems to happen is when you put your scope ground on the negative output you place your scope-to-power supply ground across a 0.1ohm resistor.  This seems to be a precision resistor since it measures to ~4 digits (just simple 2W mode, nulled), which means it's likely the main sense load.  Whatever it is, you're putting your scope-to-supply ground connection across it, which if it's the sense load will make the positive output amplify your scope ground noise.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: tautech on May 17, 2015, 07:30:25 pm
The circuit is powered through AC adapter with transformer,
Two possibilities IMO. 1. ^^^^^^^ SMPS is it?

2. http://www.eevblog.com/2014/04/10/eevblog-601-why-digital-oscilloscopes-appear-noisy/ (http://www.eevblog.com/2014/04/10/eevblog-601-why-digital-oscilloscopes-appear-noisy/)
http://www.eevblog.com/2014/04/27/eevblog-610-why-digital-scopes-appear-noisy-part-2/ (http://www.eevblog.com/2014/04/27/eevblog-610-why-digital-scopes-appear-noisy-part-2/)
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: mmusskopf on March 02, 2016, 05:21:11 am
Hello,

Just go my uCurrent recently I had some similar issues here. And yes, the noise captured by the scope on the mVs can be very annoying!

Ideally the uCurrent should have another configuration, something like 10mV/mA?! or even 100mV/mA?

Using 1mV/mA has too much noise and you'll need to filter/average the signal... the problem is that a short +/-10mA peak will be difficult to capture. This settings is only useful if you're measuring currents over 200mA and don't care much about +-10/20mA variations.

IMO the step from uA to mA is too big. As I normally need to measure currents between 1mA and 100mA a 10mV/mA (or over) would be great... I'll see if I can modify it, but I still haven't find time to open the schematic yet!

Btw, this is only an issue when connected to a scope, on a Voltmeter as everybody know works flawlessly!

Edit:
Just looking and should be the case of replacing the R1 from a 0.01 ohms to a 0.1 ohms... this should do the trick:
http://au.rs-online.com/web/p/surface-mount-fixed-resistors/6841649/ (http://au.rs-online.com/web/p/surface-mount-fixed-resistors/6841649/)

I'll double check once I get home before pay $15 for single SMD resistor  ;)

Cheers,
Mike M.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: MLXXXp on March 03, 2016, 05:19:53 pm
Just looking and should be the case of replacing the R1 from a 0.01 ohms to a 0.1 ohms

You can always just add an external shunt resistor across the input terminals when you need a different range. Set the range switch to nA and the internal shunt will be 10K. Putting an external 0.1R resistor in parallel with the internal 10K will result in a only a 0.001% error over having exactly 0.1R.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: mmusskopf on March 04, 2016, 12:19:38 am
That's a great idea... I was worried to have it in parallel with the internal resistor, but you're right, the 10K over a 0.1R will be insignificant! I'll get a few high precision TH resistors.

Cheers!
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: borjam on March 04, 2016, 08:37:59 am
I have just ordered one from the Euro distributor.

If I understood the schematic well, it can be used *without* a differential probe, just being a bit careful.

I need to measure the consumption of a small microcontroller when sleeping, reading sensors, transmitting on Wi-Fi, etc. If I insert the µcurrent betweem the ground of the power supply and the microcontroller, J2 will be connected to ground and J4, the virtual ground, will actually be a ground terminal as well, perfectly safe to use with a passive probe. Right?

Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Gyro on March 04, 2016, 09:35:28 am
Why not build your own?

With a rotary switch and proper choice of shunt resistors (ie. one per decade rather than one every 3 decades) you could get away with far less gain and better noise immunity for the same or better voltage burden. Less gain would also allow you to use a standard low Vos opamp rather than the chopper stabilised one to achieve better AC performance too.

It's an ideal 'build your own test equipment' beginner's project.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: MLXXXp on March 05, 2016, 01:06:44 am
If I insert the µcurrent betweem the ground of the power supply and the microcontroller, J2 will be connected to ground and J4, the virtual ground, will actually be a ground terminal as well, perfectly safe to use with a passive probe. Right?

Correct. And if the supply you're using to power the microcontroller is floating/isolated, you're extra safe.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: borjam on March 05, 2016, 01:52:17 am
Thanks :)

I need to get a differential probe, I've seen one from R&S no less, at a reasonable price and perfectly good for my purposes. But for now this will do, even requiring much more care.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 09:08:56 am
I have just ordered one from the Euro distributor.

If I understood the schematic well, it can be used *without* a differential probe, just being a bit careful.

I need to measure the consumption of a small microcontroller when sleeping, reading sensors, transmitting on Wi-Fi, etc. If I insert the µcurrent betweem the ground of the power supply and the microcontroller, J2 will be connected to ground and J4, the virtual ground, will actually be a ground terminal as well, perfectly safe to use with a passive probe. Right?



Yes I have received your order but I am out of stock. I am about to have delivered a box of them from Dave but I don't know yet how many he sent I had told him I needed 10 but judging by the customs charge it may be 20 that he has sent.

The input and output ground on the microcurrent are connected together. You should not need a differential probe. The fact that the microcurrent is battery powered means that it will never be mains referenced therefore if you are connecting other isolated equipment to it you have the 1st step in your chain of isolated equipment.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: borjam on March 05, 2016, 10:06:55 am
Yes I have received your order but I am out of stock. I am about to have delivered a box of them from Dave but I don't know yet how many he sent I had told him I needed 10 but judging by the customs charge it may be 20 that he has sent.
I saw it was out of stock, don't worry :)

These thingies must be selling like hotcakes. How else can you measure the consumption of tiny microcontrollers without spending a fortune?

Quote
The input and output ground on the microcurrent are connected together. You should not need a differential probe. The fact that the microcurrent is battery powered means that it will never be mains referenced therefore if you are connecting other isolated equipment to it you have the 1st step in your chain of isolated equipment.

Yes, what I mean is, without a differential probe I can't connect it to an arbitrary point in a circuit with the oscilloscope earthed. But in my case, as this configuration is exactly what I need, it's not an issue.

Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 10:20:04 am
Yes while your other option is to use an isolated oscilloscope. You could use a battery powered oscilloscope. My old Owon oscilloscope broke down because the power supply board broke. But as it has a battery input I have used a switch mode power supply that has an isolated output to power it onto the battery terminals so I now have an isolated oscilloscope. The other option is to use an isolation transformer to power your oscilloscope. I don't know how much differential probes are but if you are working on a low-voltage then using isolated equipment would not be a problem. Obviously I would not recommend connecting the microcurrent to the mains.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: ANTALIFE on March 05, 2016, 10:30:29 am
Dunno if this is relevant, but I had issues with using a microcontroller to read the current/voltage https://www.eevblog.com/forum/crowd-funded-projects/ucurrent-gold-problem/ (https://www.eevblog.com/forum/crowd-funded-projects/ucurrent-gold-problem/)
In the end I had to run the output through an op-amp to read the current/voltage accurately.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Gyro on March 05, 2016, 12:21:07 pm
How else can you measure the consumption of tiny microcontrollers without spending a fortune?

Not difficult, you just need a series resistor and a bit of voltage gain. You can do it very cheaply.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 01:49:30 pm
How else can you measure the consumption of tiny microcontrollers without spending a fortune?

Not difficult, you just need a series resistor and a bit of voltage gain. You can do it very cheaply.
Good luck! what do you think the uCurrent is ? it is litterally that, a resistor and a 100x amp. The problem with dealing with such low voltages is offset voltage on the amp so the uCurrent was designed to resolve that with a good amplifier.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Gyro on March 05, 2016, 02:47:43 pm
Of course I know that. With the right choice of shunt resistors, sized for say 10mV full range (edit:burden) (no way excessive) then you don't need much gain to get up to usable level, x10 is plenty. The reason that the uCurrent needs so much gain is that it uses the same shunt resistor for 3 decades, fine for the top decade, but it leaves it scrabbling about in the noise for the bottom decade. One resistor per decade makes a lot more sense and eases the gain and noise problems. With 10mV full range burden per decade it's easy to do on a breadboard.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 03:01:50 pm
The reason that the uCurrent needs so much gain is that it uses the same shunt resistor for 3 decades, fine for the top decade, but it leaves it scrabbling about in the noise for the bottom decade. One resistor per decade makes a lot more sense and eases the gain and noise problems. With 10mV full range burden per decade it's easy to do on a breadboard.

wrong, there are 3 different shunt resistors for nA, uA and mA they are a 3 decades apart with a fixed amp gain of 100 so all your selector switch does is alter the shunt. The sunts are 10mR, 10R and 10K if memory serves.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Gyro on March 05, 2016, 03:21:21 pm
Yes I know there are 3 shunt resistors Simon, each serving 3 decades = 9 decades total!

What it means (for instance taking the 10k nA shunt) is that at 100nA it's dropping 1mV (ok), at 10nA it's dropping 100uV (hmmm) and at 1nA it's dropping 10uV (ridiculous!). With one shunt resistor per decade it would drop 1mV for each.

As I say, 10mV max burden wouldn't be excessive for pretty much any application, and still way better than off the shelf DMMs. It would be very easy to do.

Seriously Simon, let's not go there! I have no wish to trash Dave's product - I was merely pointing out that it would be easy and cheap for borjam to do what he wanted. Please don't force me into doing an eevblog style critique of the uCurrent (Quote: "Come on guys!" :palm:).
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 03:41:38 pm
Oh i see (and no need to get on your high and mighty) the problem then is that you have an ambiguos reading. The idea is that mV = nA, uA and mA, if you do each decade it will be so confusing it will make life harder. A multimeter reads in mV or V, to have 100mV per 1nA, 10nA, 100nA, 1uA, 10uA, 100uA, 1mA, 10mA, 100mA will be very confusing if your trying to use all ranges. Of course a more complex product could do as you want but it would be more expensive as it would need it's own display and a more complicated case.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 03:43:09 pm
There is of course nothing stopping anyone removing one of the shunts and putting in an exteral one at will.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Gyro on March 05, 2016, 04:32:42 pm
Oh i see (and no need to get on your high and mighty) the problem then is that you have an ambiguos reading. The idea is that mV = nA, uA and mA, if you do each decade it will be so confusing it will make life harder. A multimeter reads in mV or V, to have 100mV per 1nA, 10nA, 100nA, 1uA, 10uA, 100uA, 1mA, 10mA, 100mA will be very confusing if your trying to use all ranges. Of course a more complex product could do as you want but it would be more expensive as it would need it's own display and a more complicated case.

Live and let live then :).

 I thought I was being fairly clear, the mV I was talking about in all cases was the voltage drop across the shunt resistor for a given current, sorry if it was confusing.

Sure, I appreciate that one of the aims of the uCurrent was to be as cheap possible to manufacture by putting everything on the PCB, unfortunately that inevitably leads to compromises like multi-way switch availability, which limits number of shunts, which....  It's what you need to do to meet the selling price and of course a weak point in comparison with what can be made one-off - as always with commercial products.

Yes, you can certainly use external shunts across the terminals, and probably a good idea to do it on the 'bottom ends' of the uA and mA ranges to trade a slightly higher voltage burden for less noise. Unfortunately not possible on the nA range as the 10k is already there - maybe an option to switch out all internal shunts would be useful addition, leaving the actual uCurrent as a low offset, high impedance amplifier (there's always an option for the user to remove the 10k of course).
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: Simon on March 05, 2016, 04:44:19 pm
Yes that's what I meant. Remove the 10k resistor and you have the flexibility to do what you like but obviously it's not a self-contained unit any more. The other thing is that you can use an oscilloscope to view the output so 9 different ranges might cause confusion here as well although I suppose if you played with the divine factor of the oscilloscope probe setting you could get it right but again it takes a lot of messing about to do that and you can't just switch seamlessly between ranges and have an easy read out.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: deephaven on March 05, 2016, 05:01:08 pm
When I do such measurements (with or without a uCurrent) I feed the output into the scope via a simple RC filter straight into it's BNC, no probe. Depending on how much detail you need to see in the current ripple, you can adjust the values in the RC filter accordingly. Typically I use a 10K series resistor followed by a 100n capacitor to ground. No noise then.
Title: Re: uCurrent Gold and a lot of noise on oscilloscope
Post by: borjam on March 16, 2016, 11:49:07 am
How else can you measure the consumption of tiny microcontrollers without spending a fortune?

Not difficult, you just need a series resistor and a bit of voltage gain. You can do it very cheaply.
Good luck! what do you think the uCurrent is ? it is litterally that, a resistor and a 100x amp. The problem with dealing with such low voltages is offset voltage on the amp so the uCurrent was designed to resolve that with a good amplifier.

Exactly. So much stuff can be homebrew, yet I need to get some measurements, and this little box solves my problem while I focus on the rest of the project.