Re: Adafruit Motor/Stepper/Servo Shield for Arduino kit
I have an AF MOTOR/stepper shield, mated with an UNO, being used to operate a stepper on ports 3 and 4. I want to add dc motor control to the same shield, on port 1. Both the stepper and motor are to be controlled via one sketch. The sketch currently uses AFMOTOR.h and calls AF_stepper to control the stepper. Modifying the sketch to add the DC motor logic, I added AF_DCMotor and its parameters to control the motor. Commands are received via serial comm. and specify which device and other necessary info (forward, stop, etc., base on which device is being controlled. (The two devices would not be controlled at the same time.) However, when I verify/compile the sketch I get "conflicting declaration 'AF_DCMotor motor'" and points to that line in the sketch. So the obvious question is, can the shield, via AFMotot.h, control more than one, DIFFERENT, device, ie. motor+stepper, stepper+servo, etc.? And if it cannot, can I directly address the shield via the pins used and send the necessary commands to the shield, bypassing the AFMotor.h library?
Sorry for the long winded description.
Edit: reposted as a new thread.
Last edited by Shorn
on Thu Nov 08, 2012 6:19 pm, edited 1 time in total.