{"product_id":"mikroe-2912","title":"Stepper 7 click","description":"\u003cp\u003e\u003ca class=\"btn-download\" href=\"https:\/\/download.mikroe.com\/documents\/2d-3d-files\/stepper-7-click-2d-and-3d-files.zip\" target=\"_blank\"\u003e \u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003eStepper 7 click is a bipolar step motor driver. It features an H-bridge bipolar step motor driver, which supports full and half step control modes. Stepper 7 click also carries a port expander so that the communication can be done with a minimal number of pins, through the mikroBUS™ SPI bus.\u003c\/p\u003e\n\u003cp\u003eStepper 7 click offers thermal protection, integrated kickback voltage protection, it has a wide range of input voltage, protection against current shoot-hrough the H-Bridge and reasonably high current capability. These features make Stepper 7 click an ideal solution for driving motors in any application that demands a precise and safe step motor driver.\u003c\/p\u003e\n\u003cp\u003e\u003ciframe frameborder=\"0\" src=\"https:\/\/www.youtube.com\/embed\/i9tsWBJIHv4\" width=\"752\" height=\"423\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow does it work?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis click board™ is equipped with two integrated circuits. The step motor driver IC is the \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/22260C.pdf\" target=\"_blank\"\u003eMTS62C19A\u003c\/a\u003e, a dual full-bridge motor driver from \u003ca href=\"http:\/\/www.microchip.com\/\"\u003eMicrochip\u003c\/a\u003e. This IC internal structure is somewhat symmetrical. It features two MOSFET H-bridges used to drive two coils of a bipolar step motor in both directions. The MTS62C19A uses a wide input voltage range - from 10V to 30V. This is the voltage used to energize the motor coils. A separate voltage level is used for the logic sections of this IC and it is obtained from the mikroBUS™ +5V rail. The MTS62C19A has two PHASE inputs which are used to control the direction of current flow through H-bridges and thus, the motor coils.\u003c\/p\u003e\n\u003cp\u003eThe output current level is controlled by an internal PWM circuit, which is configured using two logic inputs (Ix0 and Ix1), a current sense resistor, and the voltage on the VREFx input - set to +5V on the Stepper 7 click. By setting states on the Ix0 and Ix1 pins, the output current through the motor windings can be limited to 0%, 33%, 67% and 100% of the maximum output current, which is set to about 500mA. This setup allows controlling step motor in both full step and half step modes, by toggling states on the six control pins: PHASE1, PHASE2, I01, I02, I11, and I12.\u003cbr\u003e \u003cimg src=\"https:\/\/www.mikroe.com\/img\/cms\/stepper-7-click-img-page-a.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe bipolar step motor coils can be connected to the onboard screw terminals. There are two terminals, used to connect each of the step motor coils. The third connector is used to connect an external voltage, ranging from 10V to 30V, depending on the used motor voltage requirements. It should be noted that without a valid external voltage connected to this terminal, the motor will not work. Also, it should be noted that 40V is an absolute maximum voltage allowed as per datasheet, thus the overtemperature protection might be activated when driving heavier loads. The recommended maximum voltage should not exceed 30V, as stated on the silk layer of the PCB.\u003c\/p\u003e\n\u003cp\u003eAll of the MTS62C19A control lines are routed to the second IC on Stepper 7 board, which is the \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/21919e.pdf\" target=\"_blank\"\u003eMCP23S08\u003c\/a\u003e, a well-known 8bit I\/O expander with a serial interface, used on many of the MikroElektronika’s designs for its simplicity and reliability. It allows the control lines of the MTS62C19A IC to be driven via the SPI and few pins it uses - reducing the required pin count of the Stepper 7 click. This also allows for sending compact SPI messages, instead of toggling several pins at once - which can introduce problems with timing sometimes, especially when those pins belong to different MCU ports. Changing the supply voltage for the port expander allows for different SPI logic levels to be used for the communication - 3.3V or 5V, depending on host MCU. This can be accomplished by switching the position of the onboard SMD jumper, labeled as PWR SEL.\u003c\/p\u003e\n\u003cp\u003eBy changing states of the six control pins, it is possible to drive the step motor in full step mode as well as the half step mode. The tables below this text can also be found in the MTS62C19A datasheet, and provide detailed information about how to set the pin states. However, provided MikroElektronika libraries contain simple and intuitive functions to fully control the bipolar step motor, connected to Stepper 7 click. Their usage is demonstrated in the included example application, which can be used as a reference for a custom design.\u003cbr\u003e \u003cbr\u003e \u003cimg src=\"https:\/\/www.mikroe.com\/img\/cms\/stepper-7-inside-image-2.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eStepper\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eAn ideal solution for driving motors in any application that demands a precise and safe step motor driver.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eMTS62C19A Dual Full-Bridge Motor Driver, MCP23S08 8bit I\/O Expander with Serial Interface, both from Microchip\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003eThermal protection, integrated kickback voltage protection, it has a wide range of input voltage, protection against current shoot-through the H-Bridge and reasonably high current capability\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eGPIO,SPI\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eL (57.15 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003ePinout diagram\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis table shows how the pinout on\u003cstrong\u003e Stepper 7 click\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\u003ctable style=\"width: 549px;\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" alt=\"Mikrobus logo.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eReset\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eRST\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eChip Select\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eCS\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Clock\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSCK\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Data In\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDO\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Data Out\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDI\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower Supply\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e3V3\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e5V\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003ePower Supply\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eStepper 7 click electrical specifications\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable style=\"width: 553px;\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003cth\u003eMin\u003c\/th\u003e\n\u003cth\u003eTyp\u003c\/th\u003e\n\u003cth\u003eMax\u003c\/th\u003e\n\u003cth\u003eUnit\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage (TB1)\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e30\u003c\/td\u003e\n\u003ctd\u003eV\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCurrent limit (TB2, TB3)\u003c\/td\u003e\n\u003ctd\u003e0\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e500\u003c\/td\u003e\n\u003ctd\u003emA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI clock frequency\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003eMHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eOnboard settings and indicators\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD1\u003c\/td\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003ePower LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP1\u003c\/td\u003e\n\u003ctd\u003ePWR SEL\u003c\/td\u003e\n\u003ctd\u003eLeft\u003c\/td\u003e\n\u003ctd\u003ePower select jumper for port expander: left position 3.3V, right 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTB1\u003c\/td\u003e\n\u003ctd\u003eScrew terminal\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eTerminal used for connecting the external input voltage\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTB2\u003c\/td\u003e\n\u003ctd\u003eScrew terminal\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eTerminal used for connecting the first coil of the step motor\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTB3\u003c\/td\u003e\n\u003ctd\u003eScrew terminal\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eTerminal used for connecting the second coil of the step motor\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eSoftware support\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWe provide a library for Stepper 7 click on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2297\/stepper-7-click\"\u003eLibStock\u003c\/a\u003e page, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/compilers\"\u003ecompilers \u003c\/a\u003eand \u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/development-boards\"\u003edevelopment boards\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLibrary description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis library carries everything needed for stepper motor control, including speed and acceleration setup. The library can be adjusted to work on the different amount of ticks per second. Also, speed and acceleration can be provided in float format. The buffer used for movement calculation is defined by the user in order that the library can be adjusted for MCUs with very limited RAM resources. Check the documentation for more details how to use it.\u003cbr\u003e \u003cbr\u003e Key functions\u003c\/p\u003e\n\u003cp\u003e\u003ccode\u003euint8_t stepper7_setSpeed( float minSpeed, float maxSpeed, float accelRatio, T_STEPPER7_OBJ obj )\u003c\/code\u003e- Sets up the motor speed\u003c\/p\u003e\n\u003cp\u003e\u003ccode\u003euint8_t stepper7_setRoute( const uint8_t direction, uint32_t steps, T_STEPPER7_OBJ obj )\u003c\/code\u003e- Sets up a new route\u003c\/p\u003e\n\u003cp\u003e\u003ccode\u003evoid stepper7_start( T_STEPPER7_OBJ obj )\u003c\/code\u003e- Starts motor movement\u003c\/p\u003e\n\u003cp\u003eThe application is composed of three sections :\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - Initializes all GPIO pins found on Stepper 7 Click and timer to 1ms interrupt.\u003c\/li\u003e\n\u003cli\u003eApplication Initialization - The first segment initializes driver and stepper control. The second segment \u003cbr\u003e sets up movement limits, maximum and minimum speed, and acceleration ratio. The third segment enables motor \u003cbr\u003e and sets up the new route which will be called from the application task.\u003c\/li\u003e\n\u003cli\u003eApplication Task - (code snippet) - Sequentially moves the motor and executes movement until the end.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003evoid applicationTask()\n{\nstepper7_start( (T_STEPPER7_OBJ_P)\u0026amp;myStepper );\nwhile( myStepper.status.running )\nstepper7_process( (T_STEPPER7_OBJ_P)\u0026amp;myStepper );\nDelay_ms( 2000 );\n}\n\u003c\/pre\u003e\n\u003cp\u003eIn addition to library function calls, example carries necessary Timer ISR and Timer initialization. Check Timer initialization settings and update it according to your MCU - \u003ca href=\"https:\/\/www.mikroe.com\/timer-calculator\"\u003eTimer Calculator\u003c\/a\u003e.\u003cbr\u003e \u003cbr\u003e The full application code, and ready to use projects can be found on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2297\/stepper-7-click\"\u003eLibStock\u003c\/a\u003e page.\u003cbr\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eAdditional notes and information\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDepending on the development board you are using, you may need USB UART click, \u003ca href=\"https:\/\/www.mgsuperlabs.co.in\/estore\/USB-UART-2-Click\"\u003eUSB UART 2 click\u003c\/a\u003e or \u003ca href=\"https:\/\/www.mgsuperlabs.co.in\/estore\/RS232-click\"\u003eRS232 click\u003c\/a\u003e to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003emikroSDK\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis click board is supported with \u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2249\/mikrosdk\"\u003eLibStock\u003c\/a\u003e and installed for the compiler you are using.\u003cbr\u003e \u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400876409115,"sku":"MIKROE-2912","price":1789.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/stepper-7-click-thickbox_default-2fsDfO3agA2odi.jpg?v=1701960588","url":"https:\/\/mgsl.in\/products\/mikroe-2912","provider":"MG Super Labs","version":"1.0","type":"link"}