Skip to main content
LYS
Associate II
April 27, 2021
Solved

Can I use Position control with Hall Sensor with SPIN-3201?

  • April 27, 2021
  • 2 replies
  • 1551 views

Hi, I am new to the Motion Control system.

and I have SPIN-3201 with a BLDC motor.

It is hard to apply ST Motor Control Workbench 5.4.6.

because the version of STM32CubeIDE and some Setting of the Project(error of FOC duration and Start-up failure)

anyway, my motor can run with Speed Control now.

Now, I want to use Position Control Mode and there is good material "AN5464".

but in the document "Quadrature encoder" is mentioned.

As the title, Can I use Position control with Hall sensor with SPIN-3201?

Best Regards

LYS

This topic has been closed for replies.
Best answer by Cristiana SCARAMEL

Hi @LYS​,

the Workbench is right :grinning_face_with_sweat:

I have describe the setting for the "Speed feedback" with Hall sensors (I edited the previous post to avoid misunderstanding).

The answer is: you can use the Position Control Mode only with Quadrature Encoder sensor.

You cannot use the Hall sensors due to low positioning resolution.

2 replies

Cristiana SCARAMEL
Technical Moderator
April 27, 2021

Hi @LYS​,

yes it is possible to use the STEVAL-SPIN3201 with Hall sensors for the position speed feedback.

You have to set the correct Sensor selection in the “Speed Sensing�? window:

0693W00000AMbpyQAD.pngand then in the "Digital I/O" → Hall sensor interface set the proper Pin Map:

0693W00000AMbtbQAD.pngFor more details I suggest to refer to the dedicated user manual UM2168 Using STM32 motor control workbench with STSPIN32F0 and STSPIN32F0A

Concerning to the hardware setting you can refer to the UM2154

Let me know if my reply fully answered your question, if so please "Select as Best" button.

[Edited: refer to my next post]

"If you feel a post has answered your question, please click ""Accept as Solution"""
LYS
LYSAuthor
Associate II
April 28, 2021

Hi, Cristiana SCARAMEL

Thank you for the reply.

Your Information is good for me but there is one problem.

Here is My setting

0693W00000AMiAdQAL.jpg0693W00000AMiAsQAL.jpg0693W00000AMiAxQAL.jpg 

but an Error message is displayed.

" Position Control need to have the 'main speed sensor' set to 'Quadrature Encoder sensor' "

0693W00000AMiBlQAL.jpg 

Is there more setting am I have to do?

Best Regards

LYS

Cristiana SCARAMEL
Technical Moderator
April 29, 2021

Hi @LYS​,

the Workbench is right :grinning_face_with_sweat:

I have describe the setting for the "Speed feedback" with Hall sensors (I edited the previous post to avoid misunderstanding).

The answer is: you can use the Position Control Mode only with Quadrature Encoder sensor.

You cannot use the Hall sensors due to low positioning resolution.

"If you feel a post has answered your question, please click ""Accept as Solution"""
Laurent Ca...
Senior III
June 1, 2021

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 SDK). 

Best regards

Laurent Ca...