Here is the sketch that I'm using:
int dirA = 12;
int dirB = 13; // not used in this example
int speedA = 10; // not used in this example
int speedB = 11; // not used in this example
void setup()
{
pinMode (dirA, OUTPUT);
pinMode (dirB, OUTPUT);
pinMode (speedA, OUTPUT);
pinMode (speedB, OUTPUT);
}
void loop()
{
// move the motor A to one direction
digitalWrite (dirA, HIGH);
}
Pin three is not used at all in this sketch, I used a multimeter to verify that the connection is good just in case.
Now that im back home playing with the boards I noticed that I can run my fingers up and down the stubs on the bottom of the uno from pins 1-5 and it will vary the motor speed as well as turning it on and off. No contact from my finger to bottom of uno= no movement of the motor.
Look at my sketch, I think it may be wrong somewhere?? I loaded the "blink" sketch on the arduino, to test if it would do the same thing... well it does, touching the bottom pins powers on the motor ... is this because of the resistance of my finger triggering the motor to come on??
If my sketch is wrong, please help me fix it