chipKIT® Development Platform

Inspired by Arduino™

AFMotor Adafruit libraries

Created Thu, 13 Sep 2012 22:27:11 +0000 by ericir


ericir

Thu, 13 Sep 2012 22:27:11 +0000

Hola everyone, I've been using the Adafruit's/ Ladyada's Motor Shield for Arduino on my Chipkit MAX32. Even though I added Adafruit's libraries (AFMotor) in my computer, I can't make my DC motor move.

Does anyone have the library modified for Chipkit, or if possible, for Chipkit MAX32 in case this Chipkit is special?

In case you don't have it, does anyone know how to modify it, or which way is the one that has to be followed?

Thank you in advance.


EmbeddedMan

Fri, 14 Sep 2012 13:16:49 +0000

The AFMotor shield library uses direct calls to the AVR registers for some functions, so it won't compile without changes for chipKIT.

I have a motor shield and an UNO32, and am in the process of porting the library over. I'm starting with the stepper side of things because the nice folks on the AccelStepper list asked for it. But I will get all of the functions working.

From what I can tell, the only thing that won't work is microstepping on both stepper motor outputs, because the PWM output pins on the AVR don't quite line up with the PIC32's PWM outputs.

I should not have a problem getting DC motor control working.

Look for an announcement here on this forum sometime in the next couple days.

*Brian


majenko

Fri, 14 Sep 2012 18:04:14 +0000

Why do we bother having sections in this forum? How is this library problem a "Forum Suggestion"?