Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A module to control the Ryanteck Motor Driver Board

Project description

Ryanteck Motor Driver Board

### Cheat Sheet

The rtkmcb Python library allows you to independently control left and right motors, in addition to controlling both at once with a variety of, hopefully, intuitive commands;

#### Left or Right Motor

# Move forwards at speed 0 ( stopped ) to 100
mcb.left_motor.forwards( speed )

# Move backwards at speed 0 ( stopped ) to 100
mcb.left_motor.backwards( speed )

# Set speed of the motor from -100 ( full reverse ) to 100 ( full forward )
mcb.left_motor.speed( speed )

# Stop

All of these also work for the "right_motor"

#### Both

# Set speed of both motors from -100 to 100
mcb.speed( speed )

# Alternatively, set speed independently
mcb.speed( left_speed, right_speed )

# Turn left
mcb.left( speed )

# Turn right
mcb.right( speed )

# Turn -100 left to 100 right
mcb.turn( speed )

# Stop
Change Log

- Fixed bugs introduced by Kanux PWM performance
- Attempt to fix bug in PWM frequency persistence

- Initial development/alpha release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Rtkmcb, version 0.0.4dev
Filename, size File type Python version Upload date Hashes
Filename, size Rtkmcb-0.0.4dev.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page