Skip to content

Releases: simplefoc/Arduino-FOC

v2.1

04 Mar 20:52
Compare
Choose a tag to compare

SimpleFOClibrary v2.1

  • Initial current sensing support🎉
    • Inline current sensors
    • adaptive zero finding and shunt direction
  • Implemented real torque control
    • using voltage
    • using current magnitude (one current)
    • using FOC currents ( d-q currents ) - real foc control
  • SVPWM full implementation d+q axis
  • Simplified sensor implementation📢
    • For new sensor implementation only one function necessary getAngle()
  • Upgrade of the HallSensor implementation by @owennewo
  • Support for Arduino DUE - everything except the 6PWM mode
  • Support for ATMega328pb
  • bugfix for the Teensy boards ( setting 3pwm )
  • extended support for 2PWM stepper drivers - by @zjor
  • pull request #52
  • included F macro for shrinking string memory usage - moved to programming memory
  • disable phase support for 3pwm driver
    • not yet for 6pwm
  • rewritten initFOC()
    • can be skipped and outputs much more info
    • align sensor: direction + zero offset + pole pair check
    • align current sense
  • sensor offset supported (motor.sensor_offset)
  • refactored motor commands interface
    • much more flexible and easy to extend
    • very easy to add new commands and function callbacks
    • implemented motor+pid+lpf commands of-the-shelf
  • Added step/dir interface
    • integrated as an optional communication channel
  • Added support for samd21 boards by @runger1101001
    • pull request #56

BEWARE 📢 slight API changes included

  • ControlType renamed into MotionControlType
  • ControlType::voltage does not exist any more now - MotionControlType::torque

v2.0.2

22 Dec 18:07
Compare
Choose a tag to compare

SimpleFOClibrary v2.0.2

v2.0.1

06 Dec 17:15
Compare
Choose a tag to compare

SimpleFOClibrary v2.0.1

  • ESP32 bugfix
    • frequency setting
    • pwm resolution
  • 2PWM stepper class added StepperMotor2PWM
  • some refactoring of examples

v2.0

22 Nov 17:15
Compare
Choose a tag to compare

SimpleFOClibrary v2.0

  • 6PWM support
  • Arduino UNO (atmega328)
  • stm32 boards
  • esp32 boards
  • BLDC driver code separated See in docs!
    • BLDC: 6pwm and 3pwm
    • Stepper: 4pwm
    • Hardware specific code in separate files
    • PWM config
  • I2C and SPI sensors multiple busses support by @owennewo See in docs!
  • Hall sensor refactoring @owennewo
  • A lot of refactoring

Experimental features

  • Initial implementation of Block commutation by @owennewo
    • FOCModulationType::Trapezoid_120
    • FOCModulationType::Trapezoid_150
  • Added support for separate setting of Ud and Uq setting.
    • Preparations for current control
    • Working only for SinePWM modulation at the moment

v1.6.1

08 Nov 18:26
0d9156e
Compare
Choose a tag to compare

SimpleFOClibrary v1.6.1

  • Bugfix Teensy hardware config
  • Bugfix ESP32/STM32 pwm frequency
  • Bugfix SPI bitmask by @owennewo
  • Fix - wrong library version in library.properties

v1.6.0

11 Oct 08:54
Compare
Choose a tag to compare

SimpleFOClibrary version 1.6.0

  • Stepper motor FOC support 🎨🎉 🎊
    • Very easy to use and results are great, I love it!
    • backdrivable,
    • no losing steps
    • short demo youtube video
  • Pull requests by @cousinitt
    • refactoring and c++11 improvements
    • pid + low pass filter refactoring
  • Extended configurability of the sensor classes @owennewo
    • clock frequency
    • pinout configuration
    • quick config constructors
  • configurable pwm frequency by Jürgen Frisch
    • stm32,teensy,eps32 - not for Arduino
    • stm32 added 12bit pwm resolution
  • Teensy support by Christopher Parrott
  • Huge refactoring done in the library 😄

v1.5.0

06 Sep 18:32
Compare
Choose a tag to compare

SimpleFOClibrary version 1.5.0

Features:

  • Open-loop motor control
  • Support Hall sensors
  • Support for Analog interface Magnetic sensor
  • New alignment procedure
    • automatic sensor direction detection
    • possibility to avoid alignment completely
  • PI controller updated to PID controller
  • Alignment and cogging test
  • Refactored voltage and velocity limits
    • Introduced absolute voltage limit

BUGFIXES:

  • Space vector calculation
  • time measurement - two times _micros() call

Big thanks to @owennewo for awesome suggestions and pull-requests!

v1.4.1

10 Aug 18:10
Compare
Choose a tag to compare

SimpleFOClibrary version v1.4.1

  • implemented ESP32 support
    • possible to run 4 motors
    • documentation provided
    • examples added
  • moved hardware writing of PWM to FOCutils such as analogWrite()
  • shrunk monitoring and motor commands prints due to the memory issues

v1.4.0

01 Aug 07:13
Compare
Choose a tag to compare

SimpleFOClibrary version 1.4.0

  • Implemented I2C communication for Magnetic sensors
  • Renamed MagneticSensor class and divided to MagneticSensorSPI and MagneticSensorI2C
  • Fully documentation provided

v1.3.1

22 Jul 16:42
8251d8b
Compare
Choose a tag to compare

SimpleFOC library version 1.3.1