You are here

FOC observer error.

5 posts / 0 new
Last post
Roger Wolff
Offline
Last seen: 2 years 4 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202
FOC observer error.

HI, 

I have an E-bike motor  with hall sensors, and I just detected and installed FOC mode. A little testing shows that sometimes it doesn't start. As this is just for a test, that is fine with me. 

I then made the motor turn and got a sample from the "sampled data" tab. What suprisded me is the quality of the BEMF that was measured, and the wrong-ness of the FOC position estimation.... 

 

 

This would explain why the duty-cycle-following at low RPM sometimes drops to the opposite sign. But the "source data" looks quite good to me, so why would the observer guess that the motor is running backwards?

 

ESCam
Offline
Last seen: 2 years 2 months ago
Joined: 2018-10-22 23:31
Posts: 24

Did you ever figure this out? I have similar issues where the motor will start 90% the correct direction, but 10% of the time it will cog backwards at a high current. 

TechAUmNu
Offline
Last seen: 3 weeks 4 days ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

Those BEMF plots look horrible. Starting issues are normally when your motor settings are wrong. Put some resistance on the motor so it is hard to start and tweak the settings till it works.

Roger Wolff
Offline
Last seen: 2 years 4 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202

The BEMF signals look "very nice" to me. The three phases are nicely sinusoidal. It is that the phase detection that doesn't work that suprises me. 

No, I have not figured things out. 

district9prawn
Offline
Last seen: 1 year 10 months ago
Joined: 2018-04-26 12:18
Posts: 123

How did you get that bemf plot? Shouldn't the bemf plot in foc be a mess of pwm spikes?