This repository provides an implementation of a field oriented control (FOC) scheme for a hybrid stepper motor with an STM32 NUCLEO-L432KC microcontroller board. A schematic of the used driver board can be found in the folder "hardware".
Running the FOC scheme
- set up the hardware (see folder "hardware")
- import the CubeIDE project into CubeIDE
- adjust the macros in the file CubeIDE project/Core/Src/main.c to match the used motor and encoder parameters
- build the project and load it onto the NUCLEO board
Tests, derivations and further informations can be found here.