So I have a fake "arduino" that I put together (The main components on a breadboard, i.e. ATmega328, capacitors, ocilator, etc) and I am trying to use it to overide a light switch (When the light switch is off, power is off, when it is on, the microprocessor can shut it off manually, or leave it on.)
Anyway, I have everything deesigned and working, but now I want to figure out a way that I can power the ATMega from the electricity flowing through the lightswitch. It will be inside the the wall, so I can't use a tradition wall AC to 5V converter, and I am having trouble finding what I am looking for on google, so does anybody here have a solution? How can I power an ATMega328 from the electricity flowing through a lightswitch? DO I need to set up a power 'limiter' somehow?