2025-01-02 09:33 PM - edited 2025-01-02 09:37 PM
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
Solved! Go to Solution.
2025-01-03 01:12 AM
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
2025-01-03 12:42 AM
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
2025-01-03 01:04 AM
2025-01-03 01:12 AM
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
2025-01-03 02:16 AM
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
2025-01-03 02:39 AM
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
2025-01-03 02:46 AM
Hi Scott,
You're welcome! Good news, I'm happy to hear that it works now.
Best regards,
Fouad