Stepper motor not working with LM2596

I'm running a NIMA 34 stepper motor using an arduino uno, i wanted to make it a single power supply, using a 36v power supply for the motor and a LM2596 buck converter tuned to 5v for the arduino, but when I try to run the motor, it just gives some vibrations, but if I connect the arduino to a 5v power supply the motor works perfectly, I tried adding a 100uf electrolytic capacitor to the output of the buck converter but gives the same result, is there any way that i could power the both from a single power supply?

Adjust the buck output to 11V and supply that to Vin or the barrel jack

But arduino only supports 5v

Which Arduino are you using?
Vin or the barrel jack can accept voltages between 7V and 12V.

What if I'm using a nodemcu

Then you need 5V but the nodemcu I/O is only 3.3V.
So how are controlling the motor?

So I'm using a nodemcu to connect to a tablet via wifi and its connected to an uno via uart, and the uno is controlling the motor, anyway thank you for giving me the idea for the power supply. I didn't knew uno could run on 12v also.

Yes connect to Vin or the barrel jack. The voltage must be between 7V and 12V.
Have you tried it?

Have you confirmed that the LM2596 converter works correctly.
Does it power the Arduino adequately if the stepper motors aren't running?

One possibility I can think of is switching noise may be interfering with the motor current sensing in your motor controller.

You might need a filter choke before Cin. Simple switchers draw their input current in pulses, and this can feed back into other parts of the circuit.

Do you mean for the Uno ,nodeMcu, motordriver and the motor?
Doesn't the Uno get it's power tablet?