I'm experimenting with capacitive sensors acting as switches and want to actually give my circuits some practicality. I've been researching how to use relays with microcontrollers (in my case, an Arduino) to control lamps, but I still have a few questions.
Based on this guide (specifically under the "The Setup" section), I should wire my relay into the live wire. How safe is this? Is the only thing separating wandering hands from live wire just the screw terminal? If so, what would be a good way to house the relay (maybe some sort of project box?)?
Could I not forgo the plug altogether and just power the bulb from my Arduino? What would be the characteristics of a lamp that could be powered solely from the Arduino? I have a lamp labeled with MAX 12 V 50 W. Is this even close to possible?