INA219 interface help


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: INA219 interface help

    Thanks a lot Brice.
    That is very useful to me.
    best regards,
    Ambrogio
    iw2fvo
    North Italy

  2. #2
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: INA219 interface help

    Good day Brice,
    I used for years the program you have sent to me and it worked well sine I had the need to know the bus voltage only.
    Now I am interested in getting the power and the current in addition to the voltage.
    I have to read a max current of 3A and I used a 0.1 ohm shunt resistor.
    By applying the formula I did set the currentLSB= 100uA/bit and the calibration at 4096 dec ( 1000h).
    The real current into the load is about 50 mA and the power is 248 mW calculated by hand calculator.
    My Pic gives the following results:

    CONFIG: 8191
    SHUNT VOLAGE: 501
    BUS VOLTAGE: 4.968
    POWER: 125
    CURRENT: 501
    CALIBRATION: 4096

    the bus volt is OK but current and power are not_OK.

    I read the data sheet but I am not able to find the solution at the moment.
    I think there is a scaling problem somewhere around ... current is 10 times more , power is the double .. shunt_volt is 100 time more.
    I will appreciate very much if You could help me in find out a solution.
    Thanks in advance for the assistance.
    regards,
    Ambrogio

    ps: when we write the calculated CAL value ( 4096 dec ) do we have to take into account that bit_0 is not used and so write 8192 or just write 4096 in the relevant register?

Similar Threads

  1. SPI interface
    By malc-c in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th January 2011, 02:06
  2. Interface for 16f818
    By davekav in forum Serial
    Replies: 4
    Last Post: - 17th April 2008, 12:33
  3. 'SCI' interface
    By ecua64 in forum Off Topic
    Replies: 0
    Last Post: - 29th September 2005, 17:02
  4. DMX Interface
    By electronicsuk in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th July 2005, 14:13
  5. PC interface
    By tigrot in forum Schematics
    Replies: 1
    Last Post: - 9th October 2004, 20:32

Members who have read this thread : 2

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