![](/media/cache/profiles/Timo_01_DSC_4754_533x533.jpg.50x50_q85.jpg)
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
Diff: main.cpp
- Revision:
- 23:073b26366d03
- Parent:
- 22:e81ccf73bc5d
- Child:
- 24:d1f487cb02ba
--- a/main.cpp Wed Mar 01 17:53:04 2017 +0000 +++ b/main.cpp Thu Mar 09 15:35:35 2017 +0000 @@ -136,7 +136,11 @@ /*----- Initialization. -----*/ /* Initializing SPI bus. */ +#ifdef TARGET_STM32F429 + DevSPI dev_spi(D11, D12, D13); +#else DevSPI dev_spi(D11, D12, D3); +#endif /* Initializing Motor Control Expansion Board. */ x_nucleo_ihm02a1 = new X_NUCLEO_IHM02A1(&init[0], &init[1], A4, A5, D4, A2, &dev_spi);