I'm designing a project that controls 110VAC (plug in, socket out), and also has a microprocessor inside. I'd really like this project to not need a wall wart to get it's 5V, so I want to include a small DC power supply inside.
Apple's USB power adapter looks like a great small design that I can fit inside my case. I'm guessing this is a switching power supply but I can't find any teardowns or schematics anywhere.
Does anyone know how this thing works? I know I could make my own 110V->5VDC supply from a bridge rectifier and some caps, but I'd like to also be super safe. What's in the Apple brick?