The circuit shown below is intended to power and control 5 small stepper motors and 3 end/limit switches. It takes power from a wall outlet like shown below and converts the ac current to dc power. This voltage then gets bucked down and sent to microcontroller which then is connected to motor drivers and limit switches. I'm less concerned about having proper voltage and current to each part as I've made sure to pay close attention to that, I'm more concerned about smaller design flaws that may have been overlooked like signal noise, lack of passive components, ext. I'm also wondering if in this particular case would it be fine if I left all the unconnected pins as is or would it really be needed to connect them to a ground, let me know. Also, I apologize if the circuit is difficult to understand as it's my first one, I'm just looking for tips and things to improve on.
Labels -
AC/DC_PC - AC to DC power supply - 12V 30A
BC - Buck convertor - LM2596SX
MC - Microcontroller - PIC18F27K40-I/SP
TB - Terminal block - 1984963
SW - End/limit switch - D2F-01FL3-D3
M - Stepper motor - Steppers
DRV - Motor Driver - DRV8829PWP
Thank you so much for your help it's really appreciated!
![Screenshot 2024-04-29 003342.png Screenshot 2024-04-29 003342.png](https://forum.allaboutcircuits.com/data/attachments/308/308764-6c78c7dbd7f8d545b052174d973167fa.jpg)
![Screenshot 2024-04-29 003342.png Screenshot 2024-04-29 003342.png](https://forum.allaboutcircuits.com/data/attachments/308/308764-6c78c7dbd7f8d545b052174d973167fa.jpg)
Labels -
AC/DC_PC - AC to DC power supply - 12V 30A
BC - Buck convertor - LM2596SX
MC - Microcontroller - PIC18F27K40-I/SP
TB - Terminal block - 1984963
SW - End/limit switch - D2F-01FL3-D3
M - Stepper motor - Steppers
DRV - Motor Driver - DRV8829PWP
Thank you so much for your help it's really appreciated!
![Screenshot 2024-04-29 003342.png Screenshot 2024-04-29 003342.png](https://forum.allaboutcircuits.com/data/attachments/308/308764-6c78c7dbd7f8d545b052174d973167fa.jpg)
![Screenshot 2024-04-29 003342.png Screenshot 2024-04-29 003342.png](https://forum.allaboutcircuits.com/data/attachments/308/308764-6c78c7dbd7f8d545b052174d973167fa.jpg)