Giter Club home page Giter Club logo

Comments (50)

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024 2

I started working on this today and have discovered a basic issue with the library which I can't quite figure out (the "inaDat" class keeps on getting instantiated and I can't see why). So this might take a bit longer than I originally thought to get implemented.

(INA219 and INA228 used together to measure LED power with an Arduino Micro)
20210513_132142

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024 2

I'm returning home next week and my first Arduino project is going to be finishing the INA228 support for this library. I really want to use the chip and it seems that there is a lot of interest out there for a good library, which I hope to be able to supply.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024 1

Hello Daniel - Alex has been kind enough to offer sending me an adapter with the INA228; although I'm not sure when. But if that doesn't work out I'll get back to you and your generous offer.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Those new INA228 and INA229 look nice! I might be interested in them for myself for a solar power charging system. Unfortunately, these are not I2C but SPI systems, which would mean making some significant changes/additions to the INA library. That doesn't mean that it isn't possible, just that it isn't just a matter of adding the new specifications into the existing code.

At the moment neither Mouser nor Digikey have any in stock, otherwise I would have ordered some already :)

from ina.

Agilitytime avatar Agilitytime commented on July 22, 2024

The INA228 has I2c and the INA229 is the same with SPI.
I think we only need the energy/charge Monitor function.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Ahh... I downloaded both datasheets, but only looked at the INA229 one. I'll see if I can get a INA228 ordered (and soldered) and should be able to add it to the library. I won't start with any coding until I get the hardware, though - so it might take a bit.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I've ordered a INA228 from Digi-Key and will see about soldering together a test board and adding this device to the library.
The INA237 is still not in stock.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

The INA228 has arrived. I thought that the package was a 10-TSSOP and I have a breakout adapter to DIP for that, but looking at the chips they seems awfully small and I re-checked the datasheets to find that the package is a 10-VSSOP and I have no adapters for that. A quick look at digikey didn't show me any adapters, so I might have to draw up a schematic and order some special PCBs to get this done; as there are still no breakout boards out there.

from ina.

Agilitytime avatar Agilitytime commented on July 22, 2024

Hello Arnd,

thank You for your Support!!!
Can i "Help" you with a donation ?

Thanks,
Sebastian

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Hello Sebastian (that sounds like a German name),

Thanks for the kind offer! I will download Fritzing again and try to design a board that I can get cheaply made. I have a toaster reflow oven I made a long time ago that needs to see some use :)

I just am not proficient with Fritzing or similar CAD products so this might take a while.

from ina.

aXe-88 avatar aXe-88 commented on July 22, 2024

Hi,

I am looking into pulling myself and contribute. Before you design a Board just use a INA226 based one and exchange for the 228. Same pinout, same package.

If you want i'll send you one.

Br, Alex

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

from ina.

magicsmoke avatar magicsmoke commented on July 22, 2024

@SV-Zanshin

I've ordered these chips, and have breakout boards arriving next week. Will be willing to test!

If you send me your mailing address I can mail you some adapters.

from ina.

magicsmoke avatar magicsmoke commented on July 22, 2024

Okay good to hear, send a message if you still would like some boards.

I'd be willing to take a shot at implementing the 228 once my boards and chips arrive.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Perhaps you could test the library version with INA228 support once I get that done, and you can make sure that I didn’t miss anything.

-Arnd.

from ina.

magicsmoke avatar magicsmoke commented on July 22, 2024

That works for me!

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

@aXe-88 - I just checked my mailbox and have received your board with the INA-228! Many thanks for that; and since tomorrow is a national holiday and the weather is supposed to be cold and rainy I think I'll get started with putting this into a circuit and developing the library extension.

THANKS!

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Update: This might take a bit longer than I originally thought. The INA228 is a different "beast" from the others and I'd originally thought I'd only need to change some of the internal values to add this chip; but the accuracy is 20bit rather than 16bit so I have been changing internal variables to 32bit and am debating taking the plunge and changing the library to use floating point or perhaps even double.

from ina.

magicsmoke avatar magicsmoke commented on July 22, 2024

Hello Arnd.

I also have the INA228 now to test with once you get a initial release out :)

from ina.

yahaggach avatar yahaggach commented on July 22, 2024

Hello SV-Zanshin,

Could you please tell me where you got the breakout board for the INA228 is it a small one you designed yourself or readily available somewhere ?

