Stepper 5 Click Board™
Product Code: MIKROE-2624
Besides these advanced technologies, the TM2208 driver employs a set of other features: full output protection and diagnostics, wide input voltage range and reasonably high currents, internal sensing resistor, highly efficient low RDS ON output MOSFETs, UART communication over a single wire, OTP memory for permanent storing of the working parameters within the specific application, integrated pulse generator for standalone operation, a simple STEP/DIR GPIO interface for driving the motor, and more. All these features allow the developing of highly integrated and reliable step motor driving solution with outstanding performances. It can be used as a direct substitution for simpler step motor drivers in any application that employs one or more step motor drivers. How Does The Stepper 5 Click Board™ Work? The Stepper 5 Click Board™ uses the TM2208, a highly integrated bipolar step motor power driver, with the UART interface, from the Trinamic company. As already mentioned, this device features many different features, which allow using the driver almost autonomously.
It is equipped with the OTP memory, which can store the working parameters for a specific step motor, avoiding initialization by the MCU, after every Power ON Reset (POR) cycle. Technologies, such as stealthChop2™, spreadCycle™, and microPlayer™, help to achieve high autonomy for the motor driving, using only the STEP and DIR input pins to set the direction and step propagation. Even that can be automated by means of the microPlayer™ technology, reducing the impact on the MCU performance almost completely.
To best describe how to operate this device, it is best to divide its operation into three abstract modes:
A standalone STEP/DIR mode: this mode is also referred to as the legacy mode. The device is operated similar to other pin-driven step motor controllers/drivers – the step propagation is controlled by pulses on the STEP input, and the direction is determined by the DIR pin. MS1 and MS2 pins are used to set the microstep mode from 1:2 step to 1:16 step. VREF pin is used to set the maximum current limit, and on Stepper 5 click, it is set by the R2 resistor, to 1.24A RMS (1.76 peak). The DIAG pin provides diagnostic information, while the INDEX pin provides movement feedback. ENN pin is used to enable or disable the IC. This mode allows the driver to be used as a direct replacement for the simpler driver ICs, thus this mode is called the legacy mode.
A standalone STEP/DIR mode with preprogrammed OTP configuration: the driver IC appears as a standard MCU peripheral device, from the software point of view. A set of configuration and status registers can be used to set the working parameters, which is especially convenient if a specific step motor with known properties is used for the application. The OTP (One Time Programmable) memory is used to store the configuration. It can be stored on the MCU, too. Communication is done via the UART interface, which only requires a single wire for both READ and WRITE operations (a specific message format is utilized to allow this). UART can work on a wide range of baud rates, up to 500K. The UART interface features auto baud rate detection and the CRC generation, allowing for reliable and simple communications to be established with the MCU, even over distances. Once programmed either from the OTP or via the UART, the device can still be driven by the STEP/DIR pins, but the motor performance will be enhanced and fine-tuned to a specific application.
A STEP/DIR mode with the full diagnostics and control : this mode unleashes the full potential of the TM2208. All the parameters can be configured and controlled via the UART, also power and thermal data can be provided back to the MCU for further analysis and optimization. Passive braking and freewheeling modes become available, providing the lowest power consumption for the stop mode (when the step motor is standing still). The control of the microPlayer™ interpolation features become available, allowing more control over micro stepping and yielding even quieter operation. The spreadCycle™ and the stealth Chop2™ technologies offer even more control via the registers. Use of the external pins can be completely bypassed (with the configuration bits), by utilizing the internal programmable step pulse generator. This mode is useful when the absolute top performance is required, with no compromises.
These three modes do not have some special configuration bits that enable them. They are just abstractions of the scenarios in which the Stepper 5 click can be used, therefore they are referred to as the abstract modes. The TM2208 datasheet offers an extensive explanation of all the features of this IC, going into details about how to best use them for a specific application. However, Stepper 5 click comes with the library of functions that simplify its use, along with the example that can be used as a reference for custom projects.
VCC SEL onboard SMD jumper
Visit the Debug Store website for more information on Stepper 5 Click Board™