Deliverables

Lab 1

Arduino Function  Definition 
motorSpeed(M, P);  Running motor/s M at power percentage P 
goFor(t);  Setting the motors to run for t seconds at current power percentage. 

 

celerate(m,p1,p2,t);  Changing the power percentage of motor/s M from the initial power p1 to the final power p2 at t seconds. 

 

goToRelativePosition(n);  Moving the AEV for an n marks forward or backward relative to the current position.   
GoToAbsolutePosition(n);  Moving the AEV to an absolute position from the start of the code. 
reverse(m);  Reversing the motor/s m spin  
brake(m);  Breaking the motor/s  

In lab 1 we tested the Arduino using some simple code to make sure all of the components work properly as well as making sure we had all of the required materials for the AEV project. There was some friction with the propellers but we worked that out and got them running smoothly. The code we used to test this is below:

 

// Motor 1
celerate(1,0,15,2.5);
goFor(1);

// Brake motor one.
brake(1);

// Motor 2
celerate(2,0,27,4);
goFor(2.7);

celerate(2,27,15,1);

//Brake motor 2
brake(2);

reverse(2);

celerate(4,0,31,2);

motorSpeed(4,35);

goFor(1);

brake(2);

goFor(3);

brake(1);

goFor(1);

reverse(1);

celerate(1,0,19,2);

motorSpeed(2,35);

motorSpeed(1,19);

goFor(2);

motorSpeed(2,19);

goFor(2);

celerate(4,19,0,3);

brake(4);

 

Lab 2

The purpose of the second lab was to test the reflectance sensors because they are extremely important in the functionality of the AEV. Their purpose is to track the AEV’s movement. They do this using the reflective tape on the wheels to keep track of how much the system has moved. Obviously speed and distance are key parts of this process, so it’s important to make sure this part of the system is working at 100%.

The code we used to test this:

motorSpeed(4, 25); goFor(2);

motorspeed(4, 20); goToAbsolutePosition(295);

reverse(4);

motorSpeed(4, 30); goFor(1.5);

brake(4);

Lab 2 questions:

  1. The AEV was having issues as mentioned in a previous lab with the smoothness of the blades. There was a lot of friction and noise, but unlike the first time we couldn’t resolve it. We should figure out a way to fix this soon because it will cut down the AEV’s efficiency during testing.

Lab 3

See “Evolution of Design” page for lab 3’s AEV diagrams

 

Lab 4

Code used to collect the data in lab 4:

//Accelerate all motors from start to 25% in 3 seconds.
motorSpeed(4,25);
goFor(3);
//Run all motors at a constant speed (25% power) for 1 second.
motorSpeed(4,25);
goFor(1);
//Run all motors at 20% power for 2 seconds.
motorSpeed(4,20);
goFor(2);
//Reverse all motors.
reverse(4);
//Run all motors at a constant speed (25% power) for 2 second.
motorSpeed(4,25);
goFor(2);
//Brake all motors.
brake(4);
Motor Configurations Lab
Code Used:

//Accelerate motor one from start to 15% power in 2.5 seconds. 

celerate(1,0,15,2.5) 

//Run motor one at a constant speed (15% power) for 1 second. 

motorSpeed(1,15); 

goFor(2.5); 

//Brake motor one. 

brake(1); 

//Accelerate motor two from start to 27% power in 4 seconds. 

celerate(2,0,27,4); 

//Run motor two at a constant speed (27% power) for 2.7 seconds. 

motorSpeed(2,27); 

goFor(2.7); 

//Decelerate motor two to 15% power in 1 second. 

celerate(2,27,15,1); 

//Brake motor two. 

brake(2); 

//Reverse the direction of only motor 2. 

reverse(2); 

//Accelerate all motors from start to 31% power in 2 seconds. 

celerate(4,0,31,2); 

//Run all motors at a constant speed of 35% power for 1 second. 

motorSpeed(4,35); 

goFor(1); 

//Brake motor two but keep motor one running at a constant speed (35% power) for 3 seconds. 

brake(2); 

motorSpeed(1,35); 

goFor(3); 

//Brake all motors for 1 second. 

motorSpeed(4,0); 

goFor(1); 

//Reverse the direction of motor one. 

