So...
If it's just "nothing happens", we're back to what I said, test some pieces
/*
Mowbot Test Sketch 1 -- Motor
*/
const int LEFT_MOTOR=12, LEFT_BRAKE=9, LEFT_SPINNER=3;
const int FORWARD=HIGH, REVERSE=LOW;
const int FULLSPEED=255;
void leftMotor( int direction, int speed)
{
digitalWrite( LEFT_MOTOR, direction); //Establishes direction
digitalWrite( LEFT_BRAKE , LOW); //Disengage the Brake
digitalWrite( LEFT_SPINNER, speed); //Spins the motor
}
void setup()
{
pinMode(LEFT_MOTOR, OUTPUT);
pinMode(LEFT_BRAKE, OUTPUT);
}
void loop()
{
leftMotor( FORWARD, FULLSPEED);
delay( 4000); // on and off every 4 seconds
leftMotor( FORWARD, 0 );
delay( 4000);
}