Introduction to Motion Studio

Spread the love

BasicMicro Motion Studio is the Windows application used to configure, test and tune RoboClaw and MCP series motor controllers. This introduction, the first in a series covering Motion Studio, tours the application’s layout and walks through its most common operations, from connecting a controller to updating firmware and writing settings.

Having a copy of Motion Studio open while reading is recommended. See Installing BasicMicro Motion Studio for installation instructions. This tour shows a RoboClaw connected; some screens and menu items differ when an MCP series controller is attached.

Motion Studio Layout

The Device Status screen is the first screen displayed when Motion Studio starts. The left-hand side of the window is persistent across every screen in the application: the “Attached Devices” window (1) lists any detected RoboClaws, and the button below it (2) reads “Connect Selected Unit” or “Disconnect Selected Unit”, depending on whether a RoboClaw is currently connected. Directly below these is the menu of screens available within the application, outlined in Figure 1. Device Status itself contains a sub-section for updating the connected RoboClaw’s firmware, along with indicators for its warning and error states.

You must select the attached RoboClaw in the “Attached Devices” window (1), then click “Connect Selected Unit” (2) to connect to the RoboClaw before any screens will display data from the attached RoboClaw.

BasicMicro Motion Studio window with arrows indicating the Attached Devices window and the Connect Selected Unit button, and the screen options menu outlined

Figure 1: The Motion Studio layout: (1) the Attached Devices window, (2) the Connect Selected Unit button, and the screen options menu, outlined on the left.

Status Bars

Motion Studio has two status bars, both visible regardless of the sub-section of the application being used. The status bar across the top of the window reports aspects of the currently connected RoboClaw: board temperature, motor channel current, encoder counts, motor speed, main battery voltage, logic battery voltage, and firmware and hardware version information. The status bar at the bottom of the application displays warnings and error conditions for the connected RoboClaw. A full listing of these states can be seen in the “Device Status” section of the application.

BasicMicro Motion Studio window with the top and bottom status bars outlined

Figure 2: Location of the top and bottom status bars.

General Settings

The General Settings section of Motion Studio is where the majority of the RoboClaw’s configuration options are found, organized into seven sub-sections. “General” (1) holds the main setup options, including the control mode selection and options related to multi-unit operation. “Serial” (2) configures serial communications: the packet serial address, baudrate and communication timeout. “Battery” (3) sets the voltage limits for the main and logic batteries, including cutoff presets for common LiPo cell counts. “Encoders” (4) sets the encoder type and direction for each motor channel. “RC/Analog Options” (5) contains options specific to the RC and Analog control modes. Here mixing can be enabled for differential drive robots and exponential can be applied to allow for easier low speed control. “Motors” (6) sets the maximum current for each motor channel along with default acceleration and deceleration values. Finally, “I/O” (7) assigns alternate functions such as e-stop, limit switches and home switches to pins S3 through S5.

The General Settings screen in BasicMicro Motion Studio with arrows indicating the General, Serial, Battery, Encoders, RC/Analog Options, Motors, and I/O sub-sections

Figure 3: The seven sub-sections of the General Settings screen: (1) General, (2) Serial, (3) Battery, (4) Encoders, (5) RC/Analog Options, (6) Motors, and (7) I/O.

PWM Settings

Clicking “PWM Settings” (2) on the left-hand side of the application opens the PWM Settings screen, used to operate the RoboClaw manually for testing. The “Controls” section (4) provides sliders to run each motor channel forward and reverse by duty cycle, along with options to sync the two sliders and to send commands only when a slider is released. The “PWM/Torque Settings” section (3) holds the motor inductance and resistance values used by MCP series controllers. The graph (1) plots values such as motor speed, current and battery voltage over time, which is useful for testing motors, verifying encoders and determining a motor’s maximum speed (QPPS).

The PWM Settings screen in BasicMicro Motion Studio with arrows indicating the graph, the PWM Settings entry in the screen list, the PWM/Torque Settings section, and the Controls section

Figure 4: The PWM Settings screen: (1) the graph, (2) the PWM Settings entry in the screen list, (3) the PWM/Torque Settings section, and (4) the Controls section.

Velocity Settings

The Velocity Settings screen is opened by clicking “Velocity Settings” (2) on the left-hand side of the application and is used to set the encoder and PID settings for speed control. The “Velocity Settings” section (3) holds the velocity PID values, the QPPS (the motor’s maximum speed in encoder counts per second) and the velocity error limit. The “Control” section (4) provides sliders to run each motor at a commanded speed and contains the auto-tuning controls for both channels. As with the PWM Settings screen, the graph (1) plots motor and controller values over time for testing and tuning.

The Velocity Settings screen in BasicMicro Motion Studio with arrows indicating the graph, the Velocity Settings entry in the screen list, the Velocity Settings section, and the Control section

