@DechAmim-0 the cable to the 12864 display carries the Reset signal, so close proximity of that cable to a stepper motor cable might perhaps cause a reset because of capacitive coupling.