3228

[Hangshun Training Camp] Closed-loop stepper motor controller

 
Overview

code

https://gitee.com/STM32G474RET6/cl-stepper-motor

Rendering of the boxed version of the drive

image.png

Physical picture of the boxed version of the drive

image.png

Project Introduction

This project is based on HyperStepper (main) and XDrive, separates the encoder and driver, can be adapted to different types of stepper motors, and can be installed in a narrow space (the boxed version of the driver is shown, the aluminum casing is not needed and the PCB is positioned in four directions Remove the buckle, equip the backing plate and install it on the 2020 aluminum profile)

This project is the front-end of a certain project (there is a big one at the back, so stay tuned, manual work is funny)

the work i do

1. Modified some circuits, redesigned the board appearance and component layout, and redrawn the PCB

image.png

2. Modified the mode configuration method from using the driver onboard DIP switch to change the mode to adjusting the jumper cap on the controller connected to the FC cable to adapt to the definition in the XBoard E1.0 writing machine controller project Universal motor control interface, and add 4 low-speed optocouplers for corresponding circuits

image.png

3. The code was restructured, the correspondence between some pin definitions and hardware was modified, the variable names were renamed and most of the "magic numbers" were eliminated to make the code more readable.

image.png

planned work

1. Continue to reconstruct the code and split the source files according to functions.

2. Further encapsulate the function to facilitate transplantation

3. Add support for ABI incremental encoder

4. After the calibration is completed, the motor will beep to indicate that the calibration has been completed.

Demo video

Link: https://www.bilibili.com/video/BV1qp4y1b7di

image.png

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-07 13:37:54

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号