cancel
Showing results for 
Search instead for 
Did you mean: 

Quadrature Encoder/Hall Sensor greyed out in Speed Sensing Selection

Scopi
Associate II

Hi there,

I cannot seem to enable a hall sensor or quadrature encoder in motor control workbench.

Motor control board: X-NUCLEO-IHM08M1

MCU: NUCLEO-G474RE

MC workbench version: 6.3.2

CubeMX version: 6.13.0

I have checked the 'connectionparameters.json' file; pwm appears to be on TIM1, encoder is allowed on TIM[2-7].

CubeMx flags no issues were I to select TIM[3,4,6,7]. I tried enabling encoder operation on TIM3 in CubeMx and that part seemed to take, but the workbench still has the option greyed out.

Cheers,
Scott

1 ACCEPTED SOLUTION

Accepted Solutions
FouadB
ST Employee

Hi Scott,

Thank you for sharing your IOC file. Could you please also share your workbench *.stwb6 file used to generate your project?

Best regards,
Fouad

If you agree with my answer, please accept it by clicking on 'Accept as solution'."

View solution in original post

6 REPLIES 6
FouadB
ST Employee

Hello Scott,

Based on your motor configuration, you have correctly enabled the encoder, so you should be able to select "Quadrature Encoder" in the Speed Sensing Selection.
Could you please share your workbench file?

Best regards,
Fouad

If you agree with my answer, please accept it by clicking on 'Accept as solution'."

Hi Fouad,

I've attached the .ioc file, is there any other file that might be of use?

FouadB
ST Employee

Hi Scott,

Thank you for sharing your IOC file. Could you please also share your workbench *.stwb6 file used to generate your project?

Best regards,
Fouad

If you agree with my answer, please accept it by clicking on 'Accept as solution'."
Scopi
Associate II

Hi Fouad,

This may be the issue. There is no .stwb6 file. The project was copied into git at some point and that file did not come across. 

I'll try making a new project from scratch, and if the same issue presents I'll post back in this thread with the new .stwb6 file.

 

Cheers,
Scott

Scopi
Associate II

Confirmed; creating a new workbench and associated stwb6 file with the same options, and all is well.

I had been opening the .ioc file with motor control workbench and making changes / generating code, and as it seemed to be working & the changes were reflected in the generated code I was unaware I was using an incorrect file.

Thanks for your time,

Scott

 

Hi Scott,

You're welcome! Good news, I'm happy to hear that it works now.

Best regards,
Fouad

If you agree with my answer, please accept it by clicking on 'Accept as solution'."