Circuits diagram (Stepmotor driver TB 6600) Would this circuit diagram work?

Is the driver connected right. My friend did this in af project, but I am unsure as to wheter he connected the driver correctly with the Arduino

The servo shouldn't be sharing 5V with the Arduino, that's a recipe for failure with the servo stall current
dipping the supply and resetting the Arduino all the time (very common issue we see here).

Clean 5V to the logic and sensors, separate 6V power for servos - I'd suggest deriving both using
independent buck-converter modules from the supply to the stepper drivers.

Hello MarkT

Okay, but will this circuit work in theory. Since the project will not be made in practical, due to the corona pandemic

Can the 5v pin supply the joysticks usage of volt

dinfar24:
Can the 5v pin supply the joysticks usage of volt

Since you've not provided details of all the hardware components its hard to say so definitively,
but generally sensors should be powered from Arduino 5V, motors and servos etc should not.

The rest of the connections look reasonable - breadboard it up to be sure, that's always wise.

You do not need to common the stepper driver ground with Arduino ground since they are opto-coupled,
btw, and in fact it would be wise to break that link to reduce noise-injection to the Arduino.