INA219 Current & Power Module: Arduino Tryout

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • The INA219 based module is a high side current measuring device that also measures voltage at the load and provides a power calculation, which can be retrieved over I2C.
    Let's see how it compares to a multimeter measuring load currents from 1mA to a couple of amps.
    The circuit diagram in the video shows an ethernet shield instead of an actual Uno but you get the idea.
    Sketch and schematic:
    github.com/GadgetReboot/INA21...
    Patreon: / gadgetreboot
    #ElectronicsCreators
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 26

  • @Taran72
    @Taran72 3 ปีที่แล้ว +2

    Great Tutorial: you covered all the topics I was interested in. The most interesting was the comparison with the Fluke showing a very good accuracy when we consider the price of the apparatus. :)

  • @_el.guapo_
    @_el.guapo_ ปีที่แล้ว

    Would that be good enough to control the charge and discharge of a battery ?
    Compared to a charger module (that has been designed for that job + short circuit protection) ?
    Also, could you connect Vin+ of the INO219 to the Vin of the Arduino ?
    So the battery can be charged by USB while both USB + Vin are powering the Arduino at the same time.
    This is important, so when you unplug the USB you don't interrupt whatever you programmed the Arduino to do (for instance, writing a text file on an SD card).

  • @KL-bi2un
    @KL-bi2un ปีที่แล้ว

    I'm working on a project that measures wind generated a/c power in the 10-50 mA range (ac). Would the INA219 be able to be used for this. I have the AC712 sensor but it doesn't seem sensitive enough. Thx for the tutorial.

  • @bradley9856
    @bradley9856 9 หลายเดือนก่อน +1

    So the maximum is 2A? Why do they advertise it to be 3.2A?
    Been having so much trouble trying to use these. The current measuring is hundreds of mA off when drawing 2 amps

  • @riswanahamedrd9832
    @riswanahamedrd9832 ปีที่แล้ว

    I am getting negative values while measuring current, can you please help me to sort out this issue

  • @HazeAnderson
    @HazeAnderson 4 ปีที่แล้ว +1

    Very nice! Thanks for putting this together. :)

    • @GadgetReboot
      @GadgetReboot  4 ปีที่แล้ว

      I was impressed with its performance so it was well worth the effort. Now I think it’s time to get back to some audio stuff, maybe some delay effects.

  • @skrame01
    @skrame01 4 หลายเดือนก่อน

    How accurate is it with noisy power supplies, how responsive to fast changing loads?

  • @alexanderbagrof7205
    @alexanderbagrof7205 ปีที่แล้ว

    Hello gentlemen! I watched your video, I liked it very much. I assembled this circuit on Arduino UNO R3 with Oled display 128x32 module: SSD1306. Everything works well, thanks. But the font is very small, you need glasses, then I bought TFT 1.77 160(RGB) x 128 on the ST7735S controller, the display works with control programs, but I can’t display information from the INA219 on the display? Can you help write a sketch for this display?
    Best regards, Alex

  • @azolalesedi3191
    @azolalesedi3191 4 ปีที่แล้ว +1

    Hi, how would i code the EEPROM in order to store the data so that when i connect and disconnect my arduino i still have my previous data

  • @MrBobWareham
    @MrBobWareham 3 ปีที่แล้ว +1

    Thank you for your video very helpful a good tool to measure v-a-w I want to make one to test
    Lipo batteries to work out the watt-hours on cells at one amp I have looked at watt meters from China but they are so inaccurate they are not worth buying I have joined your channel as your description is good and easy to follow

  • @electronic7979
    @electronic7979 4 ปีที่แล้ว +2

    Helpful video 👍 I like it

  • @Leif_YT
    @Leif_YT 4 ปีที่แล้ว +1

    The INA219 can be pretty useful, especially combined with a sd card module for logging or an esp8266/esp32 to transmit the data via WiFi or Bluetooth.

  • @SimpleElectronics
    @SimpleElectronics 4 ปีที่แล้ว +6

    Don't consider subscribing, just do it already - look how detailed the videos are!

  • @jigneshgol344
    @jigneshgol344 ปีที่แล้ว

    How to AC Milliamp measure in Arduino .....???

  • @MuhammadShafiq-cv9ro
    @MuhammadShafiq-cv9ro 2 ปีที่แล้ว

    I have a question to ask sir, can I use this sensor to measure the voltage and current for solar panel 10w, 18v peakvoltage and 0.63peakAmpere?

  • @chenartahir1865
    @chenartahir1865 3 ปีที่แล้ว

    Hi. I would like to measure of 15 sample of MFC for voltage and current for 40 days continuous . How can i build it?

  • @DavidMsg
    @DavidMsg 4 ปีที่แล้ว

    Any way to go lower than 0.00 ma? I'd like to measure ua.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist 4 ปีที่แล้ว +1

    Confusing , they are being very sneaky I feel. Electrical Characteristics really should not have values in them with little notes attached. The Bus voltage (input voltage) range should have a max value of 26 and may be a note to say that the ADC scales to 32V when BRNG = 1.
    Have used the analogue versions of chips like this before where they just provide a 0-5V output proportional to the shunt current. fed this to a PIC analogue input to measure the supply current and also connected to the comparator input to cause an interrupt, the comparator output used to shut down the power supply. this way you don't have to wait for the controller to read the current and shutdown if too high. With medical it's better to have as much done with hardware as it's much easier to test.

    • @GadgetReboot
      @GadgetReboot  4 ปีที่แล้ว

      Yeah I’ve had to do things with safety requirements where we have to do it in hardware to make sure the functionality is always there and is as fast as possible, or if we wanted the feature also in software for some reason , it had to still be in hardware as well to be immune to bugs or incorrect or missing firmware, which would be situations where it’s not so time critical but something still needs to happen within a reasonable time constant.
      I still want to try to get the ACS712 sensor working better. My initial attempt had very noisy output but it’s been a while, I need to start all over someday with a clear head.

    • @TheEmbeddedHobbyist
      @TheEmbeddedHobbyist 4 ปีที่แล้ว +1

      @@GadgetReboot i'd stop as the ACS712 from Allegro was going obsolete in around 2017. they recommend the ASC723 as the new replacement. i also noted that Allegro don't rate their own components very highly. quote "Allegro’s products are not to be used in any devices or systems, including but not limited to life support devices or systems, in which a failure of Allegro’s product can reasonably be expected to cause bodily harm."

    • @GadgetReboot
      @GadgetReboot  4 ปีที่แล้ว

      Yeah in 2018 I was updating an old design from someone else that had ACS712 in it and I ran into the obsolescence thing so I had to switch to the suggested replacement in the data sheet. It sounds like very specific wording from allegro, I wonder if they had any special lawsuits before.

    • @TheEmbeddedHobbyist
      @TheEmbeddedHobbyist 4 ปีที่แล้ว +1

      @@GadgetReboot it's very common, when trying to find a micro-controller for use in an aerospace application we had issues with all but Infineon, even after pointing out that there would be an independent watchdog chip in circuit.

    • @GadgetReboot
      @GadgetReboot  4 ปีที่แล้ว

      I remember having trouble finding a 35,000uF or so ( whatever was the nearest standard value, maybe it was a little less actually can’t remember ) tantalum approved for aerospace and military/defence. In the end they just stuck a well-established 50,000 µF part in the design because it was already approved from many previous designs.
      I wish they had told me that when I first went on that goose chase.

  • @anumsheraz4625
    @anumsheraz4625 4 ปีที่แล้ว

    Can this be used to measure mains 220V ?