You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

Learning how to use the Moteus BLDC controller

The EIL5 of communication with the Moteus

There are two protocol's at play with the Moteus you need to be aware of:

  1. Diagnostic: This is used by the tview and moteus_tool applications and is of the text form d pos
    • Calibration of the motor used with the Moteus as of 05/04/2023 still requires the moteus_tool you cannot calibrate the motor from within your application.
    • conf write will persist the configuration you have set in tview to the motor controller. It's the easiest way to change the gains you or whatever.
    • Getting Started with the DevKit Has a great explaination of a lot of the tools.
  2. Register: This is the protocol used under the hood with the Python library. It read/writes to registers on the Micro over CANBus FD.
    • BE AWARE: There is a watchdog timer set per servo that defaults to servo.default_timeout_s=0.1. This means that you you need to send a valid command at least every 100ms or you will trip the fault state. TODO add how to get out of fault state. END TODO. YOu can change this value in tview and persist with conf write or you can can use watchdog_timeout kwarg in the set_postion command. ALSO! You can use diagnotic protocol from python programs to programtically set it #TODO add an example python file showing how to do this END TODO#.

Firmware updates

Firmware updates will unlock newer features of the boards. Follow these instructions https://github.com/mjbots/moteus/blob/main/docs/reference.md#flashing-over-can when you need to upgrade the controllers.