You are here

Safe Start of Hoverboard Motor

2 posts / 0 new
Last post
marc.s.cohn@gma...
Offline
Last seen: 4 years 4 months ago
Joined: 2020-06-29 22:28
Posts: 4
Safe Start of Hoverboard Motor

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.

 

 

pf26
Offline
Last seen: 3 weeks 5 days ago
VESC FreeVESC Silver
Joined: 2018-12-04 08:44
Posts: 53

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)