درایور موتور پله ای و کنترل حرکت دقیق در ربات ها: از میکرواستپینگ تا TMC۲۲۰۹

13 آبان 1405 - خواندن 5 دقیقه - 15 بازدید

موتور پله ای به سبب موقعیت یابی حلقه باز و گشتاور نگهدارنده، در بازوهای رباتیک، چاپگرهای سه بعدی و ماشین های CNC پرکاربرد است؛ اما دقت حرکت را بیش از موتور، درایور تعیین می کند. درایور پالس های گام (STEP) و جهت (DIR) را از کنترل کننده می گیرد و جریان دو فاز موتور دوقطبی را تنظیم می کند تا روتور گام هایی مشخص و تکرارپذیر بردارد.


فناوری کلیدی درایورها میکرواستپینگ است: جریان دو فاز با نسبت های سینوسی و کسینوسی میان گام های کامل توزیع می شود تا میدان مغناطیسی در زاویه های کوچک تری بچرخد. موتور ۱/۸ درجه ای (۲۰۰ گام در دور) با ۱/۱۶ میکرواستپ به ۳۲۰۰ و با درون یابی ۱/۲۵۶ به ۵۱۲۰۰ موقعیت فرمان پذیر می رسد. حاصل، حرکت نرم تر و صدای کمتر است؛ اما دقت مطلق لزوما بهتر نمی شود، چون گشتاور افزایشی هر میکروگام اندک است و اصطکاک و بار روتور را از موقعیت دقیق دور می کنند.


وظیفه دوم درایور، کنترل جریان است. گشتاور موتور تقریبا متناسب با جریان سیم پیچ است و درایور چاپر جریان را با کلیدزنی سریع روی مقدار تنظیم شده نگه م

ی دارد؛ جریان کم به گم شدن گام زیر بار و جریان زیاد به گرم شدن موتور و درایور می انجامد. A4988 کلاسیک Allegro تا ۳۵ ولت و ±۲ آمپر را پشتیبانی می کند، پنج حالت از گام کامل تا ۱/۱۶ دارد و حد جریانش با پتانسیومتر و ولتاژ مرجع روی برد تنظیم می شود.


TMC2209 از Trinamic (Analog Devices) با تغذیه ۴/۷۵ تا ۲۹ ولت و جریان ۲ آمپر RMS (۲/۸ آمپر پیک)، درون یابی MicroPlyer تا ۲۵۶ میکروگام، StealthChop2 برای حرکت بی صدا و SpreadCycle برای حرکت پرگشتاور را یکجا دارد. StallGuard4 آن توقف و بار اضافی را بدون حسگر تشخیص می دهد و هومینگ بدون کلید مکانیکی را ممکن می کند؛ CoolStep جریان را با بار تطبیق می دهد و UART تنظیم نرم افزاری را فراهم می کند.


در انتخاب درایور باید جریان نامی موتور، گشتاور لازم، گرما و صدا سنجیده شود. برای بازوی رباتیک یا چاپگری که نرمی و سکوت مهم است، TMC2209 برتری دارد؛ اما برای دقت مطلق تضمین شده، بازخورد انکودر و کنترل حلقه بسته همچنان لازم است.


کلیدواژه ها: موتور پله ای، درایور موتور، میکرواستپینگ، کنترل جریان، A4988، TMC2209، کنترل حرکت، بازوی رباتیک


Stepper Motor Drivers and Precision Motion Control in Robots: From Microstepping to the TMC2209


Stepper motors are used in robotic arms, 3D printers, and CNC machines because of their open-loop positioning and holding torque; yet motion accuracy is determined less by the motor than by its driver. The driver receives step (STEP) and direction (DIR) pulses from the controller and regulates the current of both phases of the bipolar motor so that the rotor takes well-defined, repeatable steps.


The drivers' core technology is microstepping: the currents of the two phases are distributed between full steps in sine and cosine proportions, so the magnetic field rotates through smaller angles. A 1.8-degree motor (200 steps per revolution) reaches 3,200 positions with 1/16 microstepping and 51,200 with interpolation to 1/256. This gives smoother, quieter motion; but absolute accuracy does not necessarily improve, because the incremental torque of each microstep is small and friction and load can pull the rotor away from the commanded position.


The driver's second task is current control. Motor torque is roughly proportional to winding current, and a chopper driver holds the current at its set value by fast switching; too little current causes lost steps under load, and too much overheats the motor and driver. The Allegro A4988 supports up to 35 V and ±2 A, offers five modes from full step to 1/16, and its current limit is set with a potentiometer via a reference voltage.


Trinamic's TMC2209 (Analog Devices), with a 4.75 to 29 V supply and 2 A RMS current (2.8 A peak), combines MicroPlyer interpolation to 256 microsteps, StealthChop2 for silence, and SpreadCycle for high-torque motion. Its StallGuard4 detects stalls and extra load without a sensor and enables homing without mechanical switches; CoolStep adapts current to load, and UART provides software configuration.


Driver selection should weigh the motor's rated current, required torque, heat, and noise. For a robotic arm or printer where smoothness and silence matter, the TMC2209 has the advantage; but for guaranteed absolute accuracy, encoder feedback and closed-loop control are still necessary.


Keywords: stepper motor, motor driver, microstepping, current control, A4988, TMC2209, motion control, robotic arm


منابع / Sources

1. Allegro MicroSystems — A4988: DMOS Microstepping Driver with Translator and Overcurrent Protection (datasheet). https://assets.hkeqgoo.com/products/allegro-microsystems/a4988settr-t/documents/a4988settr-t_datasheet.pdf

2. Pololu — A4988 Stepper Motor Driver Carrier. https://www.pololu.com/product/1182/

3. Analog Devices — TMC2209 Datasheet and Product Info. https://www.analog.com/en/products/tmc2209.html

4. Analog Devices — Mastering Precision: Understanding Microstepping in Motion Control (Analog Dialogue). https://www.analog.com/en/resources/analog-dialogue/articles/mastering-precision-understanding-microstepping.html

5. Oriental Motor — Improve Positioning Precision with High Resolution and Encoder Type Stepper Motors. https://blog.orientalmotor.com/high-resolution-and-encoder-type-stepper-motors-improve-positioning-precision-for-autosamplers