AFMotor Adafruit libraries

Let us know if there are categories or topics to add, or what we need to do to improve these forums!
Post Reply
ericir
Posts: 5
Joined: Tue Aug 28, 2012 4:43 pm

AFMotor Adafruit libraries

Post by ericir » Thu Sep 13, 2012 11:27 pm

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
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: AFMotor Adafruit libraries

Post by EmbeddedMan » Fri Sep 14, 2012 2:16 pm

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

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: AFMotor Adafruit libraries

Post by majenko » Fri Sep 14, 2012 7:04 pm

Why do we bother having sections in this forum? How is this library problem a "Forum Suggestion"?
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply