ADI Trinamic Blog

We transform digital information into physical motion.

 
  • Newsletter
  • Blog Ethics
  • Legal/Impressum
  • Main Website
Menu
  • Newsletter
  • Blog Ethics
  • Legal/Impressum
  • Main Website
  • How to replace an Allegro A4988 with the TMC2208

    How to replace Allegro A4988 with TMC2208

    The TMC2208 stepper motor driver is an ultra-silent motor driver IC for 2-phase stepper motors. Its features and benefits make it a popular replacement for pin-compatible legacy drivers, such as the Allegro A4988. Whether you simply want to benchmark different stepper driver ICs or if you’re looking to replace an A4988 with the TMC2208 by TRINAMIC Motion Control, this application note explains in detail how you can drop-in the TMC2208 for any application that uses Allegro’s A4988.

    Trinamic’s sophisticated StealthChop2™ chopper is supported by the TMC2208, ensuring absolute silence except for ball bearing noise, maximum efficiency, and motor torque. Its fast current regulation and optional combination with SpreadCycle™ allows for highly dynamic motion, making it a popular motor driver IC for compatible design upgrades, 3D printers, office and home automation, textile, CCTV, ATMs, HVAC systems and many more applications.

    When one compares the Allegro A4988 and other motor drivers with the TMC2208, Trinamic’s chip offers additional features such as:

    –    Power down: An automatic current reduction reduces power dissipation and cooling requirements. The standstill current is per default enabled by pulling PDN UART input to GND.

    –    UART: The UART single wire interface allows control of the TMC2208 with any microcontroller UART. This gives the possibility to program the TMC2208 and add additional features such as full 256 Microsteps control (not only interpolation). UART is not available in legacy mode.

    –    Diagnostics: An active DIAG output shows that the driver cannot work normally.

    –    Index: The INDEX output signals the microstep counter zero position, which occurs once per electrical revolution/four full steps. In combination with a mechanical home switch, a more precise homing is enabled.

    –    Microstepping: The TMC2208 is able to control the motor with 256 microsteps per full step. In legacy mode, the TMC2208 will interpolate received step signals to 256 microsteps.

    For optimized performance in legacy mode, it is recommended to consider the hints shown in the application note.

    Available through our distributors, it’s easy to use TRINAMIC Motion Control’s TMC2208 as a drop-in replacement for the Allegro A4988. One way of doing so is by following this application example:

    A schematic of a SilentStepStick is depicted below as an application example. The TMC2208 is inserted and used in legacy mode, as shown in the second figure below. Recommended changed parts are marked blue. The Pins PDN/UART, INDEX, DIAG, MS2, MS1 feature additional or slightly changed functions as discussed in the app note.

    The sense resistor should be chosen according to the motor current of the application. Table 1 (below) shows the relation between sense resistor and current for VREF = 2.5A after equation 1. For the application example, RSENSE is set to 0.18Ω which allows to control motor currents up to 1.2A.

     

    The image above shows the pinout of the A4988. The image below shows the pinout of the TMC2208 used in legacy mode with recommended changed parts marked blue.

     

    Following this application example to replace the Polulu A4988 with the Trinamic TMC2208, the sense resistor should be chosen according to the motor current of the application. Please have a look at the application note which explains this in further detail.

    Share this:

    • Twitter
    • Facebook
    • LinkedIn
    • Pinterest
    • Print
    • Email

    Related

    April 15, 2018 / Trinamic / 10

    Categories: Products, Tutorial

    Tags: A4988, Allegro, alternative to A4988, cross reference, How-To, pin-compatible, stepper motor driver, TMC2208, Upgrade

    Real-time Motor and Motion Control with a Raspberry Pi without a real-time OS Trinamic is looking for you!

    Comments are currently closed.

    10 thoughts on “How to replace an Allegro A4988 with the TMC2208”

    • thesfreader says:
      April 15, 2018 at 1:38 pm

      Please note that the links to the application note are KO (they link to a “local” file)

    • Corné Bekkers says:
      April 15, 2018 at 1:46 pm

      Thanks, we’ve updated it now!

    • Tomas Mudrunka says:
      April 20, 2018 at 10:18 am

      Hi! I’ve just read about your StallGuard2™ feature and it’s possibility to use it instead of endstops. That’s super awesome! Do you think you can add “endstop output” to your pololu compatible driver boards? Just two pins that would allow LED to be added. Such LED would illuminate when stall is detected. That way i could use optocoupler as endstop switch for my controller board. This setup would allow to easily add StallGuard endstops to most of the existing CNC boards, as all of them can usualy be triggered by switches and optocouplers…

    • Corné Bekkers says:
      April 24, 2018 at 3:49 pm

      Hey! We didn’t make these boards ourselves, but you can always reach out to Watterott and see if they’re interested in the idea.

    • dasPaul says:
      May 29, 2018 at 8:08 am

      Would you recommend 0,15 or 0,18 Ohms RSENSE resistors for 1,5A Peak Steppers? And what is “VMM” in the drawings?

    • Lars Jaskulski says:
      June 20, 2018 at 9:49 am

      Hi Paul,

      You can find a table on page 52 of the TMC220x datasheet to select the right sense resistor: https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC220x_TMC222x_datasheet_Rev1.05.pdf
      1,5A peak = ~1.1A RMS
      Both sense resistors would work. If you have the choice we recommend 180mOhms. With 150mOhms you could increase the current slightly to up to ~1.35A RMS. If that is not necessary please use 180mOhms.

      VMM is the voltage for the motor supply.

      Hope this helps.

      Best regards,
      Lars

    • JuergenB says:
      August 14, 2018 at 5:56 pm

      Hello, do i understand it right, that i only need to change decoupling capacitors and the sense resistor when i would want to exchange the A4988 QFN CHIP with ur TMC2208 QFN? Im specifically looking to replace these chips for my 3D printer sometime in the future. Until then I ll definitely have to give it a closer look, but your illustrations seem to imply this.

      Kind regards
      Jürgen

    • Lars Jaskulski says:
      August 16, 2018 at 8:02 am

      Hi Jürgen,
      Have you checked the application note? Here everything is described how to replace the part. Or are you referring to this app note?
      https://www.trinamic.com/fileadmin/assets/Support/Appnotes/AN045-How_to_replace_Allegro_A4988_with_TMC2208_01.pdf
      Best regards,
      Lars

    • rafaljot says:
      January 6, 2019 at 3:00 pm

      Any plan for tmc2225, dvr8825 replacement?

    • Lars Jaskulski says:
      February 6, 2019 at 10:48 am

      Hi,
      Yes, expected to be available Q2 this year (2019)!
      Best regards,
      Lars

