I got to thinking about all these projects I've built in Altoids tins, etc. One drawback is that they aren't waterproof, or water resistant. They pretty much let the water in, even in the rain.
I've built a couple of them in an 'open frame', in other words, on a piece of flat aluminum, or in an L shaped piece of aluminum. They're sturdy, and work okay. They are totally open to the elements, so water would go ritght into them.
But then I got to thinking. Is that a problem? The batteries, circuit and LEDs wouldn't be hurt by a little water if it dries out in a short period, which is what happens with the open frame. About the only thing that would corrode a lot would be the switch, because it's enclosed and the water would gather inside and stay there, rusting the contacts and other moving parts. I guess I could pack some grease into the switch, to help keep out the water. But I found that one cheap flashlight I bought wouldn't turn off, the LEDs would continue to glow. Well, apparently the grease in the switch was conducting a bit, causing the LEDs to stay on very dimly. So I'd have to use some non-conductive grease.
BTW, I'm presuming that the water is like rain water, not water with salt in it like seawater. Seawater would corrode anything since he salt would stay there after it dried and humidity would keep it corroding, unless everything was either stainless steel or bronze. But I'm not concerned about salt water, only regular rain water.
Just looking for thoughts on this idea.