In this lab, the purpose was to become familiar with MATLAB and how it connects with uploading and analyzing Arduino data. Also, to better conduct performance analysis of an AEV, while exploring graphs.
(4,0,25,3);
// Run all motors at 25% for 2 sec
motorSpeed(4,20);
goFor(2);
// Run motors at 20% for 2 sec
motorSpeed(4,20);
goFor(2);
//Reverse all motors
reverse(4);
// Run all motors at 25% for 2 sec
motorSpeed(25);
goFor(2);
//Brake all motors
brake(4);
Progress Report Questions:
In looking at the graphs and comparing them to one another in context, it can be determined what the AEV was doing at a given time. For approximately the first .4 seconds, power was increased; however, because of the delay, there was no movement. From then till about 3.1 seconds, or until 5.2 watts were being applied, there was constant acceleration; which, can be seen by the positive sloped Power vs. Time graph. This caused the AEV to increase distance from the starting point at an accelerating rate; which, once again, can be seen by the positive slope on the Power vs. Distance graph . A line with slope approximately zero can be seen from 3.1 to 7 seconds on both graphs; thus, indicating that constant power was being applied and distance was being increased constantly. For about .22 seconds, there was a spike in the graphs – meaning that the power was quickly increased, in order to cause the AEV to reverse. From then until 8.7 seconds, there once again was constant power, once again, causing the AEV to cover distance constantly. After 8.7 seconds, the graphs drop to zero, showing that the power was cut and the AEV was no longer moving.

