Library to handle the X-NUCLEO-IHM06A1 Motor Control Expansion Board based on the STSPIN220 component.
Dependencies: ST_INTERFACES
Dependents: HelloWorld_IHM06A1
Fork of X-NUCLEO-IHM06A1 by
Motor Control Library
Library to handle the X-NUCLEO-IHM06A1 Motor Control Expansion Board based on the STSPIN220 component.
It features the:
- Read and write of the device parameters; GPIO, PWM and IRQ configuration; microstepping, direction position, speed, acceleration, deceleration and torque controls
- Automatic full-step switch management; high impedance or hold stop mode selection; enable and standby management
- Fault interrupts handling (over current, short-circuit and over temperature)
- Command locking until the device completes movement
The API allows to easily:
- perform various positioning, moves and stops
- get/set or monitor the motor positions
- set the home position and mark another position
- get/set the minimum and maximum speed
- get the current speed
- get/set the acceleration and deceleration
- get/set the stop mode (hold, hiz or standby)
- get/set the torque
- get/set the torque boost
- get/set the step mode (up to 1/256)
Platform compatibility
Compatible platforms have been tested with the configurations provided by the HelloWorld_IHM06A1 example.
History
Aligning to ARM mbed coding style.
2017-07-28, by Davidroid [Fri, 28 Jul 2017 13:28:00 +0000] rev 5
Aligning to ARM mbed coding style.
Typos corrected.
2017-03-24, by Davidroid [Fri, 24 Mar 2017 13:54:23 +0000] rev 4
Typos corrected.
Aligning to ARM mbed coding style.
2017-03-24, by davide.aliprandi@st.com [Fri, 24 Mar 2017 10:59:19 +0100] rev 3
Aligning to ARM mbed coding style.
Updated the date in the header of stspin220_class.h
2016-07-27, by nucleosam [Wed, 27 Jul 2016 12:00:06 +0000] rev 2
Updated the date in the header of stspin220_class.h
Fixed Stspin220_Board_TimStckStop (missing __enable_irq() function call).; Fixed conditions to exit from FS mode in Stspin220_ApplySpeed function.
2016-07-27, by nucleosam [Wed, 27 Jul 2016 11:56:39 +0000] rev 1
Fixed Stspin220_Board_TimStckStop (missing __enable_irq() function call).; Fixed conditions to exit from FS mode in Stspin220_ApplySpeed function.
Initial version.
2016-05-26, by nucleosam [Thu, 26 May 2016 15:44:53 +0000] rev 0
Initial version.