I am using a ESP32 as a transmitter circuit for a small project. Essentially the circuit is an ESP32 connected to a pushbutton. As the button is pressed, an IR LED emits a signal that is programmed via Arduino IDE on to the ESP32. I want to power this circuit using a battery, but in order to know what capacity battery I need I want to know the total current consumption of the circuit. How do I do this? I have a ammeter. I am wondering where do I measure the current? Do I just place the ammeter in series with the power supply?