Thanks !

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Unfortunately I didn't find a commercial source, the pinout is the same as INA226 and Alex sent me a prototype to use.

from ina.

yahaggach avatar yahaggach commented on July 22, 2024

Thanks a lot. I'll quickly grab a breakout board for the INA226 and replace the chip with a 228. If you don't mind, in terms of accuracy and resolution, what INA chip do you recommend for voltages <36V and currents <5A. My main need is high resolution and accuracy.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I'm not in place with fast internet at the moment and don't have the data sheets handy, but I think that the Texas Instruments site has a chart of the various devices including the voltage ranges and accuracy. Or perhaps using DigiKey to list the INA2xx devices and then sorting by accuracy/gain?

from ina.

yahaggach avatar yahaggach commented on July 22, 2024

Fair enough. Thanks for the help !

from ina.

majianjia avatar majianjia commented on July 22, 2024

Hi @SV-Zanshin
Is the current lib supported 228?

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

@majianjia - not yet. I am currently away from my home but plan on returning soon and will then update the library to support the INA228 functionality correctly.

from ina.

majianjia avatar majianjia commented on July 22, 2024

@SV-Zanshin Very well, I am trying to implement it but facing the same 20bit registers problem, looking forward to seeing your implementation. Thanks.

from ina.

varun-skies avatar varun-skies commented on July 22, 2024

Hy SV-Zanshin

any update on the library to include INA228. Have you tested the library ?? Please release the updated library soon.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I'm really sorry for the long delay - I'm currently in lockdown far away from my home computer, the INA228 and my testing hardware so I haven't been able to do any work. I thought I would have been able to return 2 months ago, but that return journey is proving difficult. I will be back on November 1st but I think I can find some time soon to program around a bit - but I won't have a hardware test bench with an INA228 available and since that chip is significantly different from the others I don't think that it is is going to work out in the short term.

from ina.

riscyd avatar riscyd commented on July 22, 2024

I'm really sorry for the long delay - I'm currently in lockdown far away from my home computer, the INA228 and my testing hardware so I haven't been able to do any work. I thought I would have been able to return 2 months ago, but that return journey is proving difficult. I will be back on November 1st but I think I can find some time soon to program around a bit - but I won't have a hardware test bench with an INA228 available and since that chip is significantly different from the others I don't think that it is is going to work out in the short term.

I have one bult into my hardware, connected to a QT PY module. I could offer remote access if you would like to test some libraries. I have some basic readouts working.
BTW, did you see that TI offers a library builder to download? It is just not arduino compatible as is.

from ina.

sebashb avatar sebashb commented on July 22, 2024

Hi @SV-Zanshin, we have a INA228 test board from Texas, we may help you test the library. We are also very interested in suing the INA228. We have already adapted another library that kinda works but sometimes we get wrong current values.

from ina.

majianjia avatar majianjia commented on July 22, 2024

@sebashb Could you also recommend the lib support INA228 for me? Thanks. I am currently using my own code, not very ideal.

from ina.

sebashb avatar sebashb commented on July 22, 2024

There is no lib, we adapted one lib that was made for the INA226 to make it work with the 228. But it’s nos really a finished product. Sometimes it works sometimes it doesn’t.

from ina.

rapzak avatar rapzak commented on July 22, 2024

Hi, is there any progress on the INA228, i have a board with 3x INA229 i like to get up running - maybe change this to SPI, so is there some work in progress i could see into to add SPI? :)

from ina.

jhardesty200 avatar jhardesty200 commented on July 22, 2024

Also pretty interested if there is any progress on the I2C version? =>

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I've returned back home a week ago and will be setting up my INA228 test rig this weekend and hope to make some progress on this - I'm excited to get this addition done.

from ina.

jhardesty200 avatar jhardesty200 commented on July 22, 2024

I am not much help when it comes to software but I'm good with hardware! Let me know if I can be of any help with the project. I am working on a relay charge controller utilizing the INA228 and it would be so much cleaner to have a library XD - good luck and keep me posted!

from ina.

Robocraze avatar Robocraze commented on July 22, 2024

Hi, We were working with this on our side as well. We have come up with a library with some basic functionality if this helps. You can check it here: https://github.com/Witty-Fox/DataCollector

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

