TMC2209应用笔记

前言

    刚开始接触这款步进电机驱动是从3D打印打印开始的,主要是这款驱动具有非常好的静音效并且用在项目上取得了不错的效果。

一、TMC2209简述

        TMC2209是用于两相步进电机的超静音电机驱动器IC。其StealthChop2斩波器可确保无噪声运行,最高效率和最佳电动机转矩。具有快速电流调节以及与SpreadCycle的可选组合可在添加时实现高度动态的运行。StallGuard用于无传感器归位。集成功率MOSFET可处理高达2A rms的电流,并具有保护和诊断功能,可实现稳定可靠的运行。一个易于使用的单线UART接口打开了调整和控制选项。将应用程序调整存储到OTP内存。

二、TMC2209使用

1.简单的Step/Dir模式

简单的Step/Dir模式只需要给脉冲。

2.使用UART动态配置

  1. TMC2209硬件连接如下图所示。
    在这里插入图片描述
  2. UART发送和接收数据的格式,如下图所示。在这里插入图片描述在这里插入图片描述
    UART发送指令采用的CRC_8校验码,相关的校验代码如下:
static void prvTMCCal_CRC8(uint8_t *pucData, uint8_t ucDataLength)
{
	 int i,j;
	 
    unsigned char *crc = pucData + (ucDataLength - 1);

    unsigned char currentByte;

    *crc = 0;

    for(i = 0; i < (ucDataLength - 1);i++)
    {
        currentByte = pucData[i];
        for(j = 0; j < 8; j++)
        {
            if((*crc >> 7) ^ (currentByte & 0x01)){
                *crc = (*crc << 1) ^ 0x07;
            }else{
                *crc = (*crc << 1);
            }
            currentByte = currentByte >>1;
        }
    }
}

        3. StallGuard无传感器归位

            具体步骤如下:

                3.0 UART连接时,ENN必须为低电平并且MS1、MS2必须悬空;

                3.1 配置内部采样电阻。具体在GCONF中internal_Rsens = 1;

                3.2 电机电流设置,配置IHOLD_RUN寄存器;

                3.3 设置失速电流阈值TCOOLTHRS;

                3.4 设置灵敏度SGTHRS。

                3.5 调节电机的实际运动电流需要看CONFIG寄存器的第一位,若选择外部电流需要Vref参与。

总结

        本篇笔记主要记录了如何通过单线UART配置TMC2209步进驱动器功能以及怎么样配置StallGuard无传感器归位的功能。

  • 3
    点赞
  • 32
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
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
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值