Motor pins don't work? PWM

Hi,
I created an obstacle avoiding robot based on this tutorial:

I think every cable is in the right pin, I soldered it in a copy of arduino uno that has holes that are easier to solder than original arduino uno. I have two motors. One is on ppin 6 and 9 and works, on my voltage meter it shows 4,9 V when looking over the motor driver, and about 2V if i measure directly on arduino (and the motor stops for some reason). And this motor is working fine. I also have another motor on pins 10 and 11. The motor doesn't spin, there is no voltage on the motor driver or on the arduino board directly. For test i used this code:

const int motorA1= 6; //motor A positive (+) pin to pin 6 (PWM) (from L298 module!)
const int motorA2= 9; //motor A negative (-) pin to pin 9 (PWM)
const int motorB1=5; //motor B positive (+) pin to pin 10 (PWM)
const int motorB2=11; //motor B negative (-) pin to pin 11 (PWM)
void setup() {
// put your setup code here, to run once:
;
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(motorA1, HIGH);
digitalWrite(motorA2, LOW);
digitalWrite(motorB1, HIGH);
digitalWrite(motorB2, LOW);
}

I used this to check if the motors are working. As I said, only one motor works. I have also opened the motor because I thought it was bad but I think that is not the problem. For some reason, arduino doesnt send 5V over pin 10 and pin 11.

Help appreciated.

Pins are input by default. Try adding this to you setup code.

void setup()
{
   pinMode(motorA1, OUTPUT);      // motor A positive (+) pin to pin 6 (PWM) (from L298 module!)
   pinMode(motorA2, OUTPUT);     
   pinMode(motorB1, OUTPUT);  
   pinMode(motorB2, OUTPUT);   
}

corix1337:
http://www.instructables.com/id/Arduino-Obstacle-Avoiding-Robot-2/?ALLSTEPS

Never heard of codebender before... why would anyone want to program an Arduino from a browser?

Still doesn't work. I dont use codebender either, I copied it to arduino.

This is the code I used to test it. pin 6 and 9 are 5V, 10 and 11 dont give anything (0V).

const int motorA1= 6;     //motor A positive (+) pin to pin 6 (PWM) (from L298 module!)
const int motorA2= 9;         //motor A negative (-) pin to pin 9 (PWM)
const int motorB1=10;     //motor B positive (+) pin to pin 10 (PWM)
const int motorB2=11;     //motor B negative (-) pin to pin 11 (PWM)
void setup() {
  // put your setup code here, to run once:
; 
{
   pinMode(motorA1, OUTPUT);      // motor A positive (+) pin to pin 6 (PWM) (from L298 module!)
   pinMode(motorA2, OUTPUT);     
   pinMode(motorB1, OUTPUT);  
   pinMode(motorB2, OUTPUT);   
}
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(motorA1, HIGH);
  digitalWrite(motorA2, LOW);
  digitalWrite(motorB1, HIGH);
  digitalWrite(motorB2, LOW); 
}

Try this code instead of yours and tell us the results.The Code is for one motor, so try it on the first motor and then for the second.

void setup() {
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(8, HIGH);
  digitalWrite(7, LOW);
  analogWrite(9, 255);
  delay(1000);
  digitalWrite(8, LOW);
  digitalWrite(7, HIGH);
  analogWrite(9, 255);
  delay(1000);