Recent Posts

  • Guest Blog: School of Engineering Telecom Physics University of Strasbourg
  • Guest Blog: STAR Dresden
  • Pushing the Limits of Stepper Motor Control in 3D Printing
  • POWER STEERING
  • Reference Design for Battery-Powered IoT Devices

Social

  • View trinamic.mc’s profile on Facebook
  • View Trinamic_MC’s profile on Twitter
  • View trinamic’s profile on GitHub
  • View UC4SHA5_GAw1Wbm2T2NWpWbA’s profile on YouTube

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

 

Info

Waterloohain 5
22769 Hamburg
+49 40 514 806 40

Tags

3D printer 3d printing arduino BLDC cDriver code code snippet coolStep drive Driver ease of use ethercat eval kit evaluation kit Field Oriented Control FOC GUI guide heliostat How-To IC linear stage motion controller motor driver open source hardware programming rtmi servo servo controller IC setup silentstepstick stealthChop stepper stepper motor stepper motor driver stepper motor driver ic stepper motors technology TMC4671 tmc5130 TMCL TMCL-IDE TRINAMIC TRINAMIC Motion Control tuning

Tag Cloud

    3D printer 3d printing arduino BLDC cDriver code code snippet coolStep drive Driver ease of use ethercat eval kit evaluation kit Field Oriented Control FOC GUI guide heliostat How-To IC linear stage motion controller motor driver open source hardware programming rtmi servo servo controller IC setup silentstepstick stealthChop stepper stepper motor stepper motor driver stepper motor driver ic stepper motors technology TMC4671 tmc5130 TMCL TMCL-IDE TRINAMIC TRINAMIC Motion Control tuning

Pages

  • Blog Ethics
  • Newsletter
  • Player Embed
  • Search Videos
  • User Videos
  • Video Category
  • Video Tag

Categories

  • Competition
  • Guest blog
  • Industry News
  • Jobs
  • Myths about Motors
  • Open Source Hardware
  • Products
  • Projects
    • DIY
    • University Projects
  • Research
  • Social
  • Software
  • technology
  • Trade Shows
  • Tutorial
    • Code Snippet
  • Uncategorized

Copyright © 2015 TRINAMIC BlogTheme created by PWT. Powered by WordPress.org

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.