ina226 code for current with r100 resistor


+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2025
    Posts
    2

    Default ina226 code for current with r100 resistor

    Can't get accurate current readings. VBUS voltage is correct but I can't figure out the code for current. All voltages will be <36 volts and current <0.8 amps. Any help would be greatly appreciated. Have tried for 4 weeks before I found this forum.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,100


    Did you find this post helpful? Yes | No

    Default Re: ina226 code for current with r100 resistor

    Post your code, your PIC, your setup, maybe a video too.

    Ioannis

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: ina226 code for current with r100 resistor

    ABS reading times 2.5uV divided by 100. Is current in uAmps.
    ABS readings time 25 is current in nA. If I didn't make some mistake...
    EDIT: max current is 0.84mA...
    I think your resistor is too large, and leakage current will give you bad measurements.
    Last edited by pedja089; - 11th February 2025 at 20:49.

  4. #4
    Join Date
    Feb 2025
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: ina226 code for current with r100 resistor

    What value is appropriate for the CALIBRATION number in the settings?

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,151


    Did you find this post helpful? Yes | No

    Default Re: ina226 code for current with r100 resistor

    I've never touched this device.

    I assume you've read everything in here:

    https://www.ti.com/lit/ds/symlink/ina226.pdf


    Section 6.5 seems to be where the main action starts.


    EDIT: when I get caught up with a mystery device, I go look at what they're doing on arduino. Sometimes you gets hints in the code, sometimes your eyes just glaze over.

    But at least it's a start.
    Last edited by Demon; - 21st February 2025 at 06:55.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Replies: 23
    Last Post: - 26th June 2011, 00:27
  2. Replies: 6
    Last Post: - 12th August 2010, 11:33
  3. Can I drive a 5v LED without a current resistor?
    By Fredrick in forum Schematics
    Replies: 31
    Last Post: - 11th September 2009, 15:42
  4. Current Sensing Resistor
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2007, 17:04
  5. NTC resistor
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 29th September 2005, 19:16

Members who have read this thread : 9

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