dl9rdz / rdz_ttgo_sonde

259 stars 92 forks source link

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

Open SzczepanLeon opened 10 months ago

SzczepanLeon commented 10 months ago

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

tomtom543 commented 9 months ago

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.

SzczepanLeon commented 9 months ago

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

dl9rdz commented 9 months ago

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.

SzczepanLeon commented 9 months ago

So at that time such mod might have been necessary.

Yes, I think so.

Hack HW or write copule lines of code ;)

rafalantas commented 8 months ago

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

dl9rdz commented 8 months ago

No update since devel20230828b, and with that:

SzczepanLeon commented 8 months ago

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.

rafalantas commented 8 months ago

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

SzczepanLeon commented 8 months ago

did you configure anything special for that GPS ?

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

sivaelid commented 7 months ago

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.