chipKIT® Development Platform

Inspired by Arduino™

Updated Adafruit Motor Shield library available for PIC32

Created Sat, 22 Sep 2012 17:25:30 +0000 by EmbeddedMan


EmbeddedMan

Sat, 22 Sep 2012 17:25:30 +0000

To anyone who has been waiting for the updated AF Motor library for chipKIT boards: it’s done.

You can get a copy here : [url]https://github.com/EmbeddedMan/Adafruit-Motor-Shield-library[/url] at least until the changes get pulled into the Adafruit’s main repo.

This updated version runs identically to the previous version on Arduino hardware, but now also supports the PIC32 architecture. This includes two stepper motors with full microstepping, four DC motors with PWM, and the 2 RC servo outputs.

And of course, it works perfectly with the amazing AccelStepper library. And of course, on the PIC32 (being an 80MHz machine) you can run far higher step rates than on the Arduino.

I tested with Uno23 and uC32 boards. It should work exactly the same on the Max32.

There is a new documentation section at the top of AFMotor.h which explains two small issues that I uncovered while adding PIC32 support and how to work around them.

Please give it a try, and let me know if you find anything that doesn’t work.

*Brian