Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
Some of the most important features:
Full Changelog: https://github.com/simplefoc/Arduino-FOC/compare/v2.3.2...v2.3.3
Commander
#233
MagneticSensorPWM
multiple occasions - #258
InlineCurrentSense
and LowsideCurrentSense
constructor using milliVolts per Amp #253
BLDCMotor
and StepperMotor
constructors to receive the inductance paramerermotor.phase_inductance
or through Commander
StepperDriver4PWM
wrong init #182
StepDirListener
improved timing #169, #209
HallSensor
velocity calculation fix #192
setPhaseVoltage
is now public functiongetVelocity
can now be called as many times as necessary - see in docs
min_elapsed_time
- default 0.1msHallSensor
velocity calculation outlier removal using max expected velocity velocity_max
- see in docs
LowsideCurrentSense
class! - see in docs
initFOC
fails if current sense not initialised - see in docs
initFOC
to start - see in docs
cs.init()
and driver.init()
return 1
if well initialised and 0
if failedlinkDriver()
- see in docsvoltage_limit
when provided phase_resistance
@byDagorhall_sensor
examples @owennewoMagneticSensorPWM
pulseln
Commander
interface
WC
WT
Pullup::EXTERN
and Pullup::INTERN
to Pullup::USE_EXTERN
and Pullup::USE_INTERN
getAngle()
initFOC()
motor.sensor_offset
)BEWARE 📢 slight API changes included
ControlType
renamed into MotionControlType
ControlType::voltage
does not exist any more now - MotionControlType::torque