One part that I find myself using somewhat regularly in microcontroller-based experiments is the “USB power bank” that provides USB-standard 5-V DC output and offers some basic protection features.
On paper, electricity behaves in easy-to-understand, predictable ways. That’s mostly because the wires on the page have zero resistance and the switching times are actually zero, whereas in real life ...