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:
- It uses the same pins as my SainSmart LCD 1602 Keypad Shield (http://www.amazon.com/gp/product/B006OVYI1G?psc=1&redirect=true&ref_=oh_aui_detailpage_o07_s00) - which I could fix by using Adafruit's 2 pin LCD kit (http://www.adafruit.com/products/714).
- Adafruit's motor shield uses a Adafruit_Motor_Shield_V2_Library (https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library) custom library that incorporates a version 1.3 of AccelStepper into Adafruit's custom Accelstepper library (https://github.com/adafruit/AccelStepper)
So here are my questions:
- Is a motor shield even the way to go? I like the idea of using motor drivers, since it will fix my LCD shield conflict and allow me to easy connect the drivers to whatever pins I want on the Uno. I initially tried an OseppL298N based motor drive, bit it ran REALLY hot, and seems like it will melt the ABS enclosure that I'll be fitting it into - which is partially why I tried using a shield.
- Is there a way to use Adafruit's Motor Shield library with the latest version of Accelstepper?
- Is there a way to use the motorshield without using Adafruit's library altogether?
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.