ST Microelectronics IHM02A1 motor driver board for two stepping motors. ST L647OPD motion controller ICs are used on the IHM02A1. Nanotec ST4118X1404-A motors used on testing.
Dependencies: X_NUCLEO_IHM02A1
Revision 28:831587f78478, committed 2021-10-04
- Comitter:
- timo_k2
- Date:
- Mon Oct 04 06:52:31 2021 +0000
- Parent:
- 27:b25816ce6043
- Child:
- 29:34ef733fe490
- Commit message:
- Initial commit on this forked ST Microelectronics code example.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jul 03 11:53:02 2017 +0000
+++ b/main.cpp Mon Oct 04 06:52:31 2021 +0000
@@ -34,6 +34,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
+ * Comments by Timo Karppinen
+ * For correct use of the NUCLEO-F401RE with the X-NUCLEO-IHM02A1,
+ * the solder bridge SB15 on the NUCLEO-F401RE has to be removed /
+ * Getting started with X-NUCLEO_IHM02A1, page 3/24. = IHM02A1 L6470 nCS
+ *
+ * Set the motor parameters before connecting the motor!!! Supply voltage,
+ * Maximum motor phase curent and Maximum phase voltage are the most
+ * important ones. Set as well the step angle - you will set the number of
+ * steps per revolution.
+ *
+ * On first tests supply the IHM02A1 voltage from a source where you can set
+ * the current limit. The limit should correspond the maximum phase current
+ * given in the step motor data sheet. One phase is driven at a time in full
+ * steps. In half steps the current might be double the motor phase current.
+ *
*/
@@ -75,9 +90,9 @@
/* First Motor. */
{
9.0, /* Motor supply voltage in V. */
- 400, /* Min number of steps per revolution for the motor. */
- 1.7, /* Max motor phase voltage in A. */
- 3.06, /* Max motor phase voltage in V. */
+ 200, /* Min number of steps per revolution for the motor. */
+ 1.0, /* Max motor phase current in A. */
+ 2.0, /* Max motor phase voltage in V. */
300.0, /* Motor initial speed [step/s]. */
500.0, /* Motor acceleration [step/s^2] (comment for infinite acceleration mode). */
500.0, /* Motor deceleration [step/s^2] (comment for infinite deceleration mode). */
@@ -103,9 +118,9 @@
/* Second Motor. */
{
9.0, /* Motor supply voltage in V. */
- 400, /* Min number of steps per revolution for the motor. */
- 1.7, /* Max motor phase voltage in A. */
- 3.06, /* Max motor phase voltage in V. */
+ 200, /* Min number of steps per revolution for the motor. */
+ 1.0, /* Max motor phase voltage in A. */
+ 2.0, /* Max motor phase voltage in V. */
300.0, /* Motor initial speed [step/s]. */
500.0, /* Motor acceleration [step/s^2] (comment for infinite acceleration mode). */
500.0, /* Motor deceleration [step/s^2] (comment for infinite deceleration mode). */
Timo Karppinen