There is a newer version of the record available.

Published July 28, 2025 | Version v2.3.5

SimpleFOC: A Field Oriented Control (FOC) Library for Controlling Brushless Direct Current (BLDC) and Stepper Motors

Description

SimpleFOClibrary v2.3.5

Main features

  • ESP32 bugfix
    • after the low-level API changes in the Arduino-ESP32 core #447
    • Pin is not configured #458
    • C6 MCPWM bugfix #440
  • New fuctionality
    • HybridStepperMotor added to the main library #457 - see in docs
    • Motor characterisation (phase resistance and inductance) #436 - see in docs
  • SAMD21 support for low-side current sensing #479
  • RP2350 support #435 #468
  • STM32
    • New driver code #442
    • Low-side current sensing support for H7 family #/460
  • Docs

See the complete list of bugfixes and new features of v2.3.5 fixes and PRs

What's Changed

  • Add RP2350 support by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/435
  • Fix for MagneticSensorI2C uses incorrect bit mask calculation #402 by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/412
  • Add motor characterisation by @mcells in https://github.com/simplefoc/Arduino-FOC/pull/436
  • ESP32 C6 fix & STM32 new HAL only driver by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/442
  • STM32 HAL-only PWM driver by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/430
  • Current calculation typo in comments by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/449
  • Update esp32_ledc_mcu.cpp to ensure ledc_timer is initialised to a known state (ledc_timer = false) by @rob-deutsch in #447
  • Merge master changes back to dev branch by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/452
  • Feat hybrid stepper to main + implement current sensing for it by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/457
  • Feat current sense check if TRGO set for STM32 by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/456
  • Fix Pin is not configured as analog channel error by @jeremiahrose in https://github.com/simplefoc/Arduino-FOC/pull/458
  • Add support for timer 8 by @jeroenzwan in https://github.com/simplefoc/Arduino-FOC/pull/468
  • use default dir only if sensor not connected by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/459
  • Feat h7 current sensing by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/460
  • Disable allow power down when creating MCPWM timer by @adamgerhant in https://github.com/simplefoc/Arduino-FOC/pull/474
  • Fix lowside sync lost by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/478
  • Feat lowside samd21 by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/479
  • esp32 ledc skips first channel index #471 by @runger1101001 in https://github.com/simplefoc/Arduino-FOC/pull/480
  • Dev to master v2.3.5 by @askuric in https://github.com/simplefoc/Arduino-FOC/pull/481

New Contributors

  • @jeremiahrose made their first contribution in https://github.com/simplefoc/Arduino-FOC/pull/458
  • @jeroenzwan made their first contribution in https://github.com/simplefoc/Arduino-FOC/pull/468
  • @adamgerhant made their first contribution in https://github.com/simplefoc/Arduino-FOC/pull/474

Full Changelog: https://github.com/simplefoc/Arduino-FOC/compare/v2.3.4...v2.3.5

Notes

If you use this software, please cite it as below.

Files

simplefoc/Arduino-FOC-v2.3.5.zip

Files (692.1 kB)

Name Size Download all
md5:32fca3322d637e4d82114652e55929cf
692.1 kB Preview Download

Additional details

Related works