Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By RFZ
#56210 I don't see a reason why to actually measure battery voltage. You're not interested in the battery voltage - you're interested to know when batteries have to be replaced.
The ESP can measure its own supply voltage (you can find lots of examples for that).
Depending on the dropout voltage of your linear regulator, the supply voltage of your ESP will start to decrease when the battery voltage drops below ~3,5V which is still enough to operate for a long time.
Just monitor your ESP supply voltage and consider replacing the batteries when the supply voltage drops below ~3,0V.

This way you won't need any additional circuitry but are still able to detect when the battery goes low early enough (weeks before it has to be replaced).
I've attached a voltage reading of one of my nodes as example.
You do not have the required permissions to view the files attached to this post.
User avatar
By TStef
#62088
martinayotte wrote:With batteries, don't use LM1117, since this LDO has a big quescient current, it will drain your battery even if ESP is in deepSleep().
You can use SPX3819, or even better HT7333 or XC6203 instead.


Isn't the output current of the HT7333 a bit too low to run an ESP module? It says in the datasheet that max output current is 250mA.