{"product_id":"mikroe-3544-stspin820-click-board-uk","title":"STSPIN820 Click Board™","description":"\u003cp\u003eThe \u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e 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 the \u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e 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\n\n\u003ch3\u003eHow Does The STSPIN820 Click Board™ Work?\u003c\/h3\u003e\n\n\u003cp\u003eThe \u003cem\u003e\u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e\u003c\/em\u003e 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\n\n\u003cp\u003e\u003cimg alt=\"STSPIN820 click inside\" data-entity-type=\"\" data-entity-uuid=\"\" src=\"https:\/\/www.mikroe.com\/img\/images\/stspin-820-click-inner.jpg\"\u003e\u003c\/p\u003e\n\n\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\n\n\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:\u003c\/p\u003e\n\n\u003cp\u003eVREF = RSENS · ILOAD\u003c\/p\u003e\n\n\u003cp\u003eWhere:\u003c\/p\u003e\n\n\u003cul\u003e\n    \u003cli\u003eVREF is the voltage on the REF pin of the STSPIN820, adjustable with the potentiometer.\u003c\/li\u003e\n    \u003cli\u003eRSENS is the resistance of the current sensing resistor, which is 330 mΩ.\u003c\/li\u003e\n    \u003cli\u003eILOAD is the peak current through the motor coils.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\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\n\n\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\n\n\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 (labelled as DIR).\u003c\/p\u003e\n\n\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\n\n\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\n\n\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\n\n\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 labelled as EN and FLT on the Click board™, respectively.\u003c\/p\u003e\n\n\u003cp\u003eThe motor power supply can be connected to the input terminal labelled as VIN and should be within the range of 7V to 45V. Stepper motor coils can be connected to the terminals labelled as A1, B2, B1, and A2. The \u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e 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\n\n\u003ch3\u003eSPECIFICATIONS\u003c\/h3\u003e\n\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\u003eThe \u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e suited for rapid development of various stepper motor applications, including ATM-related applications, toys, 3D printers, mechatronics, robotics-related applications, etc.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eOn-board modules\u003c\/td\u003e\n            \u003ctd\u003eAn STSPIN820, a stepper motor driver from STSPIN8 series from STmicrocontrollers\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eKey Features\u003c\/td\u003e\n            \u003ctd\u003eThe STSPIN820 click fetures PWM current control, selectable micro-stepping up to 256 micro-steps, and a wide voltage range.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eInterface\u003c\/td\u003e\n            \u003ctd\u003eGPIO\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eCompatibility\u003c\/td\u003e\n            \u003ctd\u003emikroBUS\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        \u003ctr\u003e\n            \u003ctd\u003eInput Voltage\u003c\/td\u003e\n            \u003ctd\u003e3.3V\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003ePINOUT DIAGRAM\u003c\/h3\u003e\n\n\u003cp\u003eThis table shows how the pinout of the \u003cstrong\u003eSTSPIN820 Click Board™\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\n\u003ctable width=\"549\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eNotes\u003c\/th\u003e\n            \u003cth\u003ePin\u003c\/th\u003e\n            \u003cth colspan=\"4\"\u003e\u003cimg alt=\"Mikrobus logo.png\" data-entity-type=\"\" data-entity-uuid=\"\" src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\"\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\u003eDirection Control\u003c\/td\u003e\n            \u003ctd\u003e\u003cb\u003eDIR\u003c\/b\u003e\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\u003e\u003cb\u003eSTK\u003c\/b\u003e\u003c\/td\u003e\n            \u003ctd\u003eStep Control\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eChip Reset\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\u003e\u003cb\u003eFLT\u003c\/b\u003e\u003c\/td\u003e\n            \u003ctd\u003eFault Reporting\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eChip Enable\u003c\/td\u003e\n            \u003ctd\u003e\u003cb\u003eSDN\u003c\/b\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        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\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        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\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        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\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        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ePower Supply\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003e3.3V\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\u003eNC\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\n\u003ch3\u003eSTSPIN820 CLICK ELECTRICAL SPECIFICATIONS\u003c\/h3\u003e\n\n\u003ctable\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\u003eExternal power supply voltage\u003c\/td\u003e\n            \u003ctd\u003e7\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003e45\u003c\/td\u003e\n            \u003ctd\u003eV\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eMotor RMS current\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003e1.5\u003c\/td\u003e\n            \u003ctd\u003eA\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eStep size\u003c\/td\u003e\n            \u003ctd\u003e1\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003e1:256\u003c\/td\u003e\n            \u003ctd\u003estep\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003cp\u003e\u003cstrong\u003eNote: \u003c\/strong\u003ePower dissipation should be monitored. An additional heat sink might be required when operated with high current values.\u003c\/p\u003e\n\n\u003ch3\u003eONBOARD SETTINGS AND INDICATORS\u003c\/h3\u003e\n\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\u003ePWR\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\u003eSW1 - SW4\u003c\/td\u003e\n            \u003ctd\u003eSW1 - SW4\u003c\/td\u003e\n            \u003ctd\u003eUp\u003c\/td\u003e\n            \u003ctd\u003eMicrostepping selection switches\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eVR1\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003ePotentiometer for current limiting\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003e \u003c\/h3\u003e","brand":"Mikroelektronika d.o.o.","offers":[{"title":"Default Title","offer_id":37768426487997,"sku":"MIKROE-3544","price":20.0,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0522\/6931\/8333\/products\/mikroelektronika-d-o-o-click-board-stspin820-click-board-30221285916861.jpg?v=1685218438","url":"https:\/\/thedebugstore.com\/it\/products\/mikroe-3544-stspin820-click-board-uk","provider":"Debug Store","version":"1.0","type":"link"}