Figure 5: The Velocity Settings screen: (1) the graph, (2) the Velocity Settings entry in the screen list, (3) the Velocity Settings section, and (4) the Control section.

Position Settings

Clicking “Position Settings” (2) on the left-hand side of the application opens the screen used to set the encoder and PID settings for position control. The “Position Settings” section (3) contains both the velocity PID values and the position PID values, along with limits such as the deadzone and the minimum and maximum encoder positions. The “Control” section (4) moves each motor to a commanded position, with settable acceleration and deceleration. Before using this screen the motor and encoder combination must be tuned for velocity in the “Velocity Settings” screen. The graph (1) plots position, speed and other values to use alongside the tuning routines.

The Position Settings screen in BasicMicro Motion Studio with arrows indicating the graph, the Position Settings entry in the screen list, the Position Settings section, and the Control section

Figure 6: The Position Settings screen: (1) the graph, (2) the Position Settings entry in the screen list, (3) the Position Settings section, and (4) the Control section.

Connecting and Disconnecting a RoboClaw

After starting Motion Studio a RoboClaw must be connected to the application. The “Attached Devices” window (1) in the upper left-hand corner shows all of the RoboClaws visible to Motion Studio. To connect a RoboClaw, select it in the list and click “Connect Selected Unit” (2). The “Stat1” LED on the RoboClaw will flash rapidly while it is connected to Motion Studio. To disconnect the RoboClaw, click the same button (2), now labeled “Disconnect Selected Unit”.

BasicMicro Motion Studio window with arrows indicating the Attached Devices window and the Connect Selected Unit button

Figure 7: (1) the Attached Devices window and (2) the Connect Selected Unit button, used to connect and disconnect a RoboClaw.

Updating Firmware

The firmware on a RoboClaw can be updated from inside Motion Studio. When connecting a RoboClaw, Motion Studio may open a pop-up dialog offering to update the firmware; you can proceed from that dialog or start the update manually at any time.

To update manually, click “Device Status” on the left-hand side of the application and locate the section labeled “Firmware”. Two fields at the top of this section show the current RoboClaw firmware version and the latest version available from BasicMicro. If the versions differ, click the “Update Firmware” button (1). A dialog box with information on the new firmware will open; click “OK” and the update process will start. Do not interrupt this process.

The RoboClaw will disappear from the list of attached devices and reappear once the process completes. After updating the firmware, reconnect the RoboClaw by clicking “Connect Selected Unit” to continue using Motion Studio.

BasicMicro Motion Studio window with an arrow indicating the Update Firmware button

Figure 8: Location of the Update Firmware button.

Write Settings to Board

After making changes to the settings in Motion Studio, the changes must be written to the motor controller. Click “Device” in the menu at the top of the application, then click “Write Settings” (1). Once the settings have been written to the board, Motion Studio resets the controller automatically. The RoboClaw can then be disconnected from Motion Studio.

The Device menu open in BasicMicro Motion Studio with an arrow indicating the Write Settings option

Figure 9: Location of the Write Settings option in the Device menu.

Restoring Default Values

An attached RoboClaw can be set back to its factory settings easily. Click “Device” in the menu at the top of the application, then click “Restore Defaults” (1).

The Device menu open in BasicMicro Motion Studio with an arrow indicating the Restore Defaults option

Figure 10: Location of the Restore Defaults option in the Device menu.

Read Settings

Read Settings loads the settings currently written on the connected RoboClaw back into Motion Studio. This is useful if you make a mistake while changing settings and want to return to the values stored on the board. Click “Device” in the menu at the top of the application, then click “Read Settings” (1).

The Device menu open in BasicMicro Motion Studio with an arrow indicating the Read Settings option

Figure 11: Location of the Read Settings option in the Device menu.

Save and Load Configuration Settings

The settings for the RoboClaw can be saved to a file and restored later. All of the options for this are found in the “File” menu (1) at the top of the application. To save the current settings, click “Save Settings”, choose a file location and name in the dialog that opens, and click “Save”. To load settings from a file, click “Load Settings”, select the file in the dialog, and click “Open”. Previously used settings files can also be loaded quickly from the “Recent Settings” entry.

The File menu open in BasicMicro Motion Studio showing the Load Settings, Save Settings, and Recent Settings options

Figure 12: The File menu, containing the Load Settings, Save Settings, and Recent Settings options.

Stop All Button

The “Stop All” button (1) in the lower left-hand corner of the application is used to stop both motors quickly and easily. Clicking the button stops both motors. There is also a checkbox that, if checked, allows the space bar to be used as an alternative to clicking the button.

BasicMicro Motion Studio window with an arrow indicating the Stop All button

Figure 13: Location of the Stop All button.

Next Steps

Each of the main screens introduced in this tour is covered in depth in its own article:

For more on Motion Studio’s tools and configuration options, see: