cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot choose HallEffectSensor

DMeie.2
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
cedric H
ST Employee

Hello @DMeie.2,

Are the hall sensors configured in the motor section ?

cedricH_0-1706542112651.png

Regards

Cedric

View solution in original post

3 REPLIES 3
cedric H
ST Employee

Hello @DMeie.2,

Are the hall sensors configured in the motor section ?

cedricH_0-1706542112651.png

Regards

Cedric

DMeie.2
Senior

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

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