i have a r3 motor shield on top of an arduino uno, the motor is a 3-12 volt motor with a gear box on it to make it run at 15 rpm. the position is measured by a roller tack switch. the motor as a 6in wheel on it with a hole cut in it to let an item drop
this is newest code i have
So what are you using to stop the rotation a roller track switch or a rocker switch or are you reffering to the same switch?
Is pin 12 used to communicate with a shield? I ask because of:
digitalWrite(12, HIGH); //Establishes forward direction of Channel A
digitalWrite(9, !switchon); //Disengage the Brake for Channel A
Surely you would reverse the order of this?
What about braking, are you using the DC braking of the motor itself or some other method?