Can the source of the 6V deliver enough current to power the servo?
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
i tried same power source reduced to 5v and connected both ardiuno e servo to only one power source and it works... but i want to give servo 6v seperate and ardiuno seperately.
Just connect a 6volt supply to the servo and to the V-in pin of the (classic) Nano.
The 5volt rail of the Nano might not be exactly 5volt, but that doesn't matter in most cases.
It normally runs on about 4.6volt when powered from USB anyway.
Leo..
i want to connect the separately as when connected together arduino restarts when load is high on servo (i mean if servo blocks arduino restarts and throw servo down) but if connected separately this doesn't happen..
A MG996 draws a stall current of 2.5 Amp at 6volt. If the supply can't deliver that without collapsing, then it might indeed be better to give the Arduino it's own supply.
Leo..
thats what i am trying to do, servo connected to 6v 5amps power supply and arduino to 12v with negative common... but it doenst work till positive of servo is also connected to arduino 5v
12volt on V-in of a classic Nano is in the danger zone. You can't power much else from it at that high voltage. Powering the Nano from a 5volt cellphone charger connected to the USB socket would be a lot safer.
Leo..
thanks for advice, but my issue is not of nano protection but to not give common power source for both as i want to give 6 volt to servo and arduino 5v or 12v separately
but my servo doesnt move if positive is not connected with nano