Hi DanV,
Thanks for the suggestion and response, I appreciate it. Originally, I was planning to just use the tilt switch and batteries, but then I noticed that the original switch I had was only rated for 20 mA (https://tinkersphere.com/sensors/750-tilt-switch.html) and my LED array uses 160 mA. I realize the switch I linked to in my post is supposedly higher (.3 A according to the listing), but since I haven’t been able to locate a data sheet I was a little skeptical. Most of the switches I’ve seen have much lower ratings, in the 5-20 mA range (for example: https://cdn-learn.adafruit.com/download … sensor.pdf). I’ve also read elsewhere with other tilt switches that they aren’t intended as “load switches.”
So, I guess part two of the question is what would happen to the tilt switch if it were exposed to a higher current than it should be? Is there a risk of heat/fire? Or maybe there is something about the power rating that I’m not understanding properly?
Thanks again!