I'm going to be making a small project that uses an ATtiny45 to control a Sold State Relay.
The board will be inside an enclosure and I was wondering what the best way to supply it with power would be.
The enclosure will be supplied with 240v. I was thinking the best way to supply it with a steady 5v would be to disassemble a USB wall power supply to get rid of the plastic casing, remove the usb socket and mains socket to save space and wire it directly to my board.
What do you use when you need a small regulated power supply for your projects that you are turning permanent, and if the one I was planning on using is what people normally do, would it be advisable to use something like an LM7805 regulator just to be sure it was getting a regular supply?