LM317 variable power supply
Turn a 12 V adapter into an adjustable 1.25–10 V supply for your experiments.
Shop by category
Shop all componentsPower cuts corrupt SD cards and stop home servers. The Waveshare UPS HAT (E) holds four 21700 Li-ion cells and switches to them instantly when mains power fails, while charging them when power is back. Its I2C interface reports battery voltage, current and percentage, so a script on the Pi can shut it down safely when the cells get low. 21700 cells hold about 4500 mAh each, enough for hours on a Pi 4.
Use only good matched cells, never short them, and keep the HAT on a non-flammable surface.
Tick anything you already have and the total updates.
Waveshare UPS HAT (E) for 4x 21700 cells
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB-C supply into the UPS HAT input, cells as backup.
The cells are low or not making contact; charge fully and check the holders.
I2C is off or the HAT is not seated.
A little is normal; hot cells mean a bad cell; remove it.
Several hours on a Pi 4 at light load; more cells and lighter loads last longer.
Yes, from the Pi's USB ports, but it shortens backup time.
No, this version is made for 21700 cells; Waveshare has other HATs for 18650.
5 parts: Waveshare UPS HAT (E) for Pi – 4x 21700 Li-Ion (No Batteries), 4 × DMEGC INR21700-45E 3.7V 4500mAh Li-Ion Battery, Raspberry Pi 4 Model B 2GB RAM Single Board Computer, Official Raspberry Pi 32GB A2 Class Micro SD Card and Official Raspberry Pi 4 USB-C Power Supply – 15.3W. On this page you can tick the parts you already have and add only the rest to your cart.
About ₹13,534 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How a UPS switches over without a reset; Reading battery state over I2C; Safe shutdown on low battery.
Use only good matched cells, never short them, and keep the HAT on a non-flammable surface.
Turn a 12 V adapter into an adjustable 1.25–10 V supply for your experiments.
Build your own USB power bank and learn how lithium charging works.
Free power for outdoor sensors: sunlight in, 5 V USB out.
Beeps when the mains goes off at night, so the fridge and the alarm clock do not quietly die.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.