
SimpleFOC supports a wide range of
microcontroller types. Currently all the MCUs
used by Arduino are supported except the new
Arduino Nano Matter. STM32 (Nucleo boards) and
ESP32 MCUs (Nano ESP32) are best supported,
and other supported MCUs include RP2040,
RP2350 (Pico and Pico2), ATmega (Arduino Uno
and Arduino Nano), SAMD21 (Nano BLE Sense),
SAMD51 (Adafruit Metro M4), Renesas R4M1
(Uno R4), nRF52 (Nano IoT), and NXP iMXRT1062
(Teensy).
The code in Figure
B
is all you need to run a
brushless motor in open loop mode. Open loop is
suitable for some simple use cases, but usually
closed loop control is what you’re aiming for.
Open loop will ...