Powering ESP32 with AA or NiMH Batteries
Posted: Sun Nov 07, 2021 1:32 pm
Hello, this is my first post to the forum hoping for recommendations about powering ESP32 from regular batteries.
I am using ESP32-WROOM-32D development boards at this moment so I am simply powering the system through USB.
But I want to design my own PCB using just the ESP module.
In my project,
I am only using a single lux sensor that consumes 1.8V 300uA. The consumption of the sensor is so small that I feed the sensor from ESP DAC and it works fine. Also, the sensor is able to tolerate 3.6v on i2c so no special conversion is required to connect to the ESP.
I only use BLE communication to report sensor readings.
After powering up, the device waits for a BLE connection for 5 minutes then goes into sleep until a wake-up signal from a GIO pin is received. When a device is connected, until disconnect ESP keeps reading the sensor and sending GATT notifications to connected devices.
Everything works well for now.
But I am really confused about building the power supply.
I am planning to put a physical on/off switch not to drain the batteries while sleeping.
I am expecting a user to interact with the sensor daily for 1h. I guess a week of battery life is acceptable as long as batteries are easy to reach. Like AA/AAA Alkaline or NiMh. I have space but I don't want to exceed 3 cells. If possible 2 cells are preferred.
While ESP32 is in sleep, the sensor will not be powered up, so consumption will only be ESP32 itself.
While a device is connected, I assume the system will draw 3.3 around 150mA with peaks to 300mA-500mA.
Considering
2 cell Alkaline -> 3.2V to 1.6V
2 cell NiMh -> 2.5V to 1.6V
Is it possible?
I am using ESP32-WROOM-32D development boards at this moment so I am simply powering the system through USB.
But I want to design my own PCB using just the ESP module.
In my project,
I am only using a single lux sensor that consumes 1.8V 300uA. The consumption of the sensor is so small that I feed the sensor from ESP DAC and it works fine. Also, the sensor is able to tolerate 3.6v on i2c so no special conversion is required to connect to the ESP.
I only use BLE communication to report sensor readings.
After powering up, the device waits for a BLE connection for 5 minutes then goes into sleep until a wake-up signal from a GIO pin is received. When a device is connected, until disconnect ESP keeps reading the sensor and sending GATT notifications to connected devices.
Everything works well for now.
But I am really confused about building the power supply.
I am planning to put a physical on/off switch not to drain the batteries while sleeping.
I am expecting a user to interact with the sensor daily for 1h. I guess a week of battery life is acceptable as long as batteries are easy to reach. Like AA/AAA Alkaline or NiMh. I have space but I don't want to exceed 3 cells. If possible 2 cells are preferred.
While ESP32 is in sleep, the sensor will not be powered up, so consumption will only be ESP32 itself.
While a device is connected, I assume the system will draw 3.3 around 150mA with peaks to 300mA-500mA.
Considering
2 cell Alkaline -> 3.2V to 1.6V
2 cell NiMh -> 2.5V to 1.6V
Is it possible?