Expansion SW library to control a bipolar stepper motor using X-NUCLEO-IHM05A1 expansion board based on L6208.
Dependencies: ST_INTERFACES
Dependents: HelloWorld_IHM05A1 TAU_ROTATING_PLATFORM_IHM05A1 Amaldi_13_Exercise_IHM05A1 Amaldi_13_Exercise_IHM05A1motore ... more
Fork of X-NUCLEO-IHM05A1 by
Motor Control Library
Library to handle the X-NUCLEO-IHM05A1 Motor Control Expansion Board based on the L6208 component.
It features the:
- Read and write of device parameters
- Configuration of GPIOs and IRQs (for enabling, direction, current decay and microstepping)
- Control of position, speed, acceleration and deceleration
- Command locking until the device completes movement
- Handling of overcurrent and thermal alarms (flag interrupt handling)
The API allows to easily:
- perform various positioning, moves and stops
- get/set or monitor the motor positions
- set home position and mark another position
- get/set minimum and maximum speed
- get current speed
- get/set acceleration and deceleration
- get/set the step mode (up to 1/16)
Board configuration
Platform compatibility
Compatible platforms have been tested with the configurations provided by the HelloWorld_IHM05A1 example.
History
Aligning to ARM mbed coding style.
2017-07-28, by Davidroid [Fri, 28 Jul 2017 13:06:36 +0000] rev 6
Aligning to ARM mbed coding style.
Aligned to ARM mbed coding style.
2017-05-08, by Davidroid [Mon, 08 May 2017 15:42:20 +0000] rev 5
Aligned to ARM mbed coding style.
Typos corrected.
2017-03-24, by Davidroid [Fri, 24 Mar 2017 13:29:46 +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:42 +0100] rev 3
Aligning to ARM mbed coding style.
Removed X-NUCLEO-COMMON, since I2C and SPI are not used.; Private methods became protected, in order to be correctly inherited in case someone decides to make a subclass of this driver.
2016-04-29, by nucleosam [Fri, 29 Apr 2016 14:58:30 +0000] rev 2
Removed X-NUCLEO-COMMON, since I2C and SPI are not used.; Private methods became protected, in order to be correctly inherited in case someone decides to make a subclass of this driver.
Initial version tested on NUCLEO-F401RE and NUCLEO-F334R8
2016-04-27, by nucleosam [Wed, 27 Apr 2016 16:30:55 +0000] rev 1
Initial version tested on NUCLEO-F401RE and NUCLEO-F334R8
Initial version with empty files in l6208 folder.
2016-04-08, by nucleosam [Fri, 08 Apr 2016 15:30:36 +0000] rev 0
Initial version with empty files in l6208 folder.