So, I have been looking into trying to build a few things that I want to be powered from line (120V where I live) voltages, but also use microcontrollers. At the moment, I am using a transformer I rescued from a clock along with a 7805 as a makeshift power supply for my projects. However, I need something much much smaller (square inch maybe?).
I really want a 5V (even 3.3V would be fine) power supply that sources 100mA just to power a microcontroller and a few small external components that is tiny. However, many small designs I have seen appear unsafe or inefficient and I was wondering what people normally use for this kind of thing. Certainly there has to be an accepted form for tiny bootstrap voltage supplies from line voltages?
I tried looking into 0.5VA transformers, but digikey doesn't appear to have any in their Power Transformer category of that size which are reasonably priced. I've also thought of going the cap plus zener route, but seems inefficient and doesn't strike me as particularly safe.