Skip to main content
Associate
November 11, 2024
Solved

MC Workbench6: Import a new motor

  • November 11, 2024
  • 3 replies
  • 1005 views

Dear all,

Background: I am in a student project trying to build a robot for RoboCUP - SSL. We have elected to go with DF45L035048-A from Nanotec. I have not received the motors but I saw that it is possible to import a new motor with a .json file. I know the specifics of the motor (from the datasheet) but I do not know the format of the file.

Question: Is there a template for the .json file that I can use which MC Workbench6 will accept so that I can started even though I do not have the motor?

Kind regards

Best answer by Gael A

Hello Stickkan,

You can also start a project via WorkBench with a completely different motor, then update it in the GUI (motor tab) according to your motor's datasheet, and finally save it as new Motor.

3 replies

Visitor II
November 11, 2024

The basic structure of a .json file for motor parameters might look something like this:

 

{
 "motor": {
 "name": "DF45L035048-A",
 "type": "BLDC",
 "voltage": 48,
 "rated_speed_rpm": 4000,
 "rated_current": 3.5,
 "resistance": 0.8,
 "inductance": 0.0015,
 "torque_constant": 0.045,
 "inertia": 0.000032,
 "pole_pairs": 4,
 "encoder": {
 "type": "incremental",
 "resolution": 4096
 }
 }
}

 

Gael A
Gael ABest answer
ST Employee
November 11, 2024

Hello Stickkan,

You can also start a project via WorkBench with a completely different motor, then update it in the GUI (motor tab) according to your motor's datasheet, and finally save it as new Motor.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
StickkanAuthor
Associate
November 11, 2024

Okay I didn't know that. I will try that!

If it works I will click "Accept as Solution".

Thank you.

StickkanAuthor
Associate
November 11, 2024

Thank you for your response however the MC Workbench didn't except this format.

Please see the screenshot:

Stickkan_0-1731334540338.png

My assumption that it must be .json file is based on the fact that when I click the "Click here to import a new motor" the only file type that I can select is a .json. 

Kind regards