Duck_Car_Lab_2_Deliverable

pdf

School

Orange Coast College *

*We aren’t endorsed by this school

Course

A180

Subject

Mechanical Engineering

Date

Feb 20, 2024

Type

pdf

Pages

3

Uploaded by khangtuonggia

Report
Duck Car Lab 2 EGME 476A- Fall 2023 Submitted by Khang Tuong, Jeremy Estorga, Chad Nguyen Professor : Dr. Hope Weiss Submitted by October 06, 2023
EGME 476A Fall 2023 Duck Car Lab 2 2 Deliverable 1: Based on your measurements of the sensor voltage at different distances, approximate the sensor gain (V /in) at a set point of 5” and at a set point of 10 ”. For 5 in, the sensor gains approximately -0.31V/in. For 10 in, the sensor gains approximately -0.08V/in. Deliverable 2: In your own words, explain why the duck car behaved differently at the 5” and 10” set points for a given controller gain. Duck car 4 was used for this analysis, and it displayed slightly less power compared to the average car. This meant that it required more gain than what was average for similar systems. Therefore , the car behaved differently at 5” and 10” at set gain points due to the gain changing the amount of power going into the car. For our highest gain, it wouldn’t be enough to reach 10”, however, that same gain is more than enough to go to 5” and even overshoot before correcting itself. Deliverable 3: Is the duck car more likely to hit a new barrier exposed at a far distance when the controller is set to a close distance or a far distance? Speculate on why. Based on our data, the duck car is more likely to overshoot and potentially collide when encountering an obstacle at a further distance. This occurs because the car has additional time to accelerate when the obstacle is farther away. Allowing the car more time to gain speed means that it will require a longer period to decelerate, increasing the chances of overshooting or crashing, compared to a closer obstacle where lower speed requires less time for deceleration.
EGME 476A Fall 2023 Duck Car Lab 2 3 MATLAB CODE: clc, clear all % Deliverable 2 % Import raw data from excel filename1 = 'dc2.xlsx' ; % Convert data to table array data = readtable ( filename1, "VariableNamingRule" , "preserve" ); % Data from Duck Car Lab 2 dis = table2array (data(1:end,1)); % velocity vol = table2array(data(1:end,2)); % voltage clc %Use polyfit at 5" to find Ks p5 = polyfit(dis(4:6),vol(4:6),1); % ks_5 = p5(1); %Linear sensor gain at 5" % Print result for 5" fprintf( 'Linear sensor gain at 5 inch is %.2f(V/in)\n' ,ks_5') %Use polyfit at 10" to find Ks p10 = polyfit(dis(14:16),vol(14:16),1); ks_10=p10(1); % Print Result for 10" fprintf( 'Linear sensor gain at 10 inch is %.2f(V/in)\n' ,ks_10) % Plot data % figure % plot(dis,vol) % grid on % xlabel ('Distance (in)') % ylabel ('Voltage (V)')
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help