Power vs. Distance
As the AEV travels along the path, the amount of energy consumed is displayed on the graph. The energy starts at zero makes a steep ascent to about 6 watts and then falls to around 4 watts and peaks at around 11 watts. After that it runs at 7.5 watts and then falls to zero.
Power vs. Time
As the AEV travels along the track , the amount of energy is tracked across the time. There is a steady increase from zero watts to around 6 over 3 seconds, after that the power drops to around 4 watts for about 2 seconds and then shoots up to 11 watts and quickly falls to 6.5 watts for the remaining 2 seconds and then falls off to zero watts.
Code used in making these plots:
void myCode()
{
//—————————————————————————————-
// myCode();
//
// This is the tab where the programming of your vehicle operation is done.
// Tab _00_AEV_key_words contains a compiled list of functions/subroutines used for vehicle
// operation.
//
// Note:
// (1) After running your AEV do not turn the AEV off, connect the AEV to a computer, or
// push the reset button on the Arduino. There is a 13 second processing period. In
// post processing, data is stored and battery recuperation takes place.
// (2) Time, current, voltage, total marks, position traveled are recorded approximately
// every 60 milliseconds. This may vary depending on the vehicles operational tasks.
// It takes approximately 35-40 milliseconds for each recording. Thus when programming,
// code complexity may not be beneficial.
// (3) Always comment your code. Debugging will be quicker and easier to do and will
// especially aid the instructional team in helping you.
//—————————————————————————————-
// Program between here——————————————————————-
// Exercise 4
// Accelerate all motors from start to 25% in 3 seconds
celerate(4,0,25,3);
// Run both motors at 25% for 1 second
motorSpeed(4,25);
goFor(1);
// Run both motors at 20% for 2 seconds
motorSpeed(4,20);
goFor(2);
// Reverse motors
reverse(4);
// Run both motors at 25% power for 2 seconds
motorSpeed(4,25);
goFor(2);
// Brake
brake(4);
// And here——————————————————————————–
} // DO NOT REMOVE. end of void myCode()