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

INA3221 is supported, how to configure? #73

Closed
rin67630 opened this issue Dec 1, 2020 · 7 comments
Closed

INA3221 is supported, how to configure? #73

rin67630 opened this issue Dec 1, 2020 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@rin67630
Copy link

rin67630 commented Dec 1, 2020

Hi Zanshin,
let me first apologize for not having confirmed the previous issue about the INA226.
Yes, i did understand now how it works.

My next question arises:
I have ordered some INA3221 that you are supporting. I just wonder how to configure the channel.
That way?
ina1_shunt1 = INA.getShuntMicroVolts(0,0);
ina1_shunt2 = INA.getShuntMicroVolts(0,1);
ina1_shunt3 = INA.getShuntMicroVolts(0,2);
ina2_shunt1 = INA.getShuntMicroVolts(1,0);
Thank you for clarifying

@rin67630 rin67630 added the question Further information is requested label Dec 1, 2020
@rin67630
Copy link
Author

rin67630 commented Dec 1, 2020

I have seen that #andybarrow asked the same question:
"How does one differentiate between the three channels of the INA3221?"
but I did not find the answer in the dialog following.

@SV-Zanshin
Copy link
Collaborator

The INA3221 shows up as 3 distinct devices. The "getShuntMicrovolts()" function only takes one parameter, so you would call it as

   uint16_t in3211_1 = INA.getShuntMicroVolts(0);  
   uint16_t in3211_2 = INA.getShuntMicroVolts(1);  
   uint16_t in3211_2 = INA.getShuntMicroVolts(2);  

@SV-Zanshin
Copy link
Collaborator

Where die @andybarrow ask the question?

@rin67630
Copy link
Author

rin67630 commented Dec 1, 2020

Thank you!
@andybarrow asked in closed issue #67.

Since you both seem to be interested in building BMS with INA chips, I am working on a networked battery reporting system based on INA chips, ESP8266 and thinger.io as dasboard server.
I mainly aim to build a software MPPT around plain buck converters targetting the very low-power domain, but the main code could be used for a BMS of any dimension as well.
The main feature is currently to be able to forward the battery information over the network to another ESP, so one could build a BMS for any voltage with an ESP per 12V block, overcoming the 26V limitation of the INA.
https://github.com/rin67630/Solar-Booster
Stay tuned...

@rin67630 rin67630 closed this as completed Dec 1, 2020
@rin67630
Copy link
Author

rin67630 commented Dec 1, 2020

here an example of my solar-booster dashboard:
grafik

@SV-Zanshin
Copy link
Collaborator

Very nice!

My battery bank is 24V which means it can hit 28.8V while charging so the standard breakout boards for the INA219 won't work for me. I want to monitor my solar panels separately, so the INA3221 is perfect for me so that I can save on components.

@rin67630
Copy link
Author

rin67630 commented Dec 1, 2020

INA226s could do (36V), but are limited to 24V nominal.

I suggest to use a network of several ESP8266s (one for each block of 12V + one to centralize the values) equiped with INA3221 to monitor each cell, to make a scalable solution, open ended to every voltage.
You have more devices (an ESP8266 costs nothing), but far less cables.

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

No branches or pull requests

2 participants