This Gridfinity battery dispenser fits 10 AA / 13 AAA batteries per 2x2x1 Gridfinity block, plus one dispensed battery. If you need to store more batteries, you can print another block that feeds batteries into the dispenser block underneath it.
Changelog:
Note that due to dimension constraints (a 1 unit tall Gridfinity block is barely taller than the diameter of two AA batteries), the slope of the AA batteries' “ramp” is very small. This makes the dispenser quite space efficient, but may lead to batteries that refuse to roll. As such, you may need to give the dispenser a little occasional nudge to encourage all batteries to roll further down ;). Making a small pushing motion with the dispensed battery seems to make the mechanism work more reliably, too.
The inserts have very tight gaps/tolerances between their walls and the batteries. This is to prevent batteries from spinning and falling off the rails, but depending on your exact model of batteries and printer calibration these may be too tight and cause jams. The Fusion 360 files are available if you wish to tweak the batteryLength parameter.
If you want, you can glue magnets to the top of the base block. This is useful to stop small bumps from knocking over your tall battery stack.
There's also an optional label holder accessory that attaches to the small holes along the front of the inserts.
The author marked this model as their own original creation.