I’m new to this library and very impressed that it’s very nice software to study FOC.
My setup is this:
Arduino UNO R4 Minima
SimpleFOCShield V2.0.4 (bought from AliExpress)
Iflight GM4108H-120T with magnetic encoder
12V DC power source
In using “examples/motion_control/open_loop_motor_control/open_loop_velocity_example”,
I come to notice that the motor starts to oscillate when “voltage limit” > 3.4 volt.
Below picture is PWM signal at PH_A in TB_M1 connector (yellow) and current signal at C1_OUT (blue). T command is set to 6 rad/s, and L command is set to from 2 to 3.5 volt.
Do you have some idea why this happens?
That is weird. The pwm signal looks like it is wrapping around or something. If the pwm wasn’t odd then i might have said it was over current protection in gate driver.
You talk about voltage_limit but don’t say whether this is motor.voltage_limit or driver.voltage_limit you are changing. it might be worth setting the other or both. (Be careful not to fry your board).
Accidentally I noticed that the power connector is getting loose. As soon as I fix them, PWM signal (yellow) has changed a lot and seems to be reasonable.
The motor still oscillates or sometimes rotates reverse, but I understand this comes from the saturated nonlinear drive signals and can be avoided as long as I keep motor.voltage_limit < driver.voltage_limit/2.