Hello I was looking for a way to connect power from say 9v battery or 4 AA batteries to a project I'm designing. Since the servo and the microcontroller both use 5V I was going to put an 7805 between the batteries and the circuits so do this and I saw this website and was wondering something about it. He puts the caps in there to smooth out any fluctuation right? Now the real question, how would you decide on those values? What formulas do you use to figure this? Thanks I've just been wondering on things like that with capacitors how you figure out the values needed.