rdz_ttgo_sonde icon indicating copy to clipboard operation
rdz_ttgo_sonde copied to clipboard

Add support for AXP2101 (battery voltage + 2nd button)

Open SzczepanLeon opened this issue 1 year ago • 10 comments

New T-Beam V1.2 has replaced PMU

There is no AXP192 but AXP2101

Please add support for that chip, probably migration to XPowersLib is needed.

https://github.com/dl9rdz/rdz_ttgo_sonde/pull/379

SzczepanLeon avatar Aug 23 '23 14:08 SzczepanLeon

Hi, just wondering if you have seen this https://www.aliexpress.com/item/4001178678568.html in which they say that adding a 22R resistor between GPS Supply rail and LORA Supply rail fixes the low output from the new power chip that causes the LORA chip not to work? It could get it working until the software can be updated.

tomtom543 avatar Sep 21 '23 07:09 tomtom543

Interesting. There is nothing about SW loaded. What version erc. Maybe this is dirty HW hack for SW without AXP2101 support?

SzczepanLeon avatar Sep 21 '23 07:09 SzczepanLeon

Well, devel20230828b should contain all necessary code for (a) initializing the AXP2101 and (b) handling the AXP2101 button. Let me know if not. There is also a pull request with updates that add support for reading battery values from the AXP2101 that I still have to merge.

The site you are linking to shows that this is from Aug 25, so that was before the devel of Aug 28 was released :) So at that time such mod might have been necessary.

dl9rdz avatar Sep 21 '23 08:09 dl9rdz

So at that time such mod might have been necessary.

Yes, I think so.

Hack HW or write copule lines of code ;)

SzczepanLeon avatar Sep 21 '23 18:09 SzczepanLeon

Hi Guys,

any luch if latest dev version is fixing that battery problem ? I have the latest dev and battery stats are not working same story with on board GPS in t-beam? I can give you debug logs if required

Thanks Rafal SQ4LOL

rafalantas avatar Oct 19 '23 17:10 rafalantas

No update since devel20230828b, and with that:

  • The power configuration is working, i.e. RX and GPS should be working fine
  • Enhancements on the battery stats on the screen are in a pending pull requests. Still have to merge that (Sorry, I was too busy over the last weeks)
  • The AXP2101 is different and does not provide all features, in particular current measurements are not supported. So these will never be working in the same way as with older T-Beam.

dl9rdz avatar Oct 19 '23 17:10 dl9rdz

I can confirm that Rx & GPS are working on that dev.

With that power chip we don't have info about current(s) but battery precentage is available.

SzczepanLeon avatar Oct 19 '23 18:10 SzczepanLeon

did you configure anything special for that GPS ? i tried to get fix for 30 mins outdoor and nothgin :(

rafalantas avatar Oct 19 '23 18:10 rafalantas

did you configure anything special for that GPS ?

Nothing special. Pins are default. Power as on dev.

SzczepanLeon avatar Oct 19 '23 19:10 SzczepanLeon

Hi Thanks for all the work on the APX2101 chip and its changes . I note that the XPowerLib has what it calls the EGauge and does have this as a % but that it useses fixed charging current model. The most important part is the Voltage Measurement to show the user the state of the battery. Look forward to the update following the pull requiest being incorporated.

sivaelid avatar Nov 20 '23 11:11 sivaelid