Skip to main content

A python driver library for Pololu's Simple Motor Controllers

Project description

https://raw.githubusercontent.com/MomsFriendlyRobotCompany/smc/master/docs/pics/smc.jpg

Pololu Simple Motor Controller

https://travis-ci.org/MomsFriendlyRobotCompany/smc.svg?branch=master https://img.shields.io/pypi/v/smc.svg https://img.shields.io/pypi/l/smc.svg https://img.shields.io/pypi/pyversions/smc.svg

This is a python driver library for the Pololu series of Simple Motor Controllers.

Install

pip install smc

Usage

from smc import SMC
import time

mc = SMC('/dev/ttyUSB0', 115200)
# open serial port and exit safe mode
mc.init()

# drive using 12b mode
mc.speed(1000)
time.sleep(3)
mc.speed(-1000)
time.sleep(3)

# drive using 7b mode
mc.speed7b(100)
time.sleep(3)
mc.speed7b(-100)
time.sleep(3)

# and stop motor
mc.stop()

Board

https://raw.githubusercontent.com/MomsFriendlyRobotCompany/smc/master/docs/pics/smc-back.jpg
https://raw.githubusercontent.com/MomsFriendlyRobotCompany/smc/master/docs/pics/smc-io.jpg
https://raw.githubusercontent.com/MomsFriendlyRobotCompany/smc/master/docs/pics/smc-wiring.jpg

MIT License

Copyright (c) 2017 Kevin J. Walchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

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

Source Distribution

smc-0.5.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

smc-0.5.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

smc-0.5.0-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

Details for the file smc-0.5.0.tar.gz.

File metadata

  • Download URL: smc-0.5.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for smc-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bf44abf79e05e21e8f4ae0eb3c90324897c5192fcea35f2ac0b79432c2e23f2a
MD5 127d799b018fd046351655156f4db5cb
BLAKE2b-256 5ad0d9c5f1dc8e0e813484201090d55cd2260e2af09a7ab39c17e7fc5b6b30da

See more details on using hashes here.

File details

Details for the file smc-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smc-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4229d421a16291a95345131d93499143b207dd3afa2486467f31fb481c38c0bf
MD5 6d4e0673d3e4f0842b164c4a9bbee603
BLAKE2b-256 66b95e2d3614a0ef75543b65db32d6c7f4bc3989e4de0402a91a0de1e5348106

See more details on using hashes here.

File details

Details for the file smc-0.5.0-py2-none-any.whl.

File metadata

File hashes

Hashes for smc-0.5.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b57b38addd910ac15838189538bf98d65304afcfa9e2d7cab4dba7cbee5b5bb8
MD5 b719bd6915e4860ce7208dee895d5d18
BLAKE2b-256 1357edf1cc178e2d375f7ed012c1dda5b090afa4824ccd59c9e6e284175eaf87

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page