[DigiKey "Smart Manufacturing, Non-stop Happiness" Creative Competition] + Stepper Motor Closed-loop Controller Based on STM32H7B3I-DK
[Copy link]
Stepper motor closed-loop controller based on STM32H7B3I-DK
Author: Popular Technology
1. Introduction
In this competition, I chose the STM32H7B3I-DK development board as the basic board to conduct research on the closed-loop controller of the stepper motor. There are many open source solutions at present. Most of them are directly equipped with a separate board behind the stepper motor. The functions on the board are all done. You only need to control it like an ordinary stepper motor controller. It can complete closed-loop control internally. Such a board is suitable for direct use in finished products. This time I want to make a test board. The core boards are the same and different test boards can be connected externally. This is not only limited to the closed-loop control of stepper motors, but also can be used for closed-loop control of brushless motors.
2. System Block Diagram
The hardware part is mainly the driver board, which is connected through the Arduino interface. The UI interface function uses the RGB screen that comes with the development board.
The overall software process is as above, mainly including peripheral initialization, sensor parameter reading, motor line sequence calibration, position calibration, and finally closed-loop control.
3. Functional description of each part
The driver board of the stepper motor mainly consists of a driver part, a sensor part, and the rest are interfaces.
This is the expansion part of our board. Later, we can match different expansion boards to realize different motor drives.
This is the main control panel.
4. Source Code
https://download.eeworld.com.cn/detail/%E6%B5%81%E8%A1%8C%E7%A7%91%E6%8A%80/630819
5. Demonstration video of the work’s functions
https://training.eeworld.com.cn/video/39093
6. Project Summary
At present, my idea is to verify a series of motor drive controls through a board. The initial stepper motor can be realized, and the closed-loop control of the brushless motor can be expanded later. The expansion interface of this H7 board is quite rich and can meet the requirements. At the same time, the onboard resources are rich, and the graphical interface can be run. It is matched with the LVGL graphical interface to facilitate human-computer interaction. Later, I hope to add the input method part to make debugging more convenient.
other
LVGL experience of STM32H7B3I-DK https://en.eeworld.com/bbs/thread-1269028-1-1.html
STM32H7B3I-DK uses GUI Guider designer https://en.eeworld.com/bbs/thread-1269534-1-1.html
|