Mems Motor Control application example with X_NUCLEO_IHM01A1 and X_NUCLEO_IKS01A2 expansion boards.
Dependencies: X_NUCLEO_IHM01A1 X_NUCLEO_IKS01A2 mbed
Fork of MemsMotorControl by
MEMS-based Motor Control
This application provides an intuitive and natural way for controlling a stepper motor through an accelerometer. It makes use of the STMicroelectronics X-NUCLEO-IKS01A2 MEMS Inertial and Environmental Sensors Expansion Board to get accelerometer values and the X-NUCLEO-IHM01A1 Stepper Motor Control Expansion Board to directly control a stepper motor with:
- speed proportional to the angle measured by the MEMS board;
- direction driven by the direction of rotation captured by the MEMS board.
Diff: main.cpp
- Revision:
- 8:201bc01dcc1b
- Parent:
- 6:b09e55633002
- Child:
- 9:218d1ac31590
diff -r 448ca4ee49f3 -r 201bc01dcc1b main.cpp --- a/main.cpp Wed Nov 25 12:18:44 2015 +0000 +++ b/main.cpp Thu Nov 26 16:10:06 2015 +0000 @@ -1,7 +1,7 @@ /** ****************************************************************************** * @file main.cpp - * @author Davide Aliprandi / AST + * @author Davide Aliprandi, STMicrolectronics * @version V1.0.0 * @date October 16th, 2015 * @brief mbed vertical application using the STMicrolectronics