# ZhuYanzhen1/miniFOC

你还在为有刷电机的高噪声、低响应速度和低寿命而烦恼吗？这个项目是一个20块钱就能搞定的FOC无刷电机控制方案！This project is a FOC (Field Oriented Control) BLDC Motor control scheme that can be done for 3$!

Repository: https://github.com/ZhuYanzhen1/miniFOC
Canonical: https://ross.abutalabs.com/products/minifoc
Homepage: https://zhuyanzhen1.github.io/miniFOC/
Language: C++
License: AGPL-3.0
License Family: copyleft
Topics: foc, gd32, bldc, controller
Last push: 2023-11-17T18:14:00+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1846, "days_push": 1020, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1085, forks 276 (observed 2026-08-28T04:03:32.048292+00:00)

## What it is
miniFOC is an open-source Field Oriented Control (FOC) firmware and hardware scheme for brushless DC (BLDC) motors, designed to run on very cheap Chinese-made microcontrollers (GD32) for around $3 in parts. It provides a torque closed-loop controller controllable over a 3-wire UART port, with SVPWM modulation and support for torque, speed, and position control.

## Use cases
- control a brushless motor with FOC on a $3 budget
- replace noisy brushed motor drivers with quiet BLDC control
- drive a BLDC motor via UART commands
- implement torque closed-loop control for a gimbal or robot motor
- learn how field oriented control works on embedded hardware
- build low-cost motor controllers for robotics projects

## When to choose
- you need extremely low-cost FOC motor control hardware and firmware
- you want quiet, efficient BLDC control instead of brushed motors or ESCs
- you are working with GD32/STM32-class MCUs and UART-based motor control
- you want an open-source (AGPL-3.0) alternative to SimpleFOC or ODrive for simple torque control

## When to avoid
- you need sensorless FOC or current-loop control today (V2 is still in development)
- you need a mature, production-grade controller like ODrive with extensive community support
- your project requires position/speed closed-loop out of the box without additional tuning
- AGPL-3.0 licensing is incompatible with your product

## Facets
- artifact type: library
- maturity: active
- function: embedded
- domain: robotics, embedded-systems, hardware
- platform: embedded, c, cpp
- tags: foc, bldc, motor-control, gd32, svpwm, low-cost, firmware, control

## Member repositories
- ZhuYanzhen1/miniFOC (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.048292+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:42.034370+00:00, confidence not recorded.
  - readme: https://github.com/ZhuYanzhen1/miniFOC (fetched 2026-08-28T04:03:32.048292+00:00, sha f8b8f125c304)
  - homepage: https://zhuyanzhen1.github.io/miniFOC/ (fetched 2026-08-29T12:52:22.067331+00:00, sha 9e28490d3d66)
- Data as of 2026-08-30T08:39:29.467469+00:00.
