This is a way to seriously extend the battery life of anything you can charge off of USB. It’s sort of like a giant minty boost, minus the mint.
After I built this, I discovered that Milwaukee already makes something that does just that, called a Power Port for their 12v lineup of power tools. Why not save $20 and build it into a tool you’ve already got? The 12v -> 5v USB adapter I used can handle up to 24v of input, so you could do this with your 18v tools as well. It also has a handy status LED, so you know when the power is switched to it.
Materials:
12-24v battery operated power tool
Car cigarette USB adapter
Switch
Tools:
Solodering iron
Dremel
Glue gun
Screwdriver
https://letsfixit.co.uk/wp-content/uploads/gravity_forms/7-360a393bb4f630dd690cefd9d3f75bc2/2012/09/FVRA5ASH672M6JJ.LARGE.jpg
https://letsfixit.co.uk/wp-content/uploads/gravity_forms/7-360a393bb4f630dd690cefd9d3f75bc2/2012/09/FMZNBZGH672M6L4.MEDIUM.jpg