Battery¶
XIAO¶
Ref. Seeed
Product | XIAO ESP32C6 | XIAO ESP32C3 | XIAO ESP32S3 |
---|---|---|---|
Power | Input voltage (Type-C): 5V Input voltage (BAT): 4.2V |
Input voltage (Type-C): 5V Input voltage (BAT): 4.2V |
Input voltage (Type-C): 5V Input voltage (BAT): 4.2V |
Power Consumption Model (Supply Power: 3.8V) |
Modem-sleep Model: ~ 30 mA Light-sleep Model: ~ 2.5 mA Deep Sleep Model: ~ 15 μA |
Modem-sleep Model: ~ 24 mA Light-sleep Model: ~ 3 mA Deep Sleep Model: ~ 44 μA |
Modem-sleep Model: ~ 25 mA Light-sleep Model: ~ 2mA Deep Sleep Model: ~ 14 μA |
CR2032¶
Ref.There is more than just one type of CR2032! 4 points to consider when choosing coin batteries_JP
Note
CR2032
C: Manganese dioxide
R: Circular
20mm(diameter) 3.2mm(height)
Capacity: CR2032 has a nominal capacity of 220mAh
- Maxell “CR2032H” has a nominal capacity of 240mAh
Output characteristics Normally, when a high current is passed through CR2032, the voltage drop becomes large, and in the worst case, the device may stop working.As IoT progresses, there are devices that temporarily require large outputs, such as sensing and wireless output, soVarious manufacturers sell high-output coin batteries.
- Murata “CR2032R,” which can output approximately twice the maximum discharge current compared to the standard type.
LIR2032¶
- 3.7V
- 45mAh
Lipo¶
Litium ion vs litiun polymer battery_JP
DATA POWER TECHNOLOGY Monotaro
Xiao ESP32C3¶
- Battery
- The XIAO ESP32C3 is capable of using a 3.7V lithium battery as the power supply input
Note
Instructions on the use of batteries:
- Please use qualified batteries that meet the specifications.
- XIAO can be connected to your computer device via data cable while using the battery, rest assured that XIAO has a built-in circuit protection chip, which is safe.
- The XIAO ESP32C3 will not have any LED on when it is battery powered (unless you have written a specific program), please do not judge whether the XIAO ESP32C3 is working or not by the condition of the LED, please judge it reasonably by your program.
- Sorry, we currently have no way to help you check the remaining battery level through software (because there are no more chip pins available), you need to charge the battery regularly or use a multimeter to check the battery level.
- Check the battery voltage
void setup() {
Serial.begin(115200);
pinMode(A0, INPUT); // ADC
}
void loop() {
uint32_t Vbatt = 0;
for(int i = 0; i < 16; i++) {
Vbatt = Vbatt + analogReadMilliVolts(A0); // ADC with correction
}
float Vbattf = 2 * Vbatt / 16 / 1000.0; // attenuation ratio 1/2, mV --> V
Serial.println(Vbattf, 3);
delay(1000);
}
Power consumption¶
Ref. https://tsuzureya.net/esp32-battery-power-consumption/_JP