Hi, i am making a project when there are 2 servoes and a IMU Sensor, i connected both alimentation tothe arduino's 5v, but somethimes the servoes aren't accurates and they are not pointing at the correct angle. What should i do?
Can i resolve powering the servoes with an external power like a 9v battery with an IC7805 to correct the voltage?
you should not power Servos through the board. They usually require lots of current which your board will be challenged to provide.
a 9V battery (if it's the common "smoke detector" type) is useless for motors. Not enough power. A pack with Lithium battery would be fine (or AA batteries)
Ok, Can i use a 9v battery to power the arduino and 4 AA batteries to power the 2 servoes, but wich case should i use(i need the dimension of it as similar to a 9v battery because i have not enought space in the frame to use the classic one)?
i am not obsessed by the excess power, the problem is that i my frame i have not enought space to put a lot of things, the 9v battery is the perfect size.
if you want that form factor, you could get a rechargeable Lithium "9V" battery (They are the same size but actually not 9V but more 8.4 at full charge since they embed 2 Lithium cells)
As long as the Servos don't draw more current than the AAA can provide and some is still left to power the arduino without hiccups on the voltage, then yes, you can power them in parallel. Adding a decoupling capacitor could prove useful. (of course power the Servos and Arduino at the right voltage)