TMC2209堵转检测配置详细教程

按如下图将TMC2209和串口模块连接:

 配置流程:

寄存器配置:

通用寄存器:

校验码见我之前文章:使用uart串口配置TMC2209模块_tmc2209 uart-CSDN博客

通用寄存器主要是配置第0和第1位,第1位要给1,第0位根据自己的原理图配置。我的要配置0;

这里需要发送05 00 80 00 00 00 CA F7

 IHOLD_IRUN寄存器:

这个寄存器是配置电机停止和运动时的电流大小,值越大,电流越大,19-16位可以直接给0,我这里电流直接给最大了。

 05 00 90 00 00 1F 1F 0A

 SGTTHRS寄存器:

 这个寄存器是配置堵转检测的灵敏度,值越小,灵敏度越低,需要先读取SG_RESULT寄存器的值,该寄存器的值表示当前步进电机的负载情况,值越大,负载越大。

 TCOOLTHRS寄存器:

 该寄存器主要功能是启用DIAG接口。满足TCOOLTHRS>=TSTEP>TPWMTHRS时才会启用。所以要先配置其他两个寄存器。

 TPWMTHRS寄存器:

这个寄存器是配置开启从静音模式到高速模式的阈值,用不到就全部给0,禁用就行了,就是直接开启高速模式。

 TSTEP寄存器:

读出该寄存器的值,配置的TCOOLTHRS寄存器要比这个值大或者等于这个值。

 

 配置完成后就能开启堵转检测了。堵转时,DIAG引脚会发送高电平给控制器。

ATIONS Compatible Design Upgrade 3D Printers Printers, POS Office and home automation Textile, Sewing Machines CCTV, Security ATM, Cash recycler HVAC Battery Operated Equipment FEATURES AND BENEFITS 2-phase stepper motors up to 2.8A coil current (peak), 2A RMS STEP/DIR Interface with 4, 8, 16 or 32 microstep pin setting Smooth Running 256 microsteps by MicroPlyer™ interpolation StealthChop2™ silent motor operation SpreadCycle™ highly dynamic motor control chopper StallGuard4™ load and stall detection for StealthChop CoolStep™ current control for energy savings up to 75% Low RDSon, Low Heat-Up LS 170mΩ & HS 170mΩ (typ. at 25°C) Voltage Range 4.75… 28V DC Low Power Standby to fit EUP or for battery operation Internal Sense Resistor option (no sense resistors required) Passive Braking, Freewheeling, and automatic power down Single Wire UART & OTP for advanced configuration options Integrated Pulse Generator for standalone motion Full Protection & Diagnostics Choice of QFN and HTSSOP package for best fit DESCRIPTION The TMC2209 and TMC2226 are ultra-silent motor driver ICs for two phase stepper motors. TMC2209 pinning is compatible to a number of legacy drivers as well as to the TMC2208. TRINAMICs sophisticated StealthChop2 chopper ensures noiseless operation, maximum efficiency and best motor torque. Its fast current regulation and optional combination with SpreadCycle allow highly dynamic motion while adding. StallGuard for sensorless homing. The integrated power MOSFETs handle motor currents up to 2A RMS with protection and diagnostic features for robust and reliable operation. A simple to use UART interface opens up tuning and control options. Store application tuning to OTP memory. Industries’ most advanced STEP/DIR stepper motor driver family upgrades designs to noiseless and most precise operation for cost-effective and highly competitive solutions. Step/Dir Drivers for Two-Phase Bipolar Stepper Motors up to 2.8A peak – StealthChop™ for Quiet Movement – UART Interface Option – Sensorless Stall
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值