reverse(1); 

//Accelerate motor one from start to 19% power over 2 seconds. 

celerate(1,0,19,2); 

//Run motor two at 35% power while simultaneously running motor one at 19% power for 2 seconds. 

motorSpeed(2,35); 

motorSpeed(1,19); 

goFor(2); 

//Run both motors at a constant speed (19% power) for 2 seconds. 

motorSpeed(4,19); 

goFor(2); 

//Decelerate both motors to 0% power in 3 seconds. 

celecrate(4,19,0,3); 

//Brake all motors. 

brake(4); 

Data Collected:
These are two of the individual graphs collected during the motor configurations testing. They are power vs. distance graphs and are meant to give the team a better idea of which motor configuration uses the least power to go the most distance.
Graph with all tests shown together
As shown above, test one gave the most efficient readings of 82 J with the best distance reading. In this test the group used design one (shown below), and it is likely that this is due to its ability to stop easier and the fact that it has propulsion on both the front and back of the AEV. The other three tests were relatively similar, using 83+ J of energy.
 Designs:
#1 – Blue Line
 
#2 – Orange Line
#3 – Purple Line
*Motors are underneath the AEV base, not appearing to be inside of it*
 Image
#4 – Red Line
 Image
Wind Tunnel Lab
Data Collected: 

3030 Pusher collected data is shown as follows.

Current Thrust Scale Reading RPM Arduino Power Setting
amps grams RPM %
0.02 144.1 0 0
0.09 140.3 1556 10
0.19 136.5 2395 15
0.28 133 3233 20
0.39 130 4011 25
0.5 127 4790 30
0.6 122 5560 35
0.69 120.2 6347 40
0.78 117 7125 45
0.86 113 7904 50
0.96 108 8682 55
1.05 102 9461 60
Thrust Calibration RPM Power Input Power Output Power Output Propulsion Efficiency Advance Ratio
grams RPM Watts Horsepower Watts %
0 0 0 0 0 N/A N/A
1.5618 1556 0.0666 0.00523602 3.9045 58.62612613 3.213
3.1236 2395 0.2109 0.01047204 7.809 37.02702703 2.088
4.5621 3233 0.4144 0.01529469 11.40525 27.52232143 1.547
5.7951 4011 0.7215 0.01942839 14.48775 20.08004158 1.247
7.0281 4790 1.11 0.02356209 17.57025 15.82905405 1.044
9.0831 5560 1.554 0.03045159 22.70775 14.61245174 0.899
9.8229 6347 2.0424 0.03293181 24.55725 12.02372209 0.788
11.1381 7125 2.5974 0.03734109 27.84525 10.72043197 0.702
12.7821 7904 3.182 0.04285269 31.95525 10.04250471 0.633
14.8371 8682 3.9072 0.04974219 37.09275 9.493435197 0.576
17.3031 9461 4.662 0.05800959 43.25775 9.278796654 0.528
Power Supply Setting Air speed Diameter (meters)
7.4 2.5 0.03

3030 Puller collected data is shown as follows.

Current Thrust Scale Reading      RPM               Arduino Power Setting

amps     grams   RPM      %

0.02       144.1    0             0

0.09       140.3    1556      10

0.19       136.5    2395      15

0.28       133        3233      20

0.39       130        4011      25

0.5         127        4790      30

0.6         122        5560      35

0.69       120.2    6347      40

0.78       117        7125      45

0.86       113        7904      50

0.96       108        8682      55

1.05       102        9461      60

 

Thrust Calibration           RPM      Power Input               Power Output    Power Output               Propulsion Efficiency      Advance Ratio

grams   RPM      Watts    Horsepower       Watts               %            —

0             0             0             0             0             N/A               N/A

1.5618  1556      0.0666  0.00523602        3.9045               58.62612613     3.213

3.1236  2395      0.2109  0.01047204        7.809               37.02702703     2.088

4.5621  3233      0.4144  0.01529469               11.40525            27.52232143     1.547

5.7951  4011      0.7215  0.01942839               14.48775            20.08004158     1.247

7.0281  4790      1.11       0.02356209               17.57025            15.82905405     1.044

9.0831  5560      1.554    0.03045159               22.70775            14.61245174     0.899

