just completed a mini project involving controlling servo motor from an mcu on a pcb. the power to servo is routed on the pcb and return current shared the gnd plane as the mcu, mcu has local decoupling cap, power input has one as well capacitor tank 10uF, the mcu keep resettting/halted each time the servo tries to move to a position, i put protection diode at servo power input, capacitor on various places, mcu still resetted, the only solution is to power servo from external power supply. the on board power source is china smps module 3A rated, i guesstimate the small servo only spiked to 1-2A when commanding to a position. i guess pcb traces is just not enough, or cant be shared with digital circuit, adding super big capacitor on the small board is not logical so i think i will need separate V+/GND traces running from power source point to power connector end that will power the servo/motor next time, ie bypassing, or not sharing the same line as the power that goes to the mcu. sort of star V+, star gnd config, or jumper wires. i remember i experienced this before but i guess i never learn.