@Robocraze - awesome, many thanks! I just took a quick look and, while I will continue with updating my library, I think I can use some of your work in your library to assist in that process. And I can always run both libraries to compare outputs to make sure that my library works correctly. The main reason that I'm continuing on my side is that I already support other INAs and I also won't use floating point on Arduinos (just a person design decision). Thanks again!

from ina.

sebashb avatar sebashb commented on July 22, 2024

Attached you can also find the Library that we have developed, I don't remember exactly in which one we based ours, I think it was in this one: https://github.com/jarzebski/Arduino-INA226

The problem is that it is not always giving the correct current values and we can't find why. Nonetheless, we are pretty confident that the rest of the functions, namely the configuration part is correctly implemented since it was debuged with the help of TI Staff.

INA228.zip

from ina.

riscyd avatar riscyd commented on July 22, 2024

I have written my own arduino code to write and read the most important registers. Works quite well.
However I noticed that Vshunt is quite noisy, not to say super noisy. Vcc etc. is proper.
I experience this even if nothing is connected amd pwm is off. With PWM and in operation it's a bit worse as expected.
I see this in a range of +/- 10-15 bits. With pwm on a bit higher.
Vbus however is spot on and super stable.

For my application in a MPPT it seems not really usable. Except with very high averaging and sample times which then gives no satisfactionary results in terms of tracking speed.
The Microchip PAC 193x series seems here much more suitable and WAY less noisy.
I tried without input filter, with 2x 22R and 0.1uF and up to 2x 100R and 1uF ceramic cap. The external filter to my surprise did not help much.
The tracks are proper layouted and short.

I'd like to hear whether people here made similar observations?

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I reserved Sunday for working on the INA228 and didn't get very far at all. I couldn't find the breakout that @aXe-88 sent to me, so I decided to get some VSSOP-10 breakouts and order the INA228, INA237 and INA238 to work on. While the empty prototype boards are available everywhere, it seems that the INA2xx chips are out-of-stock with a delivery in MAY 2022!! I checked digikey and mouser with no luck. The only source I found for a INA228 was the evaluation kit from TI for €52 which I'm debating on getting so that I can get cracking on this, but that is a lot of money for something that I really don't need.
I'll keep this issue updated with my progress.

from ina.

sebashb avatar sebashb commented on July 22, 2024

We have both bare INA228s and TI’s demo board. I think we can send either one or both to you (on the case of the demo board we would need it back later on) if you want.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

@sebashb - Thanks for the kind offer! I know I ordered INA228 bare chips and am going to see if I can find them after all; although I'm not very good at soldering such small devices I did make a reflow toaster-oven a while back and will see if that is still working to put the VSSOP-10 components onto a prototype board -- if I find the INA228. Otherwise I think I might just bite-the-bullet and order the evaluation board in order to save time.

from ina.

jhardesty200 avatar jhardesty200 commented on July 22, 2024

@SV-Zanshin I also have a few extra INA228 on custom boards if you need some. =)

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

@jhardesty200 - Could I take advantage of that and get one INA228 on a board? I found one chip here, but don't have a VSSOP-10 to solder it onto and odds are good that with just one chip I'd mess up any soldering attempts... I'm currently in Germany - where would you be sending from?

from ina.

jhardesty200 avatar jhardesty200 commented on July 22, 2024

@SV-Zanshin I am currently back home in California for the holidays and won't be back to my place until mid January I do have one INA228 and INA229 on hand as well as access to a rework station with a few VSSOP breakouts. I can get you the boards when I get back from California or I can send you the 228 that I have but I would like to do a little bit more testing before then or if I can get my hands on another bare chip to solder on to a breakout that I can test on. Sorry for the delay! =(

Edit the INA228 is on a little board I had printed with the pins labeled on it just for fun (and so I don't get my pins mixed up) if you want it I'll send it to you and you send me your bare chip I can solder it onto another board. It's inefficient and I will have to hold up on my testing but to get you a chip I am happy to help =)

from ina.

YuMERA avatar YuMERA commented on July 22, 2024

Any progress in adding INA229 SPI ic to your library?

from ina.

JAGX13 avatar JAGX13 commented on July 22, 2024

Can anyone tell me if it's possible to use this library on Atmega 4809 (Uno wifi R2)? I want to use the INA228

Edit: I decided to buy Uno R3 for Atmega328. Up and running now. Is anyone still working on this project? Anyone have the energy registers from INA228?

from ina.

Robocraze avatar Robocraze commented on July 22, 2024

from ina.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.