2026-01-21 9:19 AM
Hello. I try to start a new project with two non-listed motors in Workbench. I use two gimbal 3-phase BLDC motor with encoder AS5048A https://cdn.sparkfun.com/assets/d/6/b/5/8/27477_27478_Datasheet.pdf Based on the motorShinano.json file, I built my own JSON file, please see below. However, I have the following questions. What to write in the compatibility: "sixStep"? The motor has the encoder. Hence, should TRUE be for HasHallSensor? I use a Pololu power board (voltage regulator) https://www.pololu.com/product/5576 and two Sparkfun 3-phase BLDC motor drivers https://www.sparkfun.com/sparkfun-brushless-motor-driver-3-phase-tmc6300.html . Therefore, what to write for pwr_board? What to write for foc_rate? What to write for acceleration and max_speed_startup? Thank you.
{
"id": "motorSparkfun",
"label": "Sparkfun DM3505/3505EC",
"hardwareFamily": "MOTOR",
"description": "Outer rotor type - 11 poles pairs - brushless DC motor with encoder",
"compatibility": ["FOC", "sixStep"],
"polePairs": 11,
"nominalCurrent": 1.1,
"nominalDCVoltage": 12.0,
"rs": 6.34,
"ls": 1.08,
"magneticStructure": {
"type": "BLDC"
},
"BEmfConstant": 1.23,
"inertia": 56.0,
"friction": 0.04,
"maxRatedSpeed": 1610,
"hasHallSensor": true,
"hallSensor": {
"sensorsDisplacement": 120,
"placementElectricalAngle": 300
},
"hasQuadratureEncoder": true,
"quadratureEncoder": {
"pulsesPerMechanicalRevolution": 16384,
"hasIndexPin": false
},
"motorProfiler": {
"ctrl_board": "NUCLEO-F401RE",
"pwr_board": "???????????",
"operating_condition": {
"cutoff_frequency": 2000,
"pwm_frequency": 20000,
"foc_rate": ????
},
"mechanical": {
"acceleration": ?????,
"max_speed_startup": ?????
}
}
}
Solved! Go to Solution.
2026-01-26 12:31 AM
Hello @Boris_L,
I made a mistake. You can remove hasHallSensor and hallSensor{}.
2026-01-22 12:42 AM
Hello @Boris_L,
If you want to select "FOC" or "sixStep" algorithm, "compatibility" is correctly set.
"motorProfiler{}" is not required, you can remove it.
The "hasQuadratureEncoder" and "quadratureEncoder{}" parameters can be removed if you do not have a quadrature encoder.
One point: For the "magneticStructure" type, use "SM-PMSM" or "I-PMSM".
2026-01-23 10:26 AM
Hello GMA,
I do not use Hall sensor. I use the encoder AS5048A. Can I remove the Hall section in my code? Thank you.
2026-01-26 12:31 AM
Hello @Boris_L,
I made a mistake. You can remove hasHallSensor and hallSensor{}.