Lab 06- Motor Quantity

Figures showing each different motor configuration tested
2 Motors
Code used shown below
1 Motor
Code used shown below
Important takeaways and configuration chosen
The configuration that worked best for our AEV was running with 2 motors rather than one. This was very close, due to one motor not generating as much power as the other. The motor that does not generate as much power as the other one also starts out in a reversed order already so at the beginning of each run for it to not go backwards we had to reverse the polarity of the motor before starting. Learning this made our lab run way faster because that one motor generates more power going in reverse and we were able to discern this through different trials and different codes we had to implement. The 2 motor configuration went further distance in less time than the same code ran with one motor. Meaning that the 2 motor configuration is more efficient.
Progress Report Questions
1.Include figures showing each different motor configuration that was tested.
2.Include Power vs. Time and Power vs. Distance plots.
3.Quantitatively explain why the motor configuration your team selected through
testing is the best configuration for your AEV.
2 Motor 1 reverse(2);

motorSpeed(1,40);

goFor(3);

brake(1);

motorSpeed(2,40)

goFor(3);

brake(2 );

reverse(4);

motorSpeed(4,10);

goFor(3);

brake(4);

 

2 Motor 2 reverse(2);

motorSpeed(1,40);

goFor(3);

brake(4);

motorSpeed(2,40);

goFor(3);

brake(4);

reverse(4);

goFor(1);

motorSpeed(4,40);

brake(2);

goFor(1);

motorSpeed(4,40);

brake(1);

goFor(1);

 

2 Motor 3 motorSpeed(1,40);

goFor(4);

brake(4);

motorSpeed(2,40);

goFor(4);

brake(4);

 

2 Motor 4 reverse(2);

motorSpeed(1,40);

goFor(3);

motorSpeed(2,40);

goFor(3);

brake(4);

reverse(4);

MotorSpeed(1,30);

goFor(3);

brake(1);

MotorSpeed(2,30)

goFor(3);

brake(2);

1 motor 1 reverse(2);

motorSpeed(2,40);

goFor(3);

brake(4);

motorSpeed(2,40);

goFor(3);

brake(1);

goFor(1);

motorSpeed(2,40);

brake(2);

goFor(1);

 

1 motor 2 motorSpeed(1,40);goFor(3);

brake(1);

motorSpeed(1,40);

goFor(3);

brake(1);

goFor(1);

motorSpeed(1,40);

brake(1);

goFor(1);

 

1 motor 3 motorSpeed(1,20);

goFor(3);

brake(1);

motorSpeed(1,40);

goFor(3);

brake(1);

reverse(1);

motorSpeed(1,50);

goFor(3);

brake(1);

 

1 motor 4 motorSpeed(2,30);

goFor(2);

motorSpeed(2,0);

goFor(3);

motorSpeed(2,40);

goFor(3);

 

1 motor 5 reverse(1);motorSpeed(1,50);

goFor(3);

brake(1);

motorSpeed(1,40);

goFor(3);

brake(1);

reverse(1);

motorSpeed(1,30);

goFor(3);

brake(1);