Initial & Encoder Setup

This page covers the first-time setup of a RoboClaw controller and the additional steps required when the system uses encoders.

Initial Setup

RoboClaw offers several control methods, each with specific configuration options. This quickstart guide covers the basic setup process. Most control schemes require minimal configuration, with detailed options covered later in this manual.

  1. Review the Introduction and Hardware Overview sections of this manual.
  2. Size the controller with the motor’s stall current in mind (startup of the motor or high load), which can be much higher than running current. A RoboClaw can drive a motor whose stall current exceeds the controller’s rating only if the system avoids sustained stalls or high load situations. Use sensible acceleration and voltage settings. Otherwise, protection may trip or hardware can be damaged.
  3. Before configuring RoboClaw, make sure a reliable power source is available, such as a fully charged battery. See the Wiring section of this manual for proper wiring instructions.
  4. Configure RoboClaw using Motion Studio software. Motion Studio provides complete access to all configuration options and is required for controller setup.
  5. After configuration, refer to the Wiring section of this manual. While a basic wiring diagram is provided for initial testing, implementing the Safety Wiring diagram is strongly recommended for reliable and safe operation.

Encoder Setup

RoboClaw supports multiple encoder types, including quadrature and absolute encoders. Proper tuning is required for reliable motor control. The built-in auto-tune function provides good results for most motor and encoder combinations, but manual adjustments may still be needed for optimal performance. For quadrature encoders, auto-tune typically produces usable values. With absolute (analog) encoders, auto-tune can be used, but the limited resolution and higher susceptibility to noise may prevent reliable results. In those cases, manual tuning is recommended.

  1. Attach and wire the encoder to the motor as shown in the encoder wiring diagrams. Verify that the encoder can be powered from a regulated 5 VDC source.
  2. Double-check wiring connections before applying power. After confirming wiring, proceed to the Auto Tune function in the Encoder section.
  3. Verify encoder signal and power quality using an oscilloscope. RoboClaw’s encoder inputs do not include built-in filtering, to maintain compatibility with high-count encoders where signal rise and fall time is critical. Some encoders may introduce noise onto their signal or power lines. If noise is present, external filtering may be required. This can include pull-up resistors, decoupling capacitors, or other conditioning circuitry.
  4. Run the Auto Tune function. In most cases it provides acceptable performance, but fine-tuning of PID parameters may be necessary depending on the motor, encoder, and application. For additional tuning assistance, a support request can be opened via the contact section of BasicMicro.com.