-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add INA226 #2622
Comments
I guess it could perhaps be combined with this issue: #2602 ? |
has the ina226 already been immigrated? otherwise I would join the request. |
Nope not yet. (I don't even have one here to test) |
I subscribe to the request. I would very much like the INA 226 to be added to the Energy (DC) build. This sensor works better. Help with the solution of the issue. |
The INA library has been renamed/moved to https://github.com/Zanduino/INA |
I am not an expert in programming, if the developers included these libraries in the Energy (DC) assembly, that would be very good. |
Tell me, is it possible to add these libraries https://github.com/Zanduino/INA to the ESPEasy firmware? Or where else to turn? |
I really need firmware for INA 226. |
I have no idea how the Tasmota firmware does handle libraries. |
I was wrong not in Tasmota but in EspEasy. |
What is the main difference between the INA 226 and the one that is supported? I will have a look in my drawer with sensors to implement (which is a large drawer with lots of sensors) to see if I already have it. |
The current measures correctly, the voltage does not measure correctly, it is greatly underestimated. And out of proportion, the formula does not help. |
This is a description of the INA216 (the one supported) ? |
OK, so we're now probably reading the values from the wrong registers, and/or apply the wrong formula for calculating the values. But what I asked was, what makes the INA226 so much better than the INA216? |
INA 226 measures voltages up to 36V and connects to the negative bus, INA 219 measures voltages up to 26V and connects to the positive bus. And yet, maybe it's just me in 219 the measurements jump strongly, in 226 it measures stably. I think that at 219 the readings jump due to the fact that measurements take place in the positive bus, there are pickups. |
I have already tried several times to connect INA 219, the voltage measures normally, but the current readings jump a lot, for example, if there is a constant consumption of 1A, it measures 5A once, the second time is -3A, in INA 226 it shows stably 1A. I don’t know why, maybe the high frequency inverter is interfering. But the voltage in INA 226 does not show correctly, there is no linearity, for example, if the voltage shows 20v and in fact 20v, if in fact 18v INA 226 shows 17v, and if in fact 22v INA 226 shows 23v. There is no linearity. And the readings of INA 226 are not correct, instead of 20v it shows 10v, I already multiply this by 2 with the formula. |
I tried experiments with capacitors and filters, it did not work out to achieve stability, I think this is due to the positive bus. For this I put INA 226, but I am not satisfied with the nonlinearity of the voltage in 226. |
If it helps, here is the firmware https://home-garden.org/forum/index.php?action=dlattach;topic=42.0;attach=98. The INA 226 sensor itself is working correctly, but something is wrong with the firmware, the rules do not work and the commands from the command line do not pass. Link to page https://home-garden.org/forum/index.php?topic=42.0. Can you fix this and integrate it into the ESPEasy firmware itself? |
Apparently someone already had made it working for the INA226, but I don't see the code for it. (I hope Google translate didn't mess up the post you linked) |
I post it here |
That's a bin file. |
Hey there, I want to follow up this issue. I don't know the firmware provided by @Oleg-Sob. |
The INA219 is already include as Energy (DC) and I'm happy with it but this sensor is limited for some use.
So is it possible to add the INA226 ? with Shunt 2mOhm (10A Load)
The library can be found here : https://github.com/SV-Zanshin/INA226
Thx
The text was updated successfully, but these errors were encountered: