Lab-5

Executive Summary

From previous labs, the group learned that the Arduino board will collect data each time after running the program. In this lab, the group was going to download and analyze the data. The purpose of this lab was to download EEProm Arduino data from the board and convert the data to physical parameters, then calculated supplied power, incremental and total energy for the AEV.

By following the lab manual, the group downloaded the data from motherboard. MATLAB software was used to collect data and then transferred the data to MS Excel. After calculating the power and energy of the AEV according to the manual, the group drew the graphs Figure 1.

Based on the graph and the code, the group divided the progress into 10 phases (Figure 2). And the graph with phases was as Figure 3.

Based on the table and the graphs, the group found the relationship between power supplied, energy consumption and different codes. The brake phase needed zero power and consumed no energy. The acceleration phase needed increasing power while the deceleration phase vice versa. During the motorSpeed() code phase, the power kept around a certain value based on the speed. The higher the speed was, the higher the power would be. And during the reverse phase, the power would reach a peak within a short time. All the phases except brake phase would consume energy, the higher the speed was, the more energy would be used.

The group found that there was small energy consumption at the beginning of the phase 1. This data was different from the conclusion that the brake phase will not use energy. The group thinks that this is caused by the initial energy used to launch the system and should be included in the total energy consumption.

From this experiment, the group was able to estimate the total energy cost based on code and testing.  Since one of the goals of AEV is energy saving, the group was able to choose better code combination in order to save energy after the experiment. The group was working on further analysis of the data and trying to apply the result to the mission concept review.

 

Appendix

  1. Copy of Arduino Code

brake(4);

goFor(1);

celerate(4,0,30,2);

motorSpeed(4,30);

goFor(2);

reverse(4);

motorSpeed(4,40);

goFor(1);

celerate(4,40,20,1);

brake(4);

goFor(1);

reverse(4);

motorSpeed(4,20);

goFor(1);

brake(4);

 

  1. Table and Graphs.

Untitled

Figure 1. The relationship between supplied power and time.

Phase No.

Arduino Code

Distance

Time(s)

Total Energy Used(J)

1

brake(4)goFor(1)

0

0.06-1.141

0.0418

2

celerate(4,0,30,2)

0

1.201-3.002

5.8325

3

motorSpeed(4,30) goFor(2)

0

3.062-5.043

21.6151

4

reverse(4)

0

5.103-5.223

24.0581

5

motorSpeed(4,40) goFor(1)

0

5.283-6.123

34.8682

6

celerate(4,40,20,1)

0

6.183-7.083

42.8943

7

Brake(4)goFor(1)

0

7.143-8.103

43.0461

8

Reverse(4)

0

8.163-8.223

43.5810

9

motorSpeed(4,20) goFor(1)

0

8.283-9.123

47.1187

10

brake(4)

0

9.183-12.123

47.1252

 

 

 

 

 

 

 

 

 

Untitled2

Figure 2. The supplied power graph with phases divided.

1. Single Calculations: Meng Cheng

(Sample: Line 32 & 33; Reference Voltage = 2.46 V)

Time(ms)

Current(counts)

Voltage(counts)

1381

3

562

1441

6

562

Time:               t = tE/1000

t32 = 1381/1000 = 1.381 s

t33 = 1441/1000 = 1.441 s

Current:           I = (IE/1024)*VR*(1A/0.185V)

I32 = (3/1024)*2.46*(1/0.185) A= 0.03896A

I33 = (6/1024)*2.46*(1/0.185) A= 0.07791A

Voltage:          V = (15*VE)/1024

V32 = V33 = (15*562)/1024 V= 8.247 V

Power:             Pin = V*I

P32 = 8.247V*0.03896A = 0.3213W

P33 = 8.247V*0.07791A = 0.6414W

Incremental Energy:

E32 = (P32+P33)/2*(t33-t32)

E32 = (0.3213+0.6414)/2*(1.441-1.381) J = 0.02888 J

Total Energy:

E = ΣNn=1 En = E1 + E2 +E3 +… + E32 = 0.11570 J

2. Individual Calculations: Wilson Tang

Sample line: Line 52 & 53

Reference Voltage: 2.46 V

Time(ms)

Current(counts)

Voltage(counts)

                     2581

38

556

2642

44

556

Time:

t = tE / 1000

t52 =2581/1000 =2.581 sec

t53 =2642/1000 =2.642 sec

Current:

I = (IE /1024) * VR * ( 1A / .185V)

I52 = (38A /1024) * 2.46 * ( 1A / .185V)   A = .4935 A

I53 = (44A /1024) * 2.46 * ( 1A / .185V)   A = .5717 A

Voltage:

V = ( 15 * VE )/1024

V52 = V53 = ( 15 * 556 V )/1024 = 8.145 V

Power:

Pin  = V * I

P52 =  8.145V * .4935A =  4.019 W

P53  = 8.145V * .5717A =  4.656 W

Incremental Energy:

E52 =[ (P52 + P53)/2 ] * (t53 – t52)

E52 =[(4.019W + 4.656W)/2]*(2.642 sec–2.581 sec)= .2646 J

Total Energy:

E = ΣNn=1 En = E1 + E2 +E3 +… + E52 = 3.427 J

3. Single Calculations: Yuhan Jiang

(Sample: Line 39 & 40; Reference Voltage = 2.46 V)

Time(ms)

Current(counts)

Voltage(counts)

1801

19

560

1861

23

560

Time:               t = tE/1000

t39 = 1801/1000 = 1.801 s

t40 = 1861/1000 = 1.861 s

Current:           I = (IE/1024)*VR*(1A/0.185V)

I39 = (19/1024)*2.46*(1/0.185) A= 0.24673A

I40 = (23/1024)*2.46*(1/0.185) A= 0.29867A

Voltage:          V = (15*VE)/1024

V39 = V40 = (15*560)/1024 V= 8.203 V

Power:             Pin = V*I

P39 = 8.203V*0.24673A = 2.0239W

P40 = 8.203V*0.29867A = 2.4450W

Incremental Energy:

E39 = (P39+P40)/2*(t40-t39)

E39 = (2.0239+2.4450)/2*(1.861 -1.801) J = 0.13407 J

Total Energy:

E = ΣNn=1 En = E1 + E2 +E3 +… + E39 = 0.75247J

4. Individual Calculations: Md Fahad

Sample line : 43 and 44; Reference Voltage = 2.46 Volts

Time(ms) Current(counts) Voltage(counts)
2041 28 559
2101 30 559

Time: t (sec) = tE (ms)/1000

At 2041ms,   t43 = 2041/1000 = 2.041 s

At 2101ms,      t44 = 2101/1000 = 2.101 s

Current:

I43 = (28/1024)*2.46*(1/0.185) A= 0.363598A

I44 = (30/1024)*2.46*(1/0.185) A= 0.38957A

Voltage:                                                 V =

V43 = V44 = (15*559)/1024 V= 8.188 V

Power:             Pin = V*I

P43 = 8.188V*0.363598A = 2.98W

P44 = 8.188V*0.38957A = 3.189W

Incremental Energy:

E43 = (P43+P44)/2*(t44-t43)

E44 = (2.98 +3.189)/2*(2.101-2.041) J = 0.18507 J

Total Energy:

E = ΣNn=1 En = E1 + E2 +E3 +… + E43 = 1.432328982 J

 

Leave a Reply

Your email address will not be published. Required fields are marked *