Inrush current problem with our bldc driver board

@Aleksandar_Markovic
yes, that’s the problem while debugging, you have to wait till it happens. :face_with_thermometer:

@runger created a bug issue in github Motor stops due to direction change - voltages NaN · Issue #192 · simplefoc/Arduino-FOC · GitHub

Maybe you could post your findings there and assist simpleFOC team find the culprit and fix the issue.

@Adharsh_K You can use SIMPLEFOC_DEBUG("value label: ", val); to output text/variables inside the getVelocity() function. It’s put in use in practice here Arduino-FOC/src/BLDCMotor.cpp at master · simplefoc/Arduino-FOC · GitHub
Debugging | Arduino-FOC

I also have -D SIMPLEFOC_STM32_DEBUG build_flag set in platformio.ini file (I don’t know if it’s necessary).