Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INA226 , INA228 red module #11

Open
oduled opened this issue Dec 28, 2024 · 4 comments
Open

INA226 , INA228 red module #11

oduled opened this issue Dec 28, 2024 · 4 comments

Comments

@oduled
Copy link

oduled commented Dec 28, 2024

Hello, Could you add connection diagram for the red module with 0.002ohm shunt resistor?
Did you try using same module with INA228 ?
ina226

@wollewald
Copy link
Owner

Hi @oduled , I have added a circuit diagram for the red module. There are different options: you can apply it on the high side, on low side, and you can include the shunt vor the bus voltage and power measurements or not.
Important is to not use the small In-/In+ connectors, but the bigger connectors which are labelled as "Current + / -". For reasons I don't understand there are 4.7 ohm resistors between In+ and the shunt and between In- and the shunt. To me this makes no sense.

I have not seen an INA228 module anywhere. Have you found it somewhere? If yes, I would be interested in a link.

I was thinking about including other INAxxx current and power sensors but there are so many:
https://www.ti.com/amplifier-circuit/current-sense/digital-power-monitors/products.html
Maybe I will have a closer look into the ones which have three or four channels.

I hope this answers your questions.

@wollewald
Copy link
Owner

A short addition to my comment: The 4.7 ohm resistors do make sense. It seems that the developers of the modules have followed the recommendations in the datasheet and added a filter:

ina226_circuit

But if you let your load current flow through the IN+/IN- connectors on the module, the INA226 measures the voltage drop over the two 4.7 ohm and the shunt resistor - and that makes no sense and is very confusing.

@oduled
Copy link
Author

oduled commented Dec 29, 2024

Hi,
Thanks that you update library and schematic diagram
I bought INA228 from AliExpress ,It's with same INA226 PCB, chip pinout is the same.
What I need to do for using it in fast mode(400kHz) or High speed mode 2.94MHz?
What is the short amplitude pulse that I can measure with it?

@wollewald
Copy link
Owner

Hi @oduled , the INA226 and the INA228 may have the same pinout but internally they are very different. For example: the INA228 has 20 registers, the INA 226 has only 10. The INA228 is a 20 bit device, The INA226 is a 20 bit device. If I planned to write a library for the INA228, it would be a separate one. It's not much code which could be recycled.

I found two other libraries on Github which you could try:
https://github.com/adafruit/Adafruit_INA228
https://github.com/RobTillaart/INA228

Meanwhile I have also found IN228 based modules. I will order some and test the libraries. Depending on the result I might write an own library, but even if I decide to do this, it will take time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants