PDA

View Full Version : Mesuring current with pic



mitchf14
- 21st November 2008, 21:39
I found this circuit to measure current with a pic, it seems like a good circuit that will work, using adcin reading the voltage at the high point of the 0.1 ohm resistor. Hence knowing the voltage and the resistance you can calculate the current that is all fine and dandy, my only concern is that @ 12 v running trough a 0.1 ohm a 5 w resistor would no be at all sufficient. I would need a big heat sink and even then is there something i am not seeing, or is the circuit wrong.

aratti
- 21st November 2008, 21:50
You have a lamp of 50 W in series with the resistor of 0.1 ohm 5 W.

50W/12V=4.2 A this is the current that flow through the resistor.

4.2 * 4.2 * 0.1 = 1.74 W is the power dissipated by the resistor 5 W is more than dimensioned.

Al.

mitchf14
- 21st November 2008, 23:22
That makes lots of sense but what will happen when the 50 w bulb is off, they only load then will be the 0.1 ohm resistor. The power will be over 5 w and burn the resistor out.

mackrackit
- 21st November 2008, 23:40
If the bulb is off then the circuit is broken. No current to flow.

rmteo
- 22nd November 2008, 00:18
Never mind. Was not thinking straight.

Charles Linquis
- 22nd November 2008, 02:11
In most cases, the best way to measure current is with a Hall-effect sensor. No voltage loss, no heat, perfect isolation. Check out the Allegro devices.

http://www.allegromicro.com/en/Products/Categories/Sensors/currentsensor.asp

kblim
- 1st December 2008, 15:43
Maybe a low ohmic resistor 0.01ohm 5W is suitable in the application.

The hall effect sensor normally is very expensive in my country.

Let say the total amp flows is 15A,:

Voltage dropped = 15 X 0.01 = 0.15V
Wattage dissipated = 15 X 0.15 = 2.25W

I have been using this with the volt meter to measure the voltage up to 22A, and it is working fine. The heat will not be a issue for the resistor. But it is a bit expensive.:D

aratti
- 1st December 2008, 17:59
Wattage dissipated = 15 X 0.15 = 2.25W
You mean 15x15x0.15=33.75W

Al.

rmteo
- 1st December 2008, 18:10
P = I*V = 15 x .15 = 2.25W

amgen
- 2nd December 2008, 02:29
or,
p=1^2 R
15X15X.01=2.25

rmteo
- 2nd December 2008, 03:12
or V*V/R
0.15*0.15/0.01 = 2.25W :rolleyes:

Darrel Taylor
- 2nd December 2008, 23:45
Somebody needs a new Calculator. :D


<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="600" HEIGHT="350" ><PARAM NAME="MOVIE" VALUE="http://www.pbpgroup.com/files/CurrentSense.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="QUALITY" VALUE="high"><EMBED SRC="http://www.pbpgroup.com/files/CurrentSense.swf" WIDTH="600" HEIGHT="350" PLAY="true" LOOP="true" WMODE="opaque" QUALITY="high" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>

Change R1 to 0.01 ohm, and see what happens.
Note the output voltage to the PIC. :eek:
<br>

amgen
- 3rd December 2008, 17:45
Mr DT,
what a neat utility that is !!
you can see all the relations between R's, V's, W's etc.
How about lessons on creating that type of object ?
don
amgen

Darrel Taylor
- 4th December 2008, 08:06
Thanks Don!

I'm still looking for those lessons myself. :)
Been trying to learn Flash for over a year now, and it's still feels like I'm struggling.

Maybe another year of practice will help. :rolleyes:
<br>