Hi,
Regarding the statement that "epoxy is permeable to oxygen", people may not want to discard it as a solution quite so quickly. Based on some research I did a while back, the issue isn't *whether* epoxy is permeable, it is *how* permeable it is. For instance, if only one molecule of oxygen gets through per decade of use, then it would probably be deemed adequate as a barrier.
So just how permeable is epoxy to oxygen? I don't have the reference handy at the moment but the best answer I found was in a report issued by some researchers investigating the permeability of a large number of materials to various substances from the point of view of radioactive containment. The number they gave was 0.128 barrers. OK, what the heck is a "barrer"? And how do we use that information?
It is named after Professor R.M. Barrer who was, apparently, an early pioneer in the field of permeation and the barrer is the unit applied to the coefficient of permeability of a substance. This coefficient is given by the formula P = q*t/A*deltap where:
P is the permeability (in barrers),
q is the mass flux of the permeant (10E-10 cm**3/sec),
t is the thickness of the membrane (cm),
A is the area of the membrane (cm**2), and
deltap is the difference in pressure across the membrane (cmHg).
In other words, if our material has a permeability coefficient of 1 barrer we will get
10E-10 cm**3 of gas across the membrane, per second, if our membrane has an area of 1cm**2, is 1 cm thick, and we have a pressure difference of 1 cmHg (about 0.193 psi = 0.013 atm = 0.013 bar).
Since we want the contents of our container to last much longer than a second, let's do the calculation for a somewhat longer time period, say 100 years. That turns out to be about 3E9 seconds which, if we take the permeability of epoxy to oxygen as 0.128 barrers, gets us 0.128 * 10E-10 * 3E9 = .384 cm**3 of oxygen. At STP, the density of gaseous oxygen is about 0.00143g/cm**3, so we would get 0.00055 grams of oxygen in 100 years!
Since our membrane area (diameter of the hole in the container) isn't likely to be 1 cm**2, the thickness of the membrane (the thickness of the wall of the container) isn't likely to be 1 cm, and our deltap isn't likely to be 1 cmHg, let's do the calculation using more realistic numbers.
Take deltap: here's where things get a bit tricky. If we fill our chamber with dry nitrogen, it will presumably be at atmospheric pressure, as will the atmosphere on the outside of the container. So the pressure difference is zero, and there won't be any movement of oxygen across the membrane, right? Nope. Here, we need the concept of "partial pressure" which is simply the pressure not of the atmosphere as a whole, but of the *oxygen* in the atmosphere compared to the pressure of the oxygen on the other side of the membrane. Well, the pressure of the oxygen on the inside of the container is zero, since there is zero oxygen present (because we filled the container with nitrogen). On the outside of the container, the pressure of the oxygen is simply the percentage of oxygen present in the atmosphere (21%) times the pressure of the atmosphere which is 1 atm, giving us an "oxygen pressure" of 0.21 atm and therefore a pressure difference (deltap) of 0.21 atm which is about 16 times the 0.013 cmHg of the barrer definition.
As for the membrane, let's make it easy on ourselves and consider a hole 1 mm in diameter through which our wire will pass and neglect the diameter of the wire itself. This will give us an "A" (area) of 0.785 mm**2 or 0.00785 cm**2. Let's further assume that our container's wall is 1 mm thick, giving us t = 1mm = 0.1 cm.
So now we have a deltap that is about 16 times greater than 1 cmHg, and an A/t of about 0.0785 resulting in a factor of about 16 * 0.0785 = 1.256; this means that for a hole of that size we would get about 0.00055 * 1.256 or about 0.0007g oxygen per 100 years.
You can take the math from here: ten such holes would result in 10x that amount of oxygen, if you only cared about a ten-year period it would be 1/10 of that amount, if you doubled the thickness of wall material it would be 1/2 that amount, and so on.
As it happens, manufacturers of LEDs care about sealing out oxygen and I ran across a paper that reported the results of sealing LEDs with epoxy. They used tritium as a tracer and found that the oxygen permeation was about 3x the above calculation for the type of epoxy they used. Epoxies differ, of course, so the exact number for something like JB Weld would probably be slightly different, but I think that the calculation gets us in the right ballpark.
Given that some slight amount of oxygen will cross the membrane, we might simply "scavenge" it with an oxygen absorber. These are often used in packaged food products (and we've all seen moisture absorbers in electronics packages)--they're simply small sachets of a material designed to react with oxygen (or moisture) thereby removing it from the air. For oxygen, iron oxide is one such material (but it requires moisture to do its job, and we don't want moisture in our container any more than we want oxygen, so that's out) and ascorbic acid (vitamin C).
Based on what I've read, it takes one unit (mass) of ascorbic acid to absorb 2 units of oxygen, so even a single gram of ascorbic acid would be far more than we'd need. What I haven't been able to ascertain is whether any byproducts in the reaction (which is fairly complex) would have any effect on electrical components (solder, wire, etc.). I also don't quite understand whether moisture is required for the absorbing reaction to take place, so those two things would have to be investigated if one were to decide that 0.0007g of oxygen per century was intolerable. As noted above, in 1 cc of atmosphere (at STP) there is about .00143g of oxygen, so over the course of a century, with no oxygen absorber, the oxygen content inside the container would rise to about half the level of what it is in the normal atmosphere.
I'd be interested in the results if someone cared to take the idea of an oxygen absorber further and discover what, if anything, could be safely and effectively used around electronics.
Oh, before someone asks, the permeability of epoxy to moisture was listed as 0.013 barrers or about 1/10 that of oxygen.
Hope all this helps,
--Steve