I am using VESC 4.12 with a hoverboard motor to provide force feedback steering for racing simulator. The VESC is powered with a 24V power supply, and controled via PWM signal from an Arduino Leonardo board in duty cycle mode. All works well with the exception when I power up the VESC by plugging in the power supply, I get a sharp movement of the motor about 3 seconds after power up. This happens weather I have the ESC connected to the PWM signal or not. Kind of scary if you have your hands on the wheel when it powers up.
Any ideas on the cause of this, or any settings that can keep this jolt from happening on power up.
You probably use an encoder and position control mode ? Seems like the VESC wants to go to the zero position.. Some ABI encoders only return a valid position once your motor crosses the Index (I) position.. I think you better use an absolute encoder, and possibly a little spring (spiral), to keep the wheel position to zero while idle. Otherwise, you have to make a customs app or change your Arduino code to take the initial position as reference, instead of zero (unless it is already the case)