Arduino Nano resets when driving a digital servo

Thanks Mark

My 5 volt supply circuit is something like the attached image except I use a 12 volt battery for the supply and the 2200uF cap is on the 5v side.

Regards

7805.png