The lab introduced Arduino analysis through the EEPROM feature, which analyzes certain elements over time. The EEPROM produces a graph that can be analyzed. There were evident power spikes due to changes in velocity. Over time, power consumed was consistent. The analysis of the graphs can demonstrate what weaknesses the Arduino has that can be improved. For example, if there is too much power used, new aerodynamic systems can be put into place in order to use less power. A lot of data was found throughout this process that can be used in the future in order to make better, more efficient redesigns of the AEV.
Table 1: Breakdown of the different energy phases.
Phase | Arduino Code | Distance (m) | Time (s) | Energy Used (J) |
1 | motorSpeed(4,25);
goFor(2); |
0.372 | 1.98 | 11.295 |
2 | motorSpeed(4,25);
goToAbsolutePosition(262); |
2.852 | 3.90 | 22.887 |
3 | reverse(4);
motorSpeed(4,40); goFor(.9); |
0.781 | 0.90 | 11.058 |
4 | brake(4); | 0.794 | 3.00 | 0.107 |
Total Energy Used: | 45.347 |
System Analysis 2 Code:
//Run all motors at 25% for 2 seconds to start AEV in motion
motorSpeed(4,25);
goFor(2);
//Run all motors at 25% and go to 10.65 ft (absolute position)
motorSpeed(4,25);
goToAbsolutePosition(262);
//Reverse all motors
reverse(4);
//Run all motors at 40% for 0.9 seconds to slow AEV
motorSpeed(4,40);
goFor(.9);
//Brake all motors
brake(4);