About a year ago I bought one of the Hakko T12 clones
like seen here on EEVblog and built a decent 3D printed enclosure to hold it and a cheap WX-DC2412 AC/DC power supply
like this Amazon one. The clone accepts 16-24V3A and the power supply is "rated" 24VDC at 4A continuous and 8A peak and to it's credit has been working good for many soldering projects. Recently I've had several needs to solder at distances ~100ft from the nearest outlet and I decided to modify my printed case to accept a DeWalt 20V battery pack since I have a bunch of them. This isn't uncommon to do on designs on Thingiverse but they all do one or the other and I want to run both (not at the same time). I've already designed the new case to handle both and it's actually printing as I type this out.
I know just barely enough about electronics (I tinker quite a bit with low voltage stuff like Arduino's and such) to know that even if there is no AC line plugged into the AC/DC power supply dropping 20V in series at the output of the board before the soldering station board is one of the rookie mistakes you make and go duh afterwards because the battery pack could be backfeeding the power supply.
Idea 1 was to drop a Schottky diode in there (IN5408 or IN5822?) since I have a variety left over from a previous project but then I remembered I don't know enough about them to and while occam's razor says the simplest idea is usually the best one I don't think he had n00bs and electronics in mind at the time.
Idea 2 was me thinking well heck I know how a SPDT switch works inside and out and I have those laying around. While a pragmatic approach it's about as sexy as a dirty dump truck at a classic car show.
Idea 3 was to use a non-latching relay like (but not) an automotive 12V30A 5 pin model so when 20V battery power was supplied it would flipping the power across the 87/87a pins. But I don't own any 24VDC relays just 12V auto and 5V switching ones for Arduino.
Idea 4 was to ask my electrical engineer and enthusiast friends for some advice (hint here for those playing along at home).
Now I've not gone straight here expecting to have someone else solve this for me, I have done quite a bit of googling and seen wild answers all over the board not being very consistent. Responses ranging from don't worry about it, it'll be fine to not needing one because the AC power supply contains rectifiers and any backfeeding would not harm it to elaborate circuits that give me googly eyes first looking at them.
I've got decent enough equipment to check things out if need be RMS multimeters, Rigol DS1054 oscilloscope I'm still learning and other assorted goodies.
Any suggestions where to focus my attention or other idea's to look at or more info/pictures needed?
Steve