runger1101001

Results 25 issues of runger1101001

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...

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...

Both Encoder and StepDirListener are affected. https://community.simplefoc.com/t/simplefoc-port-on-stm32cubeide-problem/1911/4?u=runger https://community.simplefoc.com/t/communication-error-step-dir/1369/14?u=runger Basically we configure the interrupt for CHANGE, but then use digitalRead() inside the interrupt routine to check the state of the pin....

TIM14/TIM15/TIM16 seem to be a special case, maybe some of the other high-number timers too. They wind up with double the frequency - so the PWM is correct, but with...

bug

Add an option the driver code (3PWMDriver, 6PWMDriver, Stepper?) to prevent 100% duty cycle - some of the more simple driver ICs rely on the high side off-time to charge...

enhancement

Look into this: https://community.simplefoc.com/t/negative-number-of-pole-pairs-in-bldc-motor/1681/7 Alignment seems to fail when the motor only has 1PP

bug

Discussion in forum here: https://community.simplefoc.com/t/b-g431b-esc1-hoverboard-motor-not-working-with-closed-loop-modes/898/18?u=runger Do we want to add a feed-forward controller? discuss and schedule implementation if people agree it's worth it.

question

As per Valentine's suggestion, see: https://community.simplefoc.com/t/kalman-filtering-motor-physics/1119 Just adding this issue so we don't forget :-)

enhancement