Closed midopple closed 10 months ago
Thanks for reporting this, very strange!
I'll take a look as the value seems to be x10 out (should be 7.08W). This value is actually returned by the INA chip directly.
Can you confirm that the power value is correct for other loads?
Hi,
I have taken some values from the log files and calculated the power and compared it with the value from the IC
on the X-axis is the current from -50 to +33A on the Y-axis the power and on the secondary axis the error in watts
It looks like the error occurs only in the range of +/- 4 A around the zero point.
Table
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
voltage | current | Power from INA229 | Power calculate | Error [W] -- | -- | -- | -- | -- 52,136 | -50,9853 | 2662,5964 | -2658,169601 | 4,4267992 52,026 | -50,7162 | 2642,8625 | -2638,561021 | 4,3014788 52,827 | -19,1712 | 1013,3875 | -1012,756982 | 0,6305176 52,572 | -10,0389 | 527,979 | -527,7650508 | 0,2139492 52,987 | -7,2633 | 384,9525 | -384,8604771 | 0,0920229 52,95 | -7,1386 | 378,077 | -377,98887 | 0,08813 52,672 | -6,6131 | 348,4155 | -348,3252032 | 0,0902968 53,014 | -5,9867 | 317,439 | -317,3789138 | 0,0600862 53,042 | -4,4362 | 235,3415 | -235,3049204 | 0,0365796 52,714 | -3,5278 | 185,9935 | -185,9644492 | 0,0290508 52,739 | -2,2511 | 121,958 | -118,7207629 | 3,2372371 52,747 | -0,9708 | 84,2115 | -51,2067876 | 33,0047124 55,856 | -0,17 | 81,7905 | -9,49552 | 72,29498 55,921 | -0,06 | 81,1345 | -3,35526 | 77,77924 56,723 | 0,4622 | 75,557 | 26,2173706 | 49,3396294 56,712 | 0,7966 | 80,0775 | 45,1767792 | 34,9007208 52,86 | 1,6891 | 119,9235 | 89,285826 | 30,637674 52,878 | 2,4553 | 129,8145 | 129,8313534 | -0,0168534 52,925 | 3,7361 | 197,712 | 197,7330925 | -0,0210925 53,074 | 6,6278 | 351,7245 | 351,7638572 | -0,0393572 53,13 | 7,7017 | 409,1395 | 409,191321 | -0,051821 53,27 | 8,6816 | 462,389 | 462,468832 | -0,079832 53,434 | 10,8691 | 580,654 | 580,7794894 | -0,1254894 53,581 | 13,3095 | 712,9255 | 713,1363195 | -0,2108195 53,795 | 15,2305 | 819,0445 | 819,3247475 | -0,2802475 53,906 | 19,0834 | 1028,2455 | 1028,70976 | -0,4642604 53,971 | 20,51 | 1106,3765 | 1106,94521 | -0,56871 54,022 | 22,6191 | 1221,218 | 1221,92902 | -0,7110202 54,061 | 25,2087 | 1361,9845 | 1362,807531 | -0,8230307 54,08 | 26,2312 | 1417,5549 | 1418,583296 | -1,028396 54,135 | 31,0605 | 1679,98 | 1681,460168 | -1,4801675 54,152 | 32,9797 | 1784,3474 | 1785,916714 | -1,5693144
Describe the bug If the measured current from the INA229 (internal current sensor) is close to 0 then a power of > 70 W is still displayed, since the power is calculated in the INA229 chip the question is whether the error is in the hardware or in the display.
If the current value is >5A, the measured power is very good.
Hardware/Software Versions Controller version (from PCB): 4.6 Shunt = 100A/50mV Internal Sensor (INA229)
(below can be obtained from the "About" page in the controller web interface) Processor: ESP32 Version: f6e94fbd18cf7803e818459735021730541ce20b (latest Master) Compiled: 2023-09-10T06:18:59.890Z
To Reproduce Steps to reproduce the behavior: Use internal Currentsensor and check the Powervalue when Current < 1A