XY Plotter - Wiring help needed. CNC shield, 2 stepper motors, 1 solenoid

As a beginner I would be very appreciative if someone could have a look at the attached wiring diagram and tell me if I have made a mistake, which is very likely as this is a relatively new hobby.

Many thanks.
Steve

Arduino Uno

CNC Shield (Youmile CNC Shield V3.0 Expansion Board + Arduino UNO R3 Board+DRV8255 Stepper Motor Driver with Heatsink CNC Shield V3)

2 Nema 17 stepper motors (data sheet attached)

1 6V solenoid (Hechen solenoid electromagnet JF-0530B DC 6V 300mA)

Relay module (ARCELI 6Pcs 5V One 1 Channel Relay Module Board Shield With Optocoupler Support High And Low Level Trigger Power Supply Module)

Buck converter (Valefod LM2596 DC to DC High Efficiency Voltage Regulator 3.0-40V to 1.5-35V Buck Converter DIY Power Supply Step Down Module)

Stepper Data Sheet 17HS19-1684S-PG5.pdf (415 KB)

Image from Original Post so we don't have to download it. See this Simple Image Posting Guide

...R

I can't read the pin labels on your devices so I am not going to comment on the connections. A photo of a clearly labelled pencil drawing is generally a better way to present a connection diagram.

If you have 12v available then you could power the Arduino from that through the power socket. Or you could use a 7805 voltage regulator to reduce the 12v to 5v for the Arduino's 5v pin.

...R

Here is a higher resolution diagram.

Sorry, but all that does is use up more of my monthly internet data allowance to view a picture that is the same size as in Reply #1

...R

Beware of using the 5 volt pin on the expansion board as that pulls from the Arduino.
Using that for a relay could have unexpected results.
Better to use a small convertor with a common ground back to the Arduino.

You do not need a seperate PSU for the Arduino as the USB you use for its control will be sufficient.

As for the solenoid you may have to place additional filtering there as GRBL can be prone to noise spikes causing further unexpected issues.

Some tips on noise issues and the cnc shield approach here