2024-11-25 07:06 AM - last edited on 2024-11-25 07:33 AM by Andrew Neil
[VERSION]: MCSDK v6.3.2
[TOOL]: MC WB (and Board Designer to design the custom inverter board)
[EXPECTED BEHAVIOR]: Quadrature Encoder mode available and selectable in Speed Sensing Mode Selection tab in MC Workbench
[HOW TO REPRODUCE]:
[DETAILS]:
I am trying to use ST Motor Control SDK with a custom inverter board. I have issues selecting Quadrature Encoder mode in Speed Sensing Mode Selection when using my custom inverter board and motor. I have the following config added:
The following is part of motor.json file:
"hasQuadratureEncoder": true,
"quadratureEncoder":
{
"hasIndexPin": true,
"pulsesPerMechanicalRevolution": 4096
}
And in board.json:
"type": "SpeedAndPositionSensing",
"name": "SpeedAndPositionSensing",
"hwVariants":
[
{
"signals":
{
"QENC_A":
[
{
"name": "PB6",
"help": {},
"cost": 0
}
],
"QENC_B":
[
{
"name": "PB8-BOOT0",
"help": {},
"cost": 0
}
],
"QENC_Z":
[
{
"name": "PA0",
"help": {},
"cost": 0
}
]
},
"type": "QuadratureEncoderAbsolute",
"cost": 0
}
]
What did I miss?
I just noticed the following message in the "Project Hw & Info" tab under "Board Connections Messages":
Warnings
CSConnect: ThreeShunt_AmplifiedCurrents DualADCs SharedSignal
CSConnect: ThreeShunt_AmplifiedCurrents DualADCs NoSolution
I would assume this relates to Current Sensing and therefor wouldn't be the reason for the Quadrature Encoder mode not being available.
Attached some screenshots showing config and the drop-down with the option grayed out.