9.8229  6347      2.0424  0.03293181               24.55725            12.02372209     0.788

11.1381               7125      2.5974  0.03734109               27.84525            10.72043197     0.702

12.7821               7904      3.182    0.04285269               31.95525            10.04250471     0.633

14.8371               8682      3.9072  0.04974219               37.09275            9.493435197     0.576

17.3031               9461      4.662    0.05800959               43.25775            9.278796654     0.528

Performance Test 1

Code from PT1

reverse(4);

motorSpeed(4,60);

goToRelativePosition(-110);

brake(4);

goFor(8);

celerate(4,0,45,4);

goToRelativePosition(-140);

brake(4);

Power vs. Time Graph PT1

Power vs. Distance Graph PT1

 

Results from PT1:

The team had a successful performance test one. On the first trial the team’s AEV tripped the sensor and failed but did not encounter the gate as it only passed the sensor by about a half inch. The second time, a team member manually braked the AEV before the gate to ensure the test could pass. This resulted in a 10% penalty, which is significantly less than not recording the test due to time constraints (30% penalty). The team has since fixed the stopping issue with slightly decreased motor power and more braking. As the Power vs. Time graph for test number one shows in the appendix, the group had not yet utilized coasting at this point in the project. After seeing the nine to fifteen second interval where the AEV was constantly using moderate amounts of energy, they made the decision to use coasting and take advantage of the inclines and declines in the track. 

 

Prototype A:

 

 

Prototype B:

PT2 Code

reverse(4);
motorSpeed(4,60);
goToRelativePosition(-110);
brake(4); goFor(8);
celerate(4,0,45,4);
goToRelativePosition(-140);
brake(4); reverse(4);
goToRelativePosition(-140);
brake(4); goFor(8);
goToRelativePosition(-110);

Power vs. Time PT2

 

Power vs. Distance PT2

PT2 Results

The group ran two tests for the second performance test. For the first test the team ran the AEV after many tests on the track, and the AEV stopped short of the first sensor. The team attributed this to the battery losing power from many test runs. After replacing the battery, the team ran the same code again, and it worked as planned. The team then ran the second run of performance test two and received full marks. This test was the first test where the group fully utilized coasting. In the appendix the Power vs. Distance graphs for test one and two look drastically different. There is much more down time on the performance test two graph relative to the amount of distance covered. The second test had the AEV covering over double the distance with about 35% more power, which is a large jump in efficiency. The Power vs. Time graph for performance test two shows the large amount of down time because of coasting, something absent in the graph from test one. 

 

Final Test Code

reverse(4);
motorSpeed(4,62);
goToRelativePosition(-113);
brake(4);
goFor(8);
celerate(4,0,44,4);
goToRelativePosition(-138);
brake(4);
goFor(5);
reverse(4);
celerate(4,0,50,4);
goFor(4);
brake(4);
goFor(1);
reverse(4);
motorSpeed(4,38);
goFor(.5);
brake(4);
goFor(7.4);
reverse(4);
celerate(4,0,43,4);
goFor(4);
brake(4);
goFor(2);
reverse(4);
motorSpeed(4,42);
goFor(1);

Power vs. Time Final Tests

Power vs. Distance Final Tests

Results PTF

The group ran three tests for the final performance test. For the first test the team ran the AEV and it tripped the sensor gate on the way back with the caboose due to the amount of momentum it had. The team then ran another test and manually braked the AEV on the way back with the caboose and completed the run. For the third and final test the team did the same as the second run, which is why these runs’ graphs look identical. As with performance test two the Power vs. Time overlap graph in the appendix shows a large amount of down time due to coasting. The group did have to add a slight power break to decrease the momentum of the caboose at the end of the run. Test one’s graph (blue) is different from the rest because during this run the AEV had to be removed from the track because of failure to stop before the second sensor with the caboose. Test two and three are the lines that are important because they show the coasting used by the team to create a higher level of efficiency. The runs for this also were below average on time at around fifty seconds which contributed to less energy used total. The Power vs. Distance overlap also shows that test one stopped short and confirms that the coasting method is effective, with about half of the run using no power. 

 

Hardware Cost Information

Total: $156,800