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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for smc-0.5.1.tar.gz
Algorithm Hash digest
SHA256 cf7d01f80cf7d8fd9031ef5d3407abd7b67cbcd810f60597be71474d33f8715c
MD5 1492cb50035873897578ae71209f3b76
BLAKE2b-256 9fd907997fd023947bb2c2bc20be6759bf736c4cb331e562de424ee12d366c9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smc-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c44f92883660e8c3a8216eab663666e2ce42c33a123e09936ef5fa7a779ae8
MD5 d2c657b9472f298b9bfc50099673b44c
BLAKE2b-256 a5520e12a9f3a612350b56b7b9314ac8d42bdd57280371e10c81ad18cf51b19d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smc-0.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2dfb00c6934ca5c7e9526cc77aee324fef21447a49da3e580d25e0d718d7b373
MD5 67f8d7881e80cf76dcc57829a726062c
BLAKE2b-256 772d531f7c75ce489f3d82acb32fed7887aceeefcd6d28f612f1b60e11b21a72

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