Code library for the beaglebone DMCC (Dual Motor Controller Cape)
C Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
DMCC-py.c add getMotorCurrent into Python interface Jun 12, 2014
DMCC.c
DMCC.h
Makefile Added 'all:' to Makefile Sep 17, 2013
README.md
getCurrent.c Added v1 of the DMCC library code Aug 22, 2013
getQEI.c
setMotor.c
setPID.c Revision 2 of the Code May 16, 2014
setupDMCC.py Initial working python interface for DMCC.setMotor Oct 14, 2013

README.md

DMCC_Library

Code library for the beaglebone DMCC (Dual Motor Controller Cape)

You can find the open source hardware (schematics, PCB, Eagle files) at https://github.com/Exadler/DualMotorControlCape

Added setPIDPowerLimits function to setup Power limits when running PID.
**Only works with new Mk.07 firmware -- older firmware versions will just ignore the command and keep functioning.

This version includes preliminary code for the python interface.

To use the python interface, run the following commands on your Beaglebone:

opkg update

opkg install python-distutils

python setupDMCC.py install

To test the setMotor command in python, do the following:

import DMCC

DMCC.setMotor(0,1,5000)

(turns on motor 1 on board 0 with 5000 power)

DMCC.setMotor(0,1,-7000)

(reverse direction with 7000 power)

DMCC.setMotor(0,1,0)

(turn off the motor)

If you run into any problems, feel free to email us at support@exadler.com