Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library

Results 147 Arduino-FOC issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Stepper motor does not respond to voltages below 3V. On all the control methods, for voltages below 3V, the stepper does not turn, hence it is not...

enhancement

This is a simplified template, feel free to change it if it does not fit your case. **Describe the bug** The motor stops sometimes when it changes direction. The calculated...

possible bug

Two recent problems in the forum related to AS5048A and MagneticSensorSPI: > This turned out to be the key: when I changed my code to use the 5147 default config...

**Describe the bug** .pio\libdeps\genericSTM32F103ZE\Simple FOC\src\current_sense\hardware_specific\stm32\stm32f1\stm32f1_hal.cpp: In function 'uint32_t _timerToRegularTRGO(HardwareTimer*)': .pio\libdeps\genericSTM32F103ZE\Simple FOC\src\current_sense\hardware_specific\stm32\stm32f1\stm32f1_hal.cpp:36:12: error: 'ADC_EXTERNALTRIGINJECCONV_T8_TRGO' was not declared in this scope; did you mean 'ADC_EXTERNALTRIGINJECCONV_T1_TRGO'? 36 | return ADC_EXTERNALTRIGINJECCONV_T8_TRGO; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |...

bug

Hi, I get a compile error when I compile the Encoder example with an Arduino Mega 2560 board [Arduino-FOC/examples/utils/sensor_test/encoder/encoder_example/](https://github.com/simplefoc/Arduino-FOC/tree/master/examples/utils/sensor_test/encoder/encoder_example) I'm on version Simple Foc version 2.2.2. It says: ``` /...../Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/atmega2560_mcu.cpp:...

bug

I am trying to run a stepper motor. I initially setup a magnetic sensor. But switch to open loop as a first test, and It runs ok with a velocity...

enhancement

st = _sin(angle); ct = _cos(angle); Cache the results of trigonometric functions? Angle does not change between samples。 Clarke transform:src\BLDCMotor.cpp Line 546. Inverse clarke transform:src\common\base_classes\CurrentSense.cpp Line 42. // function approximating...

enhancement

Initial support for the esp8266 is implemented but we would need some help with testing. If someone has used it or is motivated to do some testing we would love...

help wanted
question

Not sure if this issue is platformIO-specific, or also occurs in ArduinoIDE... It is found by forum user dikafoc, and described here: https://community.simplefoc.com/t/b-g431b-esc1-beginner-guide-i2c-guide/515/46?u=runger I have confirmed it also occurs on...

There is a problem in stm32g4_mcu.cpp in the current sense: in the function: ``` float _readADCVoltageInline(const int pin){ uint32_t raw_adc = 0; if(pin == PA2) // = ADC1_IN3 = phase...