Skip to content

SimpleFOC

  • Software
  • Robot arms and industry
  • Library

An Arduino-compatible library implementing Field Oriented Control for controlling brushless DC and stepper motors across many microcontroller families.

Source on GitHub: github.com/simplefoc/Arduino-FOC (opens in a new tab). Facts read at commit b3d8f39 (opens in a new tab).

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit b3d8f39 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

What it does

  • Provides FOC control for BLDC and stepper motors, aimed at supporting many motor, sensor, driver and microcontroller combinations.
  • Installable through the Arduino IDE Library Manager, PlatformIO, or by cloning the repository.
  • Supports velocity, position and torque control modes, including open-loop, closed-loop, and estimated-current control.
  • Runs on Arduino boards, STM32, ESP32, Teensy, RP2040/RP2350, SAMD, MBED and Silabs microcontrollers.
  • Includes a configuration and monitoring GUI tool, SimpleFOCStudio, for real-time tuning and monitoring over serial.
  • Offers example sketches, such as a velocity control example for a BLDC motor with an encoder.

Written by Robotheca from the project's README (opens in a new tab) at commit b3d8f39.

Getting started

Difficulty
Intermediate

Maintenance

Status
Active: a commit in the last 90 days
Newest commit
4 Oct 2026 on master
Latest release
v2.4.0 (19 Feb 2026)

Checked on GitHub on 16 Oct 2026.

Robots on Robotheca that use it

No robot on Robotheca is linked to it yet. Links come from a robot's robot.yaml, from its dependency files read as text, or from Robotheca's editors.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.