Skip to main content
DMeie.2
Associate III
January 29, 2024
Solved

Cannot choose HallEffectSensor

  • January 29, 2024
  • 2 replies
  • 1624 views

I'm trying to set up a custom board based on the B-G431-ESC1, with the MC Workbench and the SDK Version 6.2.1.

My intention is to use sensorless for development and then have the option to switch to sensored (Hall, Encoder) in the future.

I set up the board accordingly in the Board Manager, here is the relating section of the config:

{
 "name": "SpeedAndPositionSensing",
 "type": "SpeedAndPositionSensing",
 "hwVariants": [
	{
	 "type": "HallEffectSensor",
	 "help": "SW 9 and 16 to consider",
	 "signals": {
		"HALLSENSOR_H1": [
		 {
			"name": "PB6",
			"help": "",
			"cost": 0
		 }
		],
		"HALLSENSOR_H2": [
		 {
			"name": "PB7",
			"help": "",
			"cost": 0
		 }
		],
		"HALLSENSOR_H3": [
		 {
			"name": "PB8-BOOT0",
			"help": "",
			"cost": 0
		 }
		]
	 }
	},
	{
	 "type": "QuadratureEncoderRelative",
	 "help": "SW 9 and 16 to consider",
	 "signals": {
		"QENC_A": [
		 {
			"name": "PB6",
			"help": "",
			"cost": 0
		 }
		],
		"QENC_B": [
		 {
			"name": "PB7",
			"help": "",
			"cost": 0
		 }
		]
	 }
	},
	{
	 "type": "QuadratureEncoderAbsolute",
	 "help": "SW 9 and 16 to consider",
	 "signals": {
		"QENC_A": [
		 {
			"name": "PB6",
			"help": "",
			"cost": 0
		 }
		],
		"QENC_B": [
		 {
			"name": "PB7",
			"help": "",
			"cost": 0
		 }
		],
		"QENC_Z": [
		 {
			"name": "PB8-BOOT0",
			"help": "",
			"cost": 0
		 }
		]
	 }
	}
 ]
}

 

However, inside the MC Workbench I can only choose between the two observer option.
None of the hall options show up, neither as the main nor the auxiliary sensor (in this context they're greyed out and cannot be chosen).
There is no message as to why this is the case either.

Best answer by cedric H

Hello @DMeie.2,

Are the hall sensors configured in the motor section ?

cedricH_0-1706542112651.png

Regards

Cedric

2 replies

cedric H
cedric HBest answer
Technical Moderator
January 29, 2024

Hello @DMeie.2,

Are the hall sensors configured in the motor section ?

cedricH_0-1706542112651.png

Regards

Cedric

Associate II
February 14, 2024

Even after selecting hall sensor option in motor section, iam unable to select hall sensor option in speed control , can anyone help me .

 

 

Iam using nucleo f030r8 with custom motor driver and a hall sensor based motor

Associate II
November 25, 2024

Almost same situation here (stm32g491 with custom motor driver and quadrature encoder). 
Did you find a solution for this? 
I've double checked that the motor is correctly setup (encoder enabled) and that the board has the 

QuadratureEncoder variant added in the config.
DMeie.2
DMeie.2Author
Associate III
January 29, 2024

Thanks, that worked!
So it depends on the motor configuration as well. Makes sense.