I am working on a simple relay project; having a avr switch a relay connected to 120v mains. In addition, I want the avr to be powered from the ac source. Do you guys have any experience with this? Keeping things simple would be using a external wall wart to power the electronics. Is there a small footprint ac to dc circuit so I can derive 5v from 120vac?