Closed Loop Stepper Motor Control System with Ethernet Smooth Stepper and Arduino Nano
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a complex circuit involving various components such as power supplies, stepper drivers, breakout boards, and microcontrollers. The circuit is designed to control stepper motors and other peripherals, with power supplied by multiple power sources. The document includes a component list, wiring details, and documented code for the microcontrollers involved.
Component List
Switching Power Supply
- Description: Converts AC to DC power.
- Pins: AC, GND, -V, +V
Stepperonline CL57T Closed Loop Stepper Driver
- Description: Drives stepper motors with closed-loop control.
- Pins: PUL+, PUL-, DIR+, DIR-, ENA+, ENA-, ALM, BRK, COM-, EB+, EB-, EA+, EA-, VCC, A+, A-, B+, B-, +VDC, GND, EGND
ST-v2 Breakout Board
- Description: Breakout board for interfacing with stepper drivers and other peripherals.
- Pins: Input 10, Input 11, Input 12, Input 13, Input 15, GND, X Pul P2, X Dir P3, Y PUL P4, Y1 DIR P5, Z PUL P6, Z DIR P7, Y2 PUL P8, Y2 DIR P9, MOTOR EN P14, B PUL P16, B DIR P17, PWM P1, PC5V+, SPINDLE, VIN, P17 RELAY1, P17 RELAY2, Parallel, J-P17 RELAY, J-P17 PIN, J-P17 COM
mach3v2.1l Breakout Board
- Description: Breakout board for interfacing with CNC machines.
- Pins: Parallel, P12, GND, PWM P1, 0-10V P1, P3 RELAY COM, P3 RELAY NO, P3 RELAY NC, P2 RELAY COM, P4 RELAY COM, P4 RELAY NO, P4 RELAY NC, P2 RELAY NO, P2 RELAY NC, P14, P3, P2, C5V+, C-, P9, P8, P7, P6, P5, P4, P17, P16, VIN 15-32V, 12V+ OUT, P10, P13, P15, 5V+ OUT, P11, USB PWR, C5
Ethernet Smooth Stepper
- Description: Ethernet-based stepper motor controller.
- Pins: 5v+, 5v-, Port 1, Port 3, Expansion Port, Port 2, Ethernet, Port 3 5v, Board 5v, Port 1 5v, Port 2 5v
DIN Rail 24v 2.4a Power Supply
- Description: Provides 24V DC power.
- Pins: 24v+, 24v-, DC-OK1, DC-OK2, AC-GND, AC-Neutral, AC-Live
DIN Rail 12v 5a Power Supply
- Description: Provides 12V DC power.
- Pins: AC-GND, AC-Neutral, AC-Live, 12v+, 12v-, DC-OK1, DC-OK2
DIN Rail 5v 2.4a Power Supply
- Description: Provides 5V DC power.
- Pins: 5v+, 5v-, AC-Neutral, AC-Live
Stepper Motor Driver
- Description: Drives stepper motors.
- Pins: GNC, VCC, A+, A--, B+, B--, ENA-, ENA+, DIR, DIR(+5V), PUL--, PUL+
Bipolar Stepper Motor (NEMA 17)
- Description: Bipolar stepper motor.
- Pins: A-, A+, B+, B-
NEMA 23
- Description: Stepper motor.
- Pins: B2 Red, B1 Blue, A2 Black, A1 Green
NEMA24 Encoder HN102-36A
- Description: Encoder for NEMA24 motors.
- Pins: PB-, PB+, PA-, PA+, 5V+, GND
Rocker Switch (SPST)
- Description: Single-pole single-throw switch.
- Pins: 1, 2
Arduino Nano
- Description: Microcontroller board.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
Wiring Details
Switching Power Supply
- AC: Connected to Rocker Switch (SPST) pin 1
- GND: Connected to DIN Rail 12v 5a Power Supply AC-GND, DIN Rail 24v 2.4a Power Supply AC-GND
- -V: Connected to Stepperonline CL57T Closed Loop Stepper Driver GND
- +V: Connected to Stepperonline CL57T Closed Loop Stepper Driver +VDC
Stepperonline CL57T Closed Loop Stepper Driver
- GND: Connected to Switching Power Supply -V
- +VDC: Connected to Switching Power Supply +V
- PUL+: Connected to ST-v2 Breakout Board Z PUL P6
- DIR+: Connected to ST-v2 Breakout Board Z DIR P7
- ENA+: Connected to ST-v2 Breakout Board MOTOR EN P14
- PUL-: Connected to ST-v2 Breakout Board GND
- DIR-: Connected to ST-v2 Breakout Board GND
- ENA-: Connected to ST-v2 Breakout Board GND
- COM-: Connected to ST-v2 Breakout Board GND
- ALM: Connected to Stepperonline CL57T Closed Loop Stepper Driver BRK
- EB+: Connected to NEMA24 Encoder HN102-36A PB+
- EB-: Connected to NEMA24 Encoder HN102-36A PB-
- EA+: Connected to NEMA24 Encoder HN102-36A PA+
- EA-: Connected to NEMA24 Encoder HN102-36A PA-
- VCC: Connected to NEMA24 Encoder HN102-36A 5V+
- A+: Connected to NEMA 23 A1 Green
- A-: Connected to NEMA 23 B1 Blue
- B+: Connected to NEMA 23 B2 Red
- B-: Connected to NEMA 23 A2 Black
- EGND: Connected to NEMA24 Encoder HN102-36A GND
ST-v2 Breakout Board
- Z PUL P6: Connected to Stepperonline CL57T Closed Loop Stepper Driver PUL+
- Z DIR P7: Connected to Stepperonline CL57T Closed Loop Stepper Driver DIR+
- MOTOR EN P14: Connected to Stepperonline CL57T Closed Loop Stepper Driver ENA+
- GND: Connected to Stepperonline CL57T Closed Loop Stepper Driver PUL-, DIR-, ENA-, COM-
mach3v2.1l Breakout Board
- VIN 15-32V: Connected to DIN Rail 24v 2.4a Power Supply 24v+
- GND: Connected to DIN Rail 24v 2.4a Power Supply 24v-
Ethernet Smooth Stepper
- Port 1: Connected to ST-v2 Breakout Board Parallel
- Port 3: Connected to mach3v2.1l Breakout Board Parallel
- Port 2: Connected to mach3v2.1l Breakout Board Parallel
- 5v+: Connected to DIN Rail 5v 2.4a Power Supply 5v+
- 5v-: Connected to DIN Rail 5v 2.4a Power Supply 5v-
DIN Rail 24v 2.4a Power Supply
- 24v+: Connected to mach3v2.1l Breakout Board VIN 15-32V, ST-v2 Breakout Board VIN
- 24v-: Connected to mach3v2.1l Breakout Board GND, ST-v2 Breakout Board GND
- AC-Neutral: Connected to 120V Outlet AC Neutral
- AC-GND: Connected to 120V Outlet GND
- AC-Live: Connected to Rocker Switch (SPST) pin 1
DIN Rail 12v 5a Power Supply
- AC-Neutral: Connected to 120V Outlet AC Neutral
- AC-GND: Connected to 120V Outlet GND
- AC-Live: Connected to Rocker Switch (SPST) pin