Standard Serial Bus with the Raspberry Pi 3

Multiple RoboClaw’s can be used simultaneously when controlled by a microcontroller or computer. The Raspberry Pi is one suitable choice. This Application Note covers using a Raspberry Pi 3 to control 4 RoboClaws in standard serial mode.

Configuring the Raspberry Pi 3 Serial Port

The Raspberry Pi 3’s GPIO serial port must be freed from the Linux serial console before it can talk to external hardware. This guide shows how to enable the UART and disable the console with raspi-config, or by editing the boot configuration manually.

Standard Serial Mode with Arduino

Control a RoboClaw motor controller from an Arduino using standard serial (Simple Serial) mode: wiring, Motion Studio configuration, and a complete example sketch that drives both motor channels with single-byte commands.

RoboClaw Basics

A broad overview of the RoboClaw motor controller: board layout, features, usage basics, and the voltage, current, and temperature limits that apply across all models.

Analog Joystick and RoboClaw

The RoboClaw has several useful control methods, one of them being analog control. With analog control you can use a variety of user interface options so long as they output an appropriate analog voltage. In this Application Note we’ll be using an analog joystick to control two motors with the RoboClaw in analog mode.

PID Control and Motor Controllers

Motor controllers like the RoboClaw use feedback from sensors like encoders to maintain the speed and position of motors. Internally, a system called a PID controller keeps these values at their setpoints. This guide covers what a PID controller is, how the proportional, integral, and derivative terms work, and how motor controllers use them.