Arduino Forum

Using Arduino => Motors, Mechanics, Power and CNC => Topic started by: josh-hohman on Nov 10, 2015, 07:19 pm

Title: Conflicts using Adafruit Motor Shield v2.3, Accelstepper v1.48 and Sainsmart LCD
Post by: josh-hohman on Nov 10, 2015, 07:19 pm
Well, I've spent 3 hours researching an answer with no luck, and since I am having a few different issues that I'm hoping can be solved concurrently with a single solution, I thought this would be appropriate to post to the forum. I've only been programming Arduino for 2 weeks (I've programmed other languages though) so I'm still trying to figure things out and I'm probably way overthinking this.

I'm building a motorized camera slider that uses 2 steppers (http://www.amazon.com/gp/product/B00W98OYE4?psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s01) (0.9deg Nema 17 Stepper Motor Bipolar 0.9A 36Ncm/50oz.in 4-wires) to control sliding (1-stepper) and panning (the other stepper). My LCD interface allows the user to specify a starting and ending keyframe for the panhead and the slider. The camera bounces between the endpoints at a constant speed (different speed for each stepper, obviously) with acceleration/deceleration at each end.

Because of this, the MultiStepper class in the latest version of Accelstepper (v.1.48) (http://www.airspayce.com/mikem/arduino/AccelStepper/index.html) looks perfect for what I'm trying to do.

I'm using an Uno R3 and am currently using the Adafruit Motorshield v2.3 (https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino?view=all) but it's causing some conflicts:



So here are my questions:



I feel like the solution to all of this is going to be so simple as to make me feel like and idiot, but I've been banging away at google too long trying to come up with a solution, and I'm hoping the solution will helps others down the road.