Mesuring current with pic


Closed Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Jun 2008
    Posts
    30

    Red face Mesuring current with pic

    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.
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    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.
    All progress began with an idea

  3. #3
    Join Date
    Jun 2008
    Posts
    30


    Did you find this post helpful? Yes | No

    Smile Reading current with pic

    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.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    If the bulb is off then the circuit is broken. No current to flow.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Never mind. Was not thinking straight.
    Last edited by rmteo; - 22nd November 2008 at 00:21.

  6. #6
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    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/Produ...rentsensor.asp
    Charles Linquist

  7. #7
    Join Date
    Jul 2005
    Location
    Selangor, Malaysia
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    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.

  8. #8
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Wattage dissipated = 15 X 0.15 = 2.25W
    You mean 15x15x0.15=33.75W

    Al.
    All progress began with an idea

  9. #9
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    P = I*V = 15 x .15 = 2.25W

  10. #10


    Did you find this post helpful? Yes | No

    Default p=

    or,
    p=1^2 R
    15X15X.01=2.25

  11. #11
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    or V*V/R
    0.15*0.15/0.01 = 2.25W

  12. #12
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Somebody needs a new Calculator.


    <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.
    <br>
    DT

  13. #13


    Did you find this post helpful? Yes | No

    Default power calc

    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

  14. #14
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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.
    <br>
    DT

Similar Threads

  1. Reducing PIC current to as low as possible...
    By FromTheCockpit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th November 2009, 04:28
  2. PIC conducting signal current when off
    By Viberer in forum Off Topic
    Replies: 0
    Last Post: - 28th May 2009, 17:27
  3. PIC Controlled Current Source
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 30th June 2007, 18:15
  4. Replies: 22
    Last Post: - 9th April 2007, 15:25
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts