{"product_id":"sparkfun-mikroe-stspin820-click","title":"SparkFun MIKROE STSPIN820 Click","description":"\u003cp\u003eSTSPIN820 Click is a stepper motor driver with the PWM current control, selectable microstepping up to 256 microsteps, and a wide voltage range. It is based on the STSPIN820, a stepper motor driver from STSPIN8 series. Designed to be a bullet-proof solution for the new wave of demanding industrial applications, it integrates two full-bridges with low ON resistance, the control logic, and a full set of protection features, in a small 4x4mm QFN package. Its output stage implements the PWM current control with the fixed OFF time. The device can be used with the step motor voltage ranging from 7V up to 45V, and current up to 1.5A per bridge.\u003c\/p\u003e \u003cp\u003eSTSPIN820 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development.\u003c\/p\u003e \u003cp\u003eThis Click boardâ�¢ is optimized for driving bipolar stepper motors over a wide voltage range. Therefore, the STSPIN820 integrates very efficient H-Bridges with ON resistance of approximately 1â�¦ through each bridge. Motor current can be limited by an onboard potentiometer. These features make STSPIN820 Click perfectly suited for rapid development of various stepper motor applications, including ATM-related applications, toys, 3D printers, mechatronics, robotics-related applications, etc.\u003c\/p\u003e \u003cp\u003eSTSPIN820 Click is based on the STSPIN820, an advanced stepper motor driver produced by STMicroelectronics. The monolithic IC incorporates both the power MOSFETs and the logic circuitry necessary for simplified control and reliable functioning of the connected bipolar stepper motor. Featuring a microstepping sequencer that supports up to 256 microsteps, this IC can perform very smooth and silent movements. The step sequencer also controls the VREF voltage, allowing the current through coils to be at an optimal level during the microstepping. In full step mode, the maximum current through the coils is controlled by the VREF, according to the formula given further below. As the sequencer propagates through the microsteps, the VREF is further reduced following a circular pattern, ensuring maximum power efficiency for each step.\u003c\/p\u003e \u003cp\u003eThe STSPIN820 has two PWM current controllers with the fixed OFF time for each H-Bridge, during which the current decay sequence is performed. This effectively limits the maximum current through the connected motor phase. The OFF (decay) time is fixed to approximately 25 Âµs on this Click boardâ�¢. The DECAY pin determines the decay mode. In mixed decay mode (DECAY pin at the LOW logic level), the decay period is divided into slow decaying and fast decaying segments. The slow decay segment lasts for 5\/8 of the total OFF time, while the fast decay segment lasts for 3\/8 of the total OFF time. When the DECAY pin is at the HIGH logic level, the slow decay mode lasts for the entire OFF time.\u003c\/p\u003e \u003cp\u003eThe PWM current controller compares the voltage across two sense resistors (VSENS1, and VSENS2) and the VREF voltage, which can be adjusted by a potentiometer. When VSENS becomes greater than the VREF voltage, the current limiting is triggered, and the OFF timer starts counting. The decay sequence is performed. By using a simple formula, the VREF voltage can be determined for a specific load current: VREF = RSENS Â· ILOAD\u003c\/p\u003e \u003cp\u003eWhere:\u003c\/p\u003e \u003cul\u003e \u003cli\u003eVREF is the voltage on the REF pin of the STSPIN820, adjustable with the potentiometer.\u003c\/li\u003e \u003cli\u003eRSENS is the resistance of the current sensing resistor, which is 330 mâ�¦.\u003c\/li\u003e \u003cli\u003eILOAD is the peak current through the motor coils.\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003eBy knowing the RSENS, it can be easily calculated how much voltage should be applied to the REF pin of the STSPIN820, to limit the current according to ILOAD. For example, if there is 0.3V applied at the VREF pin, the current limit will be maxed out to 0.91A. The potentiometer allows to simply adjust the VREF voltage, according to needs.\u003c\/p\u003e \u003cp\u003eThe STSPIN820 contains two independent H-Bridges, and each of them controls one phase of the bipolar stepper motor. The motor can be controlled by using these pins: DIR, STCK, RST, EN, and FAULT.\u003c\/p\u003e \u003cp\u003eThe DIR pin determines the direction of the rotation. If set to a HIGH logic level, the internal microstepping counter will increase its value with each pulse coming through the STCK pin. The LOW logic level on this pin will cause the microstepping sequencer to decrease its counter. DIR pin is routed both to the mikroBUSâ�¢ pin AN (labeled as DIR).\u003c\/p\u003e \u003cp\u003eSTCK pin has already been explained above: a pulse on this pin will cause the microstepping sequencer to increase or decrease its counter, depending on the state of the DIR pin.\u003c\/p\u003e \u003cp\u003eSW1, SW2, and SW3 switches on the Click boardâ�¢ are used to determine the step size. They have MODE 1, MODE 2, and MODE 3 pins routed to them, respectively. All these switches can be used to set the mode at any moment during the operation. The changes are applied immediately. The datasheet of the STSPIN820 IC offers a truth-table which contains settings of these switches for each microstepping mode.\u003c\/p\u003e \u003cp\u003eThe STBY\/RESET (RST) pin of the STSPIN820 is used to set both bridge outputs in HIGH-Z mode, disconnecting the power supply from the H-Bridges. This pin allows lower average power consumption as no current can flow from the power supply to the motor. This pin is routed to the RST pin of the mikroBUSâ�¢. The control logic circuitry will be reset when leaving the standby mode.\u003c\/p\u003e \u003cp\u003eThe EN\/FAULT (EN) pin has a double purpose: when set to a high logic level, it acts as a chip enable, allowing the device to operate. In the case of a fault condition on the IC, it will be asserted to a LOW logic level, acting as an interrupt pin. After a timeout period defined by the external capacitor and resistor values, a restart attempt will be made. This pin is routed to both CS and INT pin of the mikroBUSâ�¢, allowing the host MCU to use both functions. These pins are labeled as EN and FLT on the Click boardâ�¢, respectively.\u003c\/p\u003e \u003cp\u003eThe motor power supply can be connected to the input terminal labeled as VIN and should be within the range of 7V to 45V. Stepper motor coils can be connected to the terminals labeled as A1, B2, B1, and A2. The Click boardâ�¢ requires an external power supply for the motor in order to work. However, it also requires 3.3V from the mikroBUSâ�¢ rail.\u003c\/p\u003e \u003cp\u003e\u003cstrong\u003eFeatures:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003eInterface: GPIO\u003c\/li\u003e \u003cli\u003eCompatibility: mikroBUSâ�¢\u003c\/li\u003e \u003cli\u003eDimensions: 57.15 x 25.4mm\u003c\/li\u003e \u003cli\u003eInput Voltage: 3.3V\u003c\/li\u003e \u003cli\u003eExternal Power Supply Voltage: Min. 7V, Max. 45V\u003c\/li\u003e \u003cli\u003eMotor RMS Current: 1.5A\u003c\/li\u003e \u003cli\u003eStep Size: Min. 1 step, Max. 1:256 step\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e Power dissipation should be monitored. An additional heat sink might be required when operated with high current values.\u003c\/p\u003e \u003cp\u003e\u003cstrong\u003eDocuments:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/4\/b\/4\/3\/2\/Schematic-19807-MIKROE_STSPIN820_Click.pdf\"\u003eSchematic\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/1\/4\/e\/9\/0\/stspin820.pdf\"\u003eSTSPIN820 Datasheet\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2853\/stspin820-click\"\u003eLibStock\u003c\/a\u003e\u003c\/li\u003e \u003c\/ul\u003e","brand":"sparkfun-10","offers":[{"title":"Default Title","offer_id":40331957207125,"sku":"19807:ROB-19807:spark","price":2870.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/1034\/1611\/products\/19807_-_MIKROE_STSPIN820_Click_2.jpg?v=1663616029","url":"https:\/\/www.tanotis.com\/products\/sparkfun-mikroe-stspin820-click","provider":"Tanotis","version":"1.0","type":"link"}