is anything wrong in my invert.json?
I'm working on a custmoize inverter board .
and I wan't to use Three-Shunt variants for current sensing, I implemented it in hwVariants, according to the documentation.
See the following :
{
"type": "inverter",
"name": "testNow",
"descVersion": 4,
"contentVersion": "1.1",
"PN": "testNow",
"longDescription": "",
"shortDescription": "",
"link": "",
"mcu": "STM32F303RCTx",
"clockSource": "8_crystal",
"clockFrequency": 72,
"motorDrives": [
{
"name": "M1",
"maxRatedVoltage": 600,
"minRatedVoltage": 300,
"maxRatedCurrent": 10,
"features": [
{
"name": "CurrentSensing",
"type": "CurrentSensing",
"tRise": 2550,
"hwVariants": [
{
"type": "ThreeShunt_AmplifiedCurrents",
"help": " ",
"shuntResistor": 0.01,
"amplifyingNetworkImax": 9,
"amplifyingNetworkVm": 3.3,
"amplifyingNetworkPrating": 2.0,
"offsetNetworkAttenuation": 1,
"opAmpGain": 2,
"polarizationOffset": 1.86,
"signals": {
"CURRENT_AMPL_U": [
{
"name": "PA7",
"help": "",
"cost": 0
}
],
"CURRENT_AMPL_V": [
{
"name": "PA6",
"help": "",
"cost": 0
}
],
"CURRENT_AMPL_W": [
{
"name": "PA3",
"help": "",
"cost": 0
}
]
}
},
{
"type": "SingleShunt_AmplifiedCurrents",
"help": " ",
"shuntResistor": 0.01,
"amplifyingNetworkImax": 9,
"amplifyingNetworkVm": 3.3,
"amplifyingNetworkPrating": 2.0,
"offsetNetworkAttenuation": 1,
"opAmpGain": 2,
"polarizationOffset": 1.86,
"signals": {
"CURRENT_AMPL": [
{
"name": "PA2",
"help": "",
"cost": 0
}
]
}
}
]
},
{
"name": "PhaseVoltageGeneration",
"type": "PhaseVoltageGeneration",
"driverName": "",
"driverPN": "",
"minDeadTime": 100,
"maxSwitchingFreq": 100,
"tNoise": 2000,
"hwVariants": [
{
"type": "DrivingHighAndLowSides",
"help": "",
"deadTime": 100,
"highSideSwitchesDrivingPolarity": "Active high",
"lowSideSwitchesDrivingPolarity": "Active high",
"signals": {
"PWM_CHU_H": [
{
"name": "PA8",
"help": "",
"cost": 0
}
],
"PWM_CHV_H": [
{
"name": "PA9",
"help": "",
"cost": 0
}
],
"PWM_CHW_H": [
{
"name": "PA10",
"help": "",
"cost": 0
}
],
"PWM_CHU_L": [
{
"name": "PB13",
"help": "",
"cost": 0
}
],
"PWM_CHV_L": [
{
"name": "PB14",
"help": "",
"cost": 0
}
],
"PWM_CHW_L": [
{
"name": "PB15",
"help": "",
"cost": 0
}
]
}
}
]
},
{
"name": "VBusSensing",
"type": "VBusSensing",
"busVoltageDivider": 136,
"hwVariants": [
{
"type": "VBusSensing",
"help": "",
"signals": {
"VBUS": [
{
"name": "PA1",
"help": "",
"cost": 0
}
]
},
"busVoltageDivider": 136,
"busVoltageDividerR1": 1620,
"busVoltageDividerR2": 12,
"busVoltageDividerR3": null
}
]
}
]
}
],
"features": [
{
"name": "SerialPortCommunication",
"type": "SerialPortCommunication",
"hwVariants": [
{
"type": "Uart2WiresCommunication",
"help": "",
"signals": {
"UART_TX": [
{
"name": "PC10",
"help": "",
"cost": 0
}
],
"UART_RX": [
{
"name": "PC11",
"help": "",
"cost": 0
}
]
}
}
]
}
]
}
and then the picture show in MC Workbench:


only show one shunt Resistor. I don't know what's wrong with it. need to help!!!
