Good morning all!
tl;dr Can you, and if so how, power a Core using the wires from a light switch?
My first “big” project with the Core is a proximity light switch, eventually scaling to a door control (for those scifi fans, think the door controls in Stargate Atlantis - yay nerdism). Anyway, the idea is to use a Sharp IR proximity sensor to act as the virtual switch. When an object is detected below a certain threshold, the Core publishes an event which is processed by a python or node.js server. The server then makes a POST request to a second Core, instructing it to turn on and set the color of a NeoPixel strip. At the moment, a simple webpage is acting as the server to process the event.
This proximity light switch is effectively going to replace the current physical light switch. As such, I’d like to mount the switch where the current switch is located, and if possible, power the core using the wires in the wall. Would the Relay Shield work for this application, to step down the voltage, or is there a better solution.
Thanks for the help! Once the project is finished (hopefully this weekend), I’ll be posting it all on github.