I couldn’t get my INA226s to work properly either so I ended up using a PZEM-017 on the Rx Tx .
BTW I use a separate USB PSU for the PZEM-017 – you can get a current flow from the USB supply if you use the same one for the ESP8266
Regards
Phil K
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/2f6c0814-0410-47b2-8fec-45baa6cb3414n%40googlegroups.com.
Also, the datasheet seems to imply the maximum shunt voltage is about 80mV, which on a your 750uR shunt resistor give a maximum full scale reading of 106A.Is that correct?
Did not (yet) compare datasheets (I2C / digital part side)
But INA226 connected to Tasmotized Wemos D1 is detected as INA219 only with incorrect voltage (current sensor not connected) reading.
Laurent
Ok, looked at driver code, one thing is not 100% clear to me:
Best way to find out about setoptions is to go into the Issues and search for it. There is normally an accepted pull request for it which version it was first implemented. If you mean which bins have which things in the builds page is the answer
Tasmota/BUILDS.md at development · arendst/Tasmota (github.com)
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/289695a4-052d-4d9d-b5da-3509dcd72d1bn%40googlegroups.com.
I don’t think you need to recompile. If you look at the datasheets the calibration is different so you may just be able to scale the readings you get.
INA219 - CALl = 0.04096(Current_LSB*R´ SHUN)
INA226 - CAL = 0.00512/(Current_LSB*RSHUN)
The Power register is set to 20x Current_LSB in INA219 and 25x in INA226.
All this points to the readings being offset by a consistent amount so it should be relatively easy to scale the output
INA219 Zerø-Drift, Bidirectional Current/Power Monitor With I2C Interface datasheet (Rev. G)
Regards
Phil K
Sent from Mail for Windows 10
From: Laurentp
Sent: 27 May 2021 14:17
To: TasmotaUsers
Subject: Re: INA219 vs INA226
Thx,
this matrix confirms, that I have to build my own BIN, as INA226 is nowhere included.
This returns to previous question: - how to build arbitrary version using GITPOD?
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3f42bad3-9680-4855-95de-0b11e8b63a6an%40googlegroups.com.
I don’t think you need to recompile. If you look at the datasheets the calibration is different so you may just be able to scale the readings you get.
Not sure about GitPod but when I compiled my own I followed these instructions – I used PlatformIO
In your case it would be to add (or uncomment if it’s already there)
#ifndef USE_INA226
#define USE_INA226
#endif
Regards
Phil K
Sent from Mail for Windows 10
From: Laurentp
Sent: 27 May 2021 14:17
To: TasmotaUsers
Subject: Re: INA219 vs INA226
Thx,
this matrix confirms, that I have to build my own BIN, as INA226 is nowhere included.
This returns to previous question: - how to build arbitrary version using GITPOD?
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3f42bad3-9680-4855-95de-0b11e8b63a6an%40googlegroups.com.
PlatformIO doesn’t need Windows. I think the process is the same in GitPod just never used it
Have you read the GitPod page?
Regards
PhilK
Sent from Mail for Windows 10
From: Laurentp
Sent: 27 May 2021 17:35
To: TasmotaUsers
Subject: Re: INA219 vs INA226
Don't have Win$ machine nor want one ;p.
GitPod looks attractive to me, no install, just use.. browser based,
Anyone help?
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/c160e9c0-0469-4cf5-876e-687b5366505an%40googlegroups.com.
Have you read the GitPod page?
Yes that should be correct for 8.5.1
Sent from Mail for Windows 10
From: Laurentp
Sent: 27 May 2021 20:24
To: TasmotaUsers
Subject: Re: INA219 vs INA226
Is it so simple like "https://github.com/arendst/Tasmota/tree/v8.5.1" ? For 8.5.1.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/2e3348bd-d608-4b52-bba2-4ff8c8fa9ef3n%40googlegroups.com.
```
Tool Manager: Installing toolchain-xtensa @ ~2.40802.191122
Tool Manager: Warning! More than one package has been found by toolchain-xtensa @ ~2.40802.191122 requirements:
- platformio/toolchain-xtensa @ 2.100200.0
- mcspr/toolchain-xtensa @ 5.100200.201223
- tasmota/toolchain-xtensa @ 5.100200.210303
Tool Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-xtensa @ 2.40802.200502 has been installed!
Tool Manager: Installing jason2866/framework-arduinoespressif8266 @ *
Error: Could not find the package with 'jason2866/framework-arduinoespressif8266 @ *' requirements for your system 'linux_x86_64'
```
"master" (whole URL from Wiki) compiles OK.
How to track / correct this error?
Even with "master" branch have some problem:
The compiling your own firmware page sort of explains it
You will need to copy user_config_override_sample.h to createuser_cofig_override.h
Look for
;#ifndef USE_INA226
;#define USE_INA226
;#endif
and remove the ; in front of each line
then, to remove INA219 support
add
#ifdef USE_INA219
#undef USE_INA219
#endif
Regards
Phil K
Sent from Mail for Windows 10
From: Laurentp
Sent: 14 June 2021 13:56
To: TasmotaUsers
Subject: Re: INA219 vs INA226
Ok, so please tell me, step by step if You could, what have I to obtain firmwawe "like Tasmota-sensors only with INA226 instead of INA219 support"? Maybe adding Polish language instead of English. (but this is not "a must").
poniedziałek, 14 czerwca 2021 o 10:52:01 UTC+2 sfromis napisał(a):
You cannot add stuff to tasmota-sensors, only to the base "tasmota".
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9dbce359-67c4-49ae-804e-79bc68b40a85n%40googlegroups.com.
No if it doesn’t contain the part you need to add it. Because of possible I2C driver conflicts not all of the options are available all the time.
I2C Devices - Tasmota gives you the driver code to use in user_config_override.h
Regards
Phil K
Sent from Mail for Windows 10
From: Laurentp
Sent: 15 June 2021 07:36
To: TasmotaUsers
Subject: Re: INA219 vs INA226
That's exactly what I did.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/5fa2ad3c-5566-4373-a5fe-36f63840f219n%40googlegroups.com.