Go Down

Topic: how can i measure mA if it is running on PWM? (Read 4775 times)previous topic - next topic

TECH GEEK

Feb 08, 2011, 08:31 pm
i want to mesure how many mA a resister & LED have at differant level's of pwm..
what should i do to do this? AC mA? DC mA? something else?

THANKS
As always... Thanks for posting!!!

#1
Feb 08, 2011, 08:48 pm
Why not just calculate it?   Say you are driving a resistor to the anode, cathode to ground.
You know the output is 5V (the pulse width may vary but the output is 0 or 5V), you know the forwad voltage drop of the LED, you know the resistor value.
Thus (5v- Vled)/R = current.

The current will be the same every time the pulse goes high, the only difference is how long the current is conducted, and that is determined by the pulse width.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

TECH GEEK

#2
Feb 08, 2011, 08:51 pm
i don't think i can calculate it because i know i can bearlyunderstand what u said...
As always... Thanks for posting!!!

retrolefty

#3
Feb 08, 2011, 08:53 pmLast Edit: Feb 08, 2011, 08:55 pm by retrolefty Reason: 1
Well if your meter is one that measures true RMS values, then reading it as a DC milliamp current will give you the correct answer. However most inexpensive digital multi-meters don't have that feature so you will get a reading but it won't be an accurate measurement. You can easily calculate the average current flow by multiplying the 100% current flow value by the % duty cycle that the pwm signal is outputting. That is (output pwm value / 255) X full on current value.

Lefty

TECH GEEK

#4
Feb 08, 2011, 09:01 pm
how can i know for sure if my meter has RMS?
As always... Thanks for posting!!!

retrolefty

#5
Feb 08, 2011, 09:07 pm

how can i know for sure if my meter has RMS?

Typically such a high end feature will be in the title description of the meter or at least a bullet point in it's feature list, like here: http://www.myflukestore.com/p1393/fluke_87v.php

The odds of your meter having the feature without mentioning is around 0% chance.

Lefty

TECH GEEK

#6
Feb 08, 2011, 09:23 pm
ok thanks
also how do i wire up my meter to measure Hz?

Thanks
As always... Thanks for posting!!!

retrolefty

#7
Feb 08, 2011, 09:28 pm

ok thanks
also how do i wire up my meter to measure Hz?

Thanks

As if you were measuring an AC voltage

#8
Feb 08, 2011, 09:29 pm
Tech Geek?  Really?
If you had the PWM output set to 255, that would be 100% on.
Use your meter in mA mode. Connect arduino pin to the red lead connect the black lead to one side of a resistor, connect the other side of the resistor to the long leg of the LED, connect the short leg of the LED to ground.

Take a reading with PWM at 255 (or whatever the highest setting allowed is, I have never used it).
For any other value of PWM, the Average current will be (PWM output number)/255 * full current reading.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

#9
Feb 08, 2011, 09:31 pm
Does your meter have a Frequency, or Hz, setting?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

TECH GEEK

#10
Feb 08, 2011, 09:44 pm
yes
As always... Thanks for posting!!!

GaryP

#11
Feb 09, 2011, 12:15 am
Does your meter have a manual? It's time to open it. Also it's time to do some google and look for "ohms law".

Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Go Up