Author Topic: Measuring PWM current?  (Read 1761 times)

0 Members and 1 Guest are viewing this topic.

Offline iXodTopic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: us
Measuring PWM current?
« on: April 28, 2019, 09:16:11 pm »
For a PWM voltage, is using a shunt and observing voltage with oscilloscope the only way to get even a ballpark current measurement?

Thanks.
 

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2823
  • Country: us
Re: Measuring PWM current?
« Reply #1 on: April 28, 2019, 11:15:54 pm »
For a PWM voltage, is using a shunt and observing voltage with oscilloscope the only way to get even a ballpark current measurement?

Thanks.
Well, in cases where you actually NEED to measure current, you can use an instrumentation amp.
I used the AD620 in a PWM servo drive to measure the voltage across a small resistor (fraction of an Ohm).
The actual voltage was above the ratings of the AD620, so I used a set of matched resistors to make a pair of voltage dividers.  So, both inputs of the voltage dividers was seeing a 60 V square wave, but the difference between them was less than 1 V.  It worked amazingly well, you needed to look VERY closely at the scope to see any trace of the common mode leaking through.

Jon
 

Offline iXodTopic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: us
Re: Measuring PWM current?
« Reply #2 on: April 29, 2019, 01:13:31 am »
But the output of the inst. amp will also be PWM, yes? Which will require... an oscilloscope to measure the current.
 

Offline OM222O

  • Frequent Contributor
  • **
  • Posts: 768
  • Country: gb
Re: Measuring PWM current?
« Reply #3 on: April 29, 2019, 01:28:37 am »
 

Offline iXodTopic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: us
Re: Measuring PWM current?
« Reply #4 on: April 29, 2019, 02:31:02 am »
you must use a true rms to dc chip like this one:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD636.pdf
But PWM can't be accurately measured (or converted?) when using RMS means--the whole reason for my initial post.
 

Offline OM222O

  • Frequent Contributor
  • **
  • Posts: 768
  • Country: gb
Re: Measuring PWM current?
« Reply #5 on: April 29, 2019, 03:07:22 am »
if you have a look at the datasheet it claims it can calculate RMS for "complex AC waveforms" no mention of square wave in particular but one would safely assume it can convert it to rms? there's nothing inherently different with square waves that doesn't allow them to be converted to RMS  :-//
 

Offline jbb

  • Super Contributor
  • ***
  • Posts: 1231
  • Country: nz
Re: Measuring PWM current?
« Reply #6 on: April 29, 2019, 04:10:52 am »
What kind of current do you want to measure? Average, min, max, RMS, peak to peak?

There are many options. While you can fit a fast ADC and sample the crap out of it (ie the oscilloscope method) there are likely cheaper and easier ways.

If you’re looking to solve a specific problem, we could be more helpful with more background.
 

Offline iXodTopic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: us
Re: Measuring PWM current?
« Reply #7 on: April 29, 2019, 04:34:49 am »
I realize this forum is populated with engineers who build solutions. But my first approach is to use tools that exist.

So my question is: is there a way to measure PWM current, real-time, without custom building a measurement and display tool?

I’m leaning toward a scope and current probe as the most straightforward solution, although a scope is my first anti-requirement...

Thanks.
 

Online oPossum

  • Super Contributor
  • ***
  • Posts: 1448
  • Country: us
  • Very dangerous - may attack at any time
Re: Measuring PWM current?
« Reply #8 on: April 29, 2019, 04:42:50 am »
Range?
Resolution?
Accuracy?
Average, min, max, RMS, peak to peak?
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3540
  • Country: es
Re: Measuring PWM current?
« Reply #9 on: April 29, 2019, 05:29:09 am »
So my question is: is there a way to measure PWM current, real-time, without custom building a measurement and display tool?

You have been asked questions and you are not answering them. It looks like either you don't even understand what you are trying to measure or you are unable to explain it.

A PWM signal can be measured in different ways. What value are you looking for? Max instant current? Average current? RMS current?

As long as you cannot articulate what you want it is very difficult to help you.

Several people are trying to help you and asking questions which you are just ignoring. If you are going to ask for help the least you can do is cooperate with those trying to help you. This is an extremely simple question which is only made complicated by your vagueness.

Please explain clearly what you are trying to do!
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7549
  • Country: 00
  • +++ ATH1
Re: Measuring PWM current?
« Reply #10 on: April 29, 2019, 07:27:54 am »
Range?
Resolution?
Accuracy?
Average, min, max, RMS, peak to peak?

Another important one ... frequency, its a nasty little devil of it's own imo.

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Measuring PWM current?
« Reply #11 on: April 29, 2019, 08:28:55 am »
For a PWM voltage, is using a shunt and observing voltage with oscilloscope the only way to get even a ballpark current measurement?

Other option would be to use current clamp-on probe. One shown below have slow low bandwidth (20KHz), yet it is considered as low cost and may do the job in the "ballpark" category. Obviously there are >= 1MHz BW clamps, but for a price.

https://www.picotech.com/accessories/current-probes-clamps/60-a-current-probe-bnc

Dave have video regarding scope current probes:

https://youtu.be/kmCvrGVtC0M?t=1
 

Offline OM222O

  • Frequent Contributor
  • **
  • Posts: 768
  • Country: gb
Re: Measuring PWM current?
« Reply #12 on: April 29, 2019, 10:25:16 am »
he says "scope gives accurate RMS measurments" as if somehow the scope is doing something magical ... ANY half decent RMS to DC converter with enough bandwidth should be plenty good enough for this application.
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4193
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Measuring PWM current?
« Reply #13 on: April 29, 2019, 10:51:04 am »
Your DMM should have no problem with PWM current. Unless you PWM at 5 hz or something ridiculous low.
RMS might be off a bit, since part of the waveform is beyond it's bandwidth.

Some multimeters can even do PWM voltage from VFD's, with an extra low pass. (Fluke 87v for example)
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17167
  • Country: us
  • DavidH
Re: Measuring PWM current?
« Reply #14 on: April 29, 2019, 12:51:02 pm »
An oscilloscope with AC/DC current probe is the most universal method and can work to multiple MHz.  A current shunt can be used with an oscilloscope and differential probe.  At low frequencies, other ways are feasible like using a multimeter.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf