About Single Resistor Sampling FOC. Is there any documentation? Can the program code be made public?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
songzaiwu
Level 3
Level 3
50 sign-ins 10 questions asked 25 sign-ins

About Single Resistor Sampling FOC. Is there any documentation? Can the program code be made public?

1111.png

0 Likes
1 Solution
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi @songzaiwu,

Please refer to section 5.6 of the CY8CKIT-037 PSoC 4 Motor Control Evaluation Kit User Guide. It explains the Single Shunt FOC implementation.

The code example is available under the software tab of the CY8CKIT-037 web page.

Please, let us know if you have further questions.

Thank you

Best Regards

Raj Chaudhari

View solution in original post

0 Likes
5 Replies
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi @songzaiwu,

Please refer to section 5.6 of the CY8CKIT-037 PSoC 4 Motor Control Evaluation Kit User Guide. It explains the Single Shunt FOC implementation.

The code example is available under the software tab of the CY8CKIT-037 web page.

Please, let us know if you have further questions.

Thank you

Best Regards

Raj Chaudhari

0 Likes

What if the sampling time is very close?

11111.png

0 Likes
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi @songzaiwu,

As per the CY8CKIT-037 PSoC 4 Motor Control Evaluation Kit User Guide. 

Raj_JC_0-1660215008798.png

 

The reason to trigger the ADC sampling in the middle of the pulse is to avoid the transient noise caused when the PWM signal changes state. In the middle of the pulse, it will be more stable.

So, it is not recommended to trigger pulse for the sampling other than mentioned in the document.

Please, let us know if you have further questions.

Thank you

Best Regards

Raj Chaudhari

0 Likes
songzaiwu
Level 3
Level 3
50 sign-ins 10 questions asked 25 sign-ins

If T1/2 or T2/2 is less than the minimum sampling time, then the sampling is not correct, how does the program handle it?

0 Likes
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi @songzaiwu,

The value of T1/2 and T2/2 are computed every cycle based on previous data values. Hence the particular scenario under consideration may not occur. We would like to know if any specific case is observed during the development stage at your end.

Thank you

Best Regards

Raj Chaudhari

0 Likes