Fri Jul 08, 2016 2:20 am
I've been reading up on this sort of thing myself recently and if you're wanting to hook it up to mains power I would advise a great degree of caution if you don't have any formal training either in electrical or electronic engineering - which I don't.
What you're probably looking for are step down transformers to drop your mains voltage to 12v / 5v but I wouldn't even think about attempting to make one myself due to the risks involved if things went wrong.
If electrical work is unfamiliar territory then I'd recommend positioning the your components in such a way that the power inputs can easily be reached with an off the shelf charger - less elegant but also much less risky.