Nodemcu esp8266 / esp32 battery

Hello,
I’ve just finished my project’s code and it works perfectly.
It can be done both on esp32 and esp8266.
But my goal of my project is to let the board work remotely, with a battery, but i don’t know what battery i should use, or what pins i need to connect it to.
Can someone help me with this?
Boris.

I use the 18650 batteries from an old laptop you will want and over/under discharge unit and if you are using solar charger a TP4056. The 4056 will put out a 20v spike that will kill your esp if it’s supply is less than 3v so therefore the over/under voltage protection.

“The guy with the Swiss accent” has a few YouTube videos on this, including this one…

Pete.