ST / X_NUCLEO_IHM01A1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   Stepper_Matlab_Control SunTracker_BLE Stepper_Matlab_Control MemsMotorControl ... more

Fork of X_NUCLEO_IHM01A1 by ST Expansion SW Team

Motor Control Library

Introduction

Library to handle the X-NUCLEO-IHM01A1 Motor Control Expansion Board based on the the L6474 component.

Daisy-Chain Configuration

This board can be stacked up to three times so that the L6474 components will be connected in daisy-chain configuration. For this purpose, some resistors must be correctly connected on the boards as depicted here below:

/media/uploads/Davidroid/daisychaintable.png

Platform compatibility

  • NUCLEO boards have been tested with the default configuration provided by the HelloWorld_IHM01A1 example.
  • LPCXpresso11U68 board has been tested with the following patch:
    • to connect with a wire from the LPCX’s D4 pin to the IHM01A1’s D9 pin;
    • to initialize the pwm PinName variable with D4 rather than D9.
  • FRDM-K64F board has been tested with the following patch:
    • to connect with a wire from the FRDM’s D4 pin to the IHM01A1’s D8 pin;
    • to initialize the standby_reset PinName variable with D4 rather than D8.

Example Applications

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Wed Oct 28 12:40:11 2015 +0000
Parent:
2:de6d31fa3709
Commit message:
NTR

Changed in this revision

Components/l6474/l6474_class.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Components/l6474/l6474_class.cpp	Wed Oct 28 12:35:54 2015 +0000
+++ b/Components/l6474/l6474_class.cpp	Wed Oct 28 12:40:11 2015 +0000
@@ -66,7 +66,7 @@
 #define MAX_STEPS         (0x7FFFFFFF)
 
 /// Maximum frequency of the PWMs in Hz
-#define L6474_MAX_PWM_FREQ   (20000)
+#define L6474_MAX_PWM_FREQ   (10000)
 
 /// Minimum frequency of the PWMs in Hz
 #define L6474_MIN_PWM_FREQ   (2)