Encoders are useful as part of a feedback system to maintain speed, position and track distance. RoboClaw does these things automatically however encoder attached to a roboClaw can be controlled and used with custom code using the BasicMicro Python library. This Application Notes covers how to use the available encoder functionality of the library.
Python is an easy to use programming language for both beginners and experienced programmers. The RoboClaw motor controller can be controlled via Python with the library provided by BasicMicro. Any platform that runs Python and has access to a serial port should work with the library.
Multiple RoboClaws can be used together for projects requiring more than one motor controller. This Application Note demonstrates the control of 4 RoboClaws by a Raspbery Pi using the packet serial control mode of the RoboClaw.
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.
This Application Note details how to operate the RoboClaw in standard serial mode using a Raspberry Pi 3. In standard serial mode the RoboClaw accepts single byte commands that control the operation of both motor channels.