# peng-zhihui/Ctrl-FOC-Lite

Repository: https://github.com/peng-zhihui/Ctrl-FOC-Lite
Canonical: https://ross.abutalabs.com/products/ctrl-foc-lite
Language: C
License Family: other
Last push: 2022-07-25T06:38:44+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1852, "days_push": 1500, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1296, forks 465 (observed 2026-08-28T04:04:16.577247+00:00)

## What it is
A port of the SimpleFOC field-oriented-control firmware to STM32 HAL with FreeRTOS support, plus a validated evaluation board design (STM32F1). It enables efficient brushless motor control using hardware peripherals like encoder interfaces, DMA, and CAN instead of Arduino abstraction layers.

## Use cases
- control brushless motors with field-oriented control on STM32
- port SimpleFOC to STM32 HAL firmware
- evaluate FOC motor driver hardware before designing a custom board
- learn embedded motor control with FreeRTOS
- extend FOC to multi-channel or high-power motor setups

## When to choose
- you want FOC on STM32 without Arduino overhead
- you need hardware encoder, DMA, or CAN support in your motor control
- you want a reference schematic and firmware for a FOC evaluation board

## When to avoid
- you need a plug-and-play Arduino shield experience
- you target non-STM32 microcontrollers without porting effort
- you need official support or a maintained release cycle

## Facets
- artifact type: library
- maturity: maintenance
- function: embedded, robotics, simulation
- domain: embedded-systems, robotics, hardware
- platform: embedded, cpp, c
- tags: foc, motor-control, stm32, freertos, simplefoc, brushless-motor, hal, evaluation-board

## Member repositories
- peng-zhihui/Ctrl-FOC-Lite (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.577247+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-30T04:53:58.390479+00:00, confidence not recorded.
  - readme: https://github.com/peng-zhihui/Ctrl-FOC-Lite (fetched 2026-08-28T04:04:16.577247+00:00, sha 32d744dd9222)
- Data as of 2026-08-30T08:39:29.467469+00:00.
