Using Encoders with the Python Library

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.

Using the RoboClaw Python 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.

Configuring the Raspberry Pi 3 Serial Port

The Raspberry Pi is the most popular single board computer on the market and finds its way in to robotics projects the world over. The RoboClaw can easily be controlled from a Raspberry Pi but the serial port harware must be configured propely first. This App Note covers how to configure the serial sort before connecting it to a RoboClaw.