How can we power microcontrollers with batteries?
For many tinyML solutions, batteries could be the only power source for our microcontrollers and this final recipe will teach us how to power them with AA batteries.
Getting ready
Batteries are sources of electric power and have a limited charge capacity. The charge capacity (or battery capacity) quantifies the stored charge and is measured in milli-ampere-hour (mAh). Therefore, a higher mAh implies a longer battery life.
The following table reports some commercial batteries that find applicability with microcontrollers:
Figure 12.4: Some commercial batteries for microcontrollers
The battery selection depends on the required microcontroller voltage and other factors such as charge capacity, form factor, and operating temperature.
As we can observe from the preceding table, the AA battery provides a higher capacity, but it supplies 1.5V, which is typically insufficient for microcontrollers.